Linode Forum
https://forum.linode.com/

Linode As Nameserver: HowTo? and With GoDaddy?
https://forum.linode.com/viewtopic.php?f=19&t=4380
Page 2 of 2

Author:  hoopycat [ Mon Jul 06, 2009 10:29 pm ]
Post subject: 

chernevik wrote:
Thanks! But I'm confused.

1. What's wonky about the www entry?


Nothing, it's just in there :-)

Quote:
2. I don't see the NS record that should be deleted. Yeah, there is a name server with the host 'workshop', but that's the only server I've got in this set up, so it has to serve names.


Generally speaking, the NS records on your domain should match the ones in the parent zone unless there's a good reason otherwise (e.g. shadow masters, etc). Since workshop and nameserver1 are the same IP, there's no good reason to keep an NS record pointing at workshop.

Quote:
3. I don't understand the nameserver records you suggest adding. I thought the format of nameserver records was
[domain] IN NS [nameserver_name.domain], and I've got that; and the format of the host addresses was
[host].[domain] IN A [IP address]
and I've got that. So I'm confused.


With BIND, the domain is optional if you're already within the context of a zone. So, instead of doing:

Code:
practicalhorseshoeing.net. IN SOA 1234 blah blah blah
practicalhorseshoeing.net. IN NS nameserver1.practicalhorseshoeing.net.
practicalhorseshoeing.net. IN NS nameserver2.practicalhorseshoeing.net.
nameserver1.practicalhorseshoeing.net. IN A 1.2.3.4
nameserver2.practicalhorseshoeing.net. IN A 4.3.2.1
www.practicalhorseshoeing.net. IN A 1.2.3.4


You can just do:

Code:
@ IN SOA 1234 blah blah blah
 IN NS nameserver1
 IN NS nameserver2
nameserver1 IN A 1.2.3.4
nameserver2 IN A 4.3.2.1
www IN A 1.2.3.4


It's been awhile since I've looked it up, but I believe the @ is what "homes" everything to the current zone. (This is handy if, later on in a zone file, you change it with $ORIGIN).

This not only saves typing, but if you have a bunch of domains that need the exact same records, you can use the same zone file and save a LOT of typing!

Quote:
4. I know the nameserver on x81 is unresponsive, I'm setting this up with just the one server. At some point I'll have to set up an alias that sends that on to x80.

Thank you for all your helps.


There's a reason they require a minimum of two nameservers, you know. :-) -rt

Author:  chernevik [ Tue Jul 07, 2009 9:16 am ]
Post subject: 

Thanks. I've added a record for the domain without the www. prefix, as queries for www.blah worked but those for blah didn't, and taken out the nameserver1 record. I'm avoiding shorthand notation for the time being. And yes, I do need a second name server -- this first point of the exercise was educational, and you've been a great help. Thank you.

The solution to the nslookup problem also required revision to /etc/resolv.conf. This had to set the domain to that of the server (rather than the linode default), comment out the "search" directive in the linode default file, and place "nameserver 127.0.0.1" ahead of the linode nameservers. With those edits, nslookup works fine.

Finally, I'll close the loop on my initial question about registering name servers at GoDaddy. I had to first register the hosts and IP addresses of the nameservers (workshop.blah.net and nameserver2.blah.net) in their Host Summary section (with the "add" button). I could then designate these hosts as the name servers. Those hosts' names had to match up with host addresses established in the zone file. GoDaddy wasn't helpful answering questions, but they weren't the problem, and changes to the host registrations and name server designations seemed to happen pretty quickly.

Author:  hoopycat [ Tue Jul 07, 2009 11:14 am ]
Post subject: 

Cool! Looks solid from here.

Once you know what you're looking for, GoDaddy's interface for adding glue isn't too shabby, and it supports IPv6-only records, too. I keep a domain there just for that, alas.

Page 2 of 2 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/