Revision [2316]
This is an old revision of Tier2ServerConfig made by BryonEldridge on 2010-12-24 08:13:18.
Configuring Your Name Server
Here are some basic instructions on configuring your name server to access, and serve, the OpenNIC Top-Level Domains (TLDs). This page has, at the moment, instructions for only a limited range of nameservers. If you've configured another DNS server to use OpenNIC, please post instructions to the MailingLists discussion list (or edit this page!) so we can expand this page.
General Information
Configuration entails a simple modification of the default configuration file to access the new Top-Level Domains (TLDs) by using the root (Tier1) servers administered by OpenNIC.
You should also join the appropriate MailingLists so you'll be notified of changing situations which may affect your operation.
BIND (8/9)
Most Unix systems put the BIND configuration file at either /etc/named.conf (as most Linux distributions do) or ar /var/named/named.conf (as the bind8 port installer for OpenBSD does).
In the named.conf (or one of its includes), find a block that looks like this:
zone "." in { type hint; file "root.cache"; };
This specifies a hint zone named '.', the root zone. Hints specified in the root.cache file are used to locate root servers and perform recursive queries. The root.cache file may also be called named.cache. To switch from the IANA root servers to OpenNIC root servers:
dig . NS @ns0.opennic.glue > root.cache
BIND will query a root servers in the hints file for the NS records for '.' (the root zone), and use that list of root servers to perform queries. This is how a normal recursive DNS server operates, even outside of OpenNIC. This is the easiest way to configure BIND to use the OpenNIC root.
Alternatively, you can slave the root zone from root servers that allow transfer of the root zone. Change it to look like this:
zone "." in { type slave; masters { [server IP number]; [server IP number]; [server IP number]; }; notify no; };
You can have from 1 to many entries in the "master" section. We recommend using at least three Tier1 servers.
BIND 4
Most Unix systems put the BIND 4 configuration file at either /etc/named.boot (as most Linux distributions do) or ar /var/named/named.boot (as the default install for OpenBSD does).
In the named.boot, you should have a line that looks like this:
cache . root.cache
Change it to look like this (please choose the nearest Tier1 server for this):
secondary . [server IP number] tld-root
DJBDNS
Instructions provided by Alan Hodgson, .geek hostnaster.
1) Change into your dnscache root/servers directory.
# cd /service/dnscache/root/servers
2) Replace your root servers file (root/servers/@) with the IP numbers of the Tier1 servers, obtained by using dnsq to query the Tier0 IP number (this step can be done manually, as well).
# cp -f @ /tmp/@.saved # dnsq ns . [Server IP number] | grep -iv ns0.opennic.glue \ | awk '{ if (/^additional/) print $5}' > /tmp/@.new # cat /tmp/@.new
3) If it looks okay (i.e. a list of IP addresses), replace the file.
# mv -f /tmp/@.new @
4) Restart dnscache
# svc -t /service/dnscache
5) Verify that it's working
# dnsip www.opennic.glue
Windows 2000 DNS Server
Contributed by Michael Patrick.
- Bring up the DNS Administrator from Administrative Tools...
- Bring up the properties of the DNS Server
- Go to the "Root Hints" tab
- Remove the root server entries
- Replace them with the Tier 1 servers from here.
- Stop and Start the DNS service
- If needed, clear and refresh your view of the cache and you should see .glue
- try it out on http://www.opennic.glue.
My C:\WINNT\system32\dns\cache.dns file after modification (I would recommend keeping a copy of your file in case something bad happens to it). [And keep in mind that server IPs can change.]
CategoryHostmastering