nameserver 127.0.0.1 <---- localhost nameserver 126.96.36.199 <---- your local IP nameserver 188.8.131.52 <---- 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 (184.108.40.206) nameserver: rocksalt 2nd nameserver: prune domain: mui.net feed: pohaku.hi.net (220.127.116.11)
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.