04-04-2008, 02:03 PM #1Web Hosting Guru
- Join Date
- Sep 2004
- Beaverton, OR
Can a nameserver be specified in an A record by another nameserver?
Here's the jist:
1) I use DNSMadeEasy for a couple of my important domains so I can utilize their failover service.
2) I use my own nameservers for everyone else.
At my register (GoDaddy) I've added host entries to my domain (let's call it host.com) for ALL of my nameservers: DNSMadeEasy and mine. For example here are my host entries:
1) nsdme0.host.com = 22.214.171.124 (DNSMadeEasy)
2) nsdme1.host.com = 126.96.36.199 (DNSMadeEasy)
3) nsdme2.host.com = 188.8.131.52 (DNSMadeEasy)
4) nsdme3.host.com = 184.108.40.206 (DNSMadeEasy)
5) nsdme4.host.com = 220.127.116.11 (DNSMadeEasy)
6) ns1.host.com = 18.104.22.168 (mine)
7) ns2.host.com = 22.214.171.124 (mine)
At the register I've then configured host.com to use the first five nameservers for itself, the DNSMadeEasy nameservers.
For less critical sites that I host I simply point them to ns1.host.com and ns2.host.com, my nameservers.
Now, here's the twist. If I use dig to look up www.host.com I get:
[[email protected] ~]# dig +trace www.host.com ; <<>> DiG 9.3.3rc2 <<>> +trace www.host.com ;; global options: printcmd . 220048 IN NS D.ROOT-SERVERS.NET. ........................................... . 220048 IN NS K.ROOT-SERVERS.NET. ;; Received 228 bytes from 126.96.36.199#53(188.8.131.52) in 1 ms net. 172800 IN NS J.GTLD-SERVERS.net. ........................................... net. 172800 IN NS G.GTLD-SERVERS.net. ;; Received 497 bytes from 184.108.40.206#53(D.ROOT-SERVERS.NET) in 74 ms host.com. 172800 IN NS nsdme0.host.com. host.com. 172800 IN NS nsdme1.host.com. host.com. 172800 IN NS nsdme2.host.com. host.com. 172800 IN NS nsdme3.host.com. host.com. 172800 IN NS nsdme4.host.com. ;; Received 225 bytes from 220.127.116.11#53(J.GTLD-SERVERS.net) in 125 ms www.host.com. 1800 IN CNAME host.com. host.com. 75 IN A 18.104.22.168 host.com. 86400 IN NS nsdme2.host.com. host.com. 86400 IN NS nsdme1.host.com. host.com. 86400 IN NS nsdme5.host.com. host.com. 86400 IN NS nsdme0.host.com. host.com. 86400 IN NS nsdme4.host.com. host.com. 86400 IN NS nsdme3.host.com. ;; Received 276 bytes from 22.214.171.124#53(nsdme0.host.com) in 68 ms
[[email protected] ~]# dig +trace ns1.host.com ; <<>> DiG 9.3.3rc2 <<>> +trace ns1.host.com ;; global options: printcmd . 218964 IN NS M.ROOT-SERVERS.NET. ........................................... . 218964 IN NS K.ROOT-SERVERS.NET. ;; Received 228 bytes from 126.96.36.199#53(188.8.131.52) in 1 ms net. 172800 IN NS H.GTLD-SERVERS.net. ........................................... net. 172800 IN NS G.GTLD-SERVERS.net. ;; Received 497 bytes from 184.108.40.206#53(M.ROOT-SERVERS.NET) in 115 ms ns1.host.com. 172800 IN A 220.127.116.11 host.com. 172800 IN NS nsdme0.host.com. host.com. 172800 IN NS nsdme1.host.com. host.com. 172800 IN NS nsdme2.host.com. host.com. 172800 IN NS nsdme3.host.com. host.com. 172800 IN NS nsdme4.host.com. ;; Received 241 bytes from 18.104.22.168#53(H.GTLD-SERVERS.net) in 151 ms
Now for the question. Can I:
1) Remove my custom host nameserver entries from my register.
2) Add entries in my DNSMadeEasy records to specify the location of ns1.host.com and ns2.host.com.
3) Use the failover provided by DNSMadeEasy to also fail-over my DNS entries for my nameservers?
I know this would require one more hop if it works but it would allow me to provide failover ability to fifty domains without having to purchase the extra domains at DNSMadeEasy.
Last edited by RelativeDesign-Jerret; 04-04-2008 at 02:06 PM. Reason: fixed typo
04-07-2008, 02:29 PM #2Aspiring Evangelist
- Join Date
- Oct 2007
You would not be able to "just" set your NS record A records in DNS Made Easy. You will need to register them with the respective registry. This is done through your registrar.
Many regsitrars will not even allow you to use a name server that is not set at the TLD level.
04-07-2008, 07:17 PM #3Retired Moderator
- Join Date
- Feb 2005
To add a bit more detail, you're talking about "glue" - IP addresses supplied by the parent nameservers along with the names of your nameservers. It's this you're setting when you register a nameserver at your registrar. In some cases (notably for client domains in other tlds) and for some visitors what you're proposing might work but for consistent, reliable results you really need both glue and A records.
So in answer to your questions:
2. Yes - you should do this anyway (but they can't failover).
3. Not unless you use DNSme's nameservers and pay for them.Chris
"Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter