The question is what name should i use for a domain's DNS entry.
I mean, every registarer asks for name and IP address for a domain name's DNS record.
I know my IP, but what is the name?
<remove specifics>
Actually, I can register a domain(example.com), and assign this address to my dedicated server. Then, since the record for this address is hold on my registarer I may use ns1.example.com and ns2.example.com. But then how my registarer register the domain of his DNS server?
For example, let's dig for www.example.net...
///////////////////////////////////////////////
[root@localhost root]# dig example.net
; <<>> DiG 9.2.1 <<>> example.net
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47550
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1
;; QUESTION SECTION:
;example.net. IN A
;; ANSWER SECTION:
example.net. 3600 IN A 216.69.226.50
;; AUTHORITY SECTION:
example.net. 3600 IN NS ns2.example.net.
example.net. 3600 IN NS ns3.example.net.
example.net. 3600 IN NS ns1.example.net.
;; ADDITIONAL SECTION:
ns3.example.net. 1440 IN A **.***.***.***
;; Query time: 5 msec
;; SERVER: **.***.**.***#53(**.***.***.***)
;; WHEN: Wed May 26 17:53:21 2004
;; MSG SIZE rcvd: 117
///////////////////////////////////////////////
As you see, the DNS server of example.net is example.net. Is is some special aggrements between InterNIC and [this host]?
I hope I can explain my question well.
Thank you.
Kind Regards.
[edited by: tedster at 3:32 am (utc) on May 27, 2004]
[edit reason] remove specifics [/edit]
Just add A records for both ns1.yourdomain.com and ns2.yourdomain.com like so:
ns1.yourdomain.com. IN A 127.0.0.1
ns2.yourdomain.com. IN A 127.0.0.2
test it using dig/nslookup on your machine.
nslookup ns1.yourdomain.com
nslookup ns2.yourdomain.com
It should show the IP you've specified in the above A record.
and then where you registered yourdomain.com create nameservers based on your domain. You cannot use any host as a nameserver. Nameservers have to be registered as a nameserver with the registry. Nameserver registration is free.
You can have you domains primary IP as the IP for both the nameserver and nobody will complain. (save your IP's)
They anyways all resolve to the same machine! right?
12 hours after you register your nameservers change the DNS servers in the whois of your domain to your new nameservers.
That's it, you should have the domain up and running.
-- Ashish
Inwiz.com
PS: Do remember to change yourdomain to whatever domain you wish to do this for, and you do not have to name the nameservers ns1/2 you can use apple.yourdomain.com or red.yourdomain.com too!