It depends on your domain name server
If you use someone else’s, you don’t need to do anything
Just call the other party and tell them what IP you want to resolve to
If it’s your own, then the first thing you need to do is your domain name The domain name server is your machine
For example: the domain name server in the aaa.com registration information is ns1.aaa.com
After confirmation, create your own DNS server
The server name is NS1, and the domain it belongs to is aaa. com
WIN2K or NT, just add the DNS service directly in the WINDOWS component
Then there will be an additional DNS controller in the management tool of the control panel
Open it, right-click on the local machine, [Default all selections are right-click Menu]
Create a new domain, aaa.com
Create a new host ns1 IP your IP
Then you can create a WWW server
Create a new host www IP which is your WWW IP
Re- Start DNS
OK
Linux or UNIX-like
Machine name NS1, domain aaa.com
Then install BIND. Generally, there are default options in distribution kits
After installation, configure the NAMED service
/etc/named.conf
plus the local domain, its content is as follows
options {
directory "/var/named";
};
zone "." {
type hint;
file "named.ca";
};
zone "aaa.com"{
type master;
file "aaa.com";
} ;
Then create a new domain file:
/var/named/aaa.com
Content:
aaa.com. IN SOA ns1.aaa.com. hostmaster.ns1.aaa.com (
2000120820
3600
900
1209600
43200 )
aaa.com. IN NS 1 .aaa.com.
aaa.com. IN A DNS server IP or other All can be done
ns1 IN A DNS server IP
www IN A WWW server IP
Restart DNS service
This way it’s over