Back
Configuring a Nameserver Some quick notes regarding registering your domain name. Scenerio: Your ISP is changing his IP blocks. All of the information on your name server remains the same, except the IPs. Use the "HOST FORM" from internic to make your changes. I would recommend that you change ONE nameserver at a time, as internic may take up to a week to modify domain records with IP changes. These kinds of records are changed manually, so it can take a while.

Internic records follow the idea that a single name server is attached to a single IP. What this means, is that if you are doing virtual name hosting, all of the respective sites you are hosting will be changed once internic makes the respective record changes (note: You may not have a name server with 2 IPs).

change your /etc/resolv.conf file
nameserver 127.0.0.1		<---- localhost
nameserver 207.12.13.235	<---- your local IP
nameserver 207.12.12.6		<---- your ISP IP
You will need to create 4 files:
/etc/namedb/master/mui.net.hosts	<---- domain records
/etc/namedb/master/127.0.0		<---- reverse local records
/etc/namedb/master/207.12.13		<---- reverse records
/etc/namedb/named.conf			<---- bind records

server: rocksalt (207.12.13.235)
nameserver: rocksalt
2nd nameserver: prune
domain: mui.net
feed: pohaku.hi.net (207.12.12.6)

substitute the server, domain, feed information where applies. Note that the "235" reference applies to the last part of my IP address.

You may find a copy of what I use here.

note: the "serial" is the serial number of the date, YYYYMMDDXX where XX=01 for the first modification, 02 for the second time you change something etc. This is how the systems out there know if you changed some information. Be sure to increment it if you change anything.

change your /etc/rc.conf file so it says:

named_enable="YES"
named_flags="-b /etc/namedb/named.conf"

nslookup is a good tool to use to check if you did everything correctly. This info is intended simply to give you a good start. Chapter 25 in The Complete FreeBSD by Greg Lehey was my reference. Thanks to Jack Morgan for his help.

very very important. You must put a period after the name (ie, rocksalt.mui.net.) in nslookup or it will not look correctly. This also applies in the domain records. Be sure to look very carefully at the examples or it can mess you up.

An important note: simply putting your information here is not the last step you need to do. Whoever is in charge of your "subnet" needs to create the neccessary matching files both forward and reverse (IP). If it isn't done then you may experience your site going up and down.

If at all possible, make sure that you have a primary and secondary name server. You may have more than one secondary name server. more is usually better. Having more than one primary name server isn't usually recommended.

If you're creating a secondary name server, you basically will be substituting the word "primary" with "secondary".

If you're planning on becoming an ISP, I'd recommend DNS & BIND by O'reilly. The second edition is out. It gets a little cryptic, and it isn't the easiest stuff to understand, but it'll become a reference guide.


Back