![]() | |||
|
Web Services Documentation Software Groups Internal |
Configuring Campus Recursive NameserversGuidelinesThe Recursive DNS Server Operation Guidelines describe the background and purpose of this guidelines. The specific guidelines are:
Local Use ZonesAdditional zones may be added to this list in the future.
Sample ConfigurationsThere are three recommended strategies for complying with the requirements of these guidelines.Note that all authoritative servers should be configured to reject recursive (caching) requests or implement one of the recommended strategies. Rejecting Recursive RequestsAuthoritative nameservers with no clients configured to use the server as a recursive resolver should disable recursion.BIND 8/9This document also describes the method for disabling recursion.In named.conf:
options {
recursion no;
fetch-glue no;
};
djbdns/dnscacheBy default the djbdns authoritative nameserver does not provide recursive service. If dnscache is being used to provide caching service, please implement one of the options below.Microsoft DNSTo open the DNS Management Console:Click Start, point to Programs, point to Administrative Tools, and then click DNS to start the DNS Management Console. To disable recursive operation of a Microsoft DNS server:
PowerDNSBy default PowerDNS operates as an authoritative nameserver only. Make sure the configuration file does not contain the "recursor" option to disable this service.Option One: Forward all recursive queries to Computing Services' nameservers.This option makes the most efficient use of campus DNS caching. It does not require administrators configure specific zones in nameservers.BIND 8/9Innamed.conf:
options {
forward only;
forwarders { 128.2.1.10; 128.2.1.11; };
};
djbdns/dnscachednscache can be configured to forward queries to specific addresses. Assuming/etc/dnscache is your service directory, you want to:
echo "128.2.1.10\n128.2.1.11" > /etc/dnscache/root/servers/@ echo 1 > /etc/dnscache/env/FORWARDONLY Microsoft DNSTo open the DNS Management Console:Click Start, point to Programs, point to Administrative Tools, and then click DNS to start the DNS Management Console.
PowerDNSDetails of the PowerDNS recursive configuration are described here.In the PowerDNS configuration: recursor=128.2.1.10 Option Two: Configure your server to forward queries for specific zones to our authoritative nameservers.This configuration requires the creation of zone information for each Local Use Zone in your nameserver.BIND 8/9In yournamed.conf:
zone "local" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "10.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "16.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "17.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "18.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "19.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "20.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "21.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "22.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "23.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "24.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "25.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "26.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "27.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "28.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "29.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "30.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "31.172.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "168.192.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
zone "254.169.in-addr.arpa" { type forward; forward only; forwarders {128.2.1.25;128.2.1.26;}; };
djbdns/dnscacheAssuming your service directory is/etc/dnscache, run
the following commands:
cd /etc/dnscache/root/servers echo "128.2.1.25\n128.2.1.26" > local echo "128.2.1.25\n128.2.1.26" > cmu echo "128.2.1.25\n128.2.1.26" > 10.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 16.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 17.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 18.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 19.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 20.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 21.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 22.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 23.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 24.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 25.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 26.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 27.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 28.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 29.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 30.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 31.172.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 168.192.in-addr.arpa echo "128.2.1.25\n128.2.1.26" > 254.169.in-addr.arpa Microsoft DNSThe Microsoft DNS server does not, as of the time of this writing, appear to support the ability to forward specific zone questions to alternate nameservers. We recommend the use of the first or third options instead.PowerDNSThe PowerDNS system does not, as of the time of this writing, appear to support the ability to forward specific zone questions to alternate nameservers. We recommend the use of the first or third options instead.Option Three: Slave the contents of the local zones.This option requires a nameserver that acts as a unified authoritative and recursive nameserver.BIND 8/9In yournamed.conf:
zone "local" { type slave; file "local.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "10.in-addr.arpa" { type slave; file "10.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "16.172.in-addr.arpa" { type slave; file "16.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "17.172.in-addr.arpa" { type slave; file "17.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "18.172.in-addr.arpa" { type slave; file "18.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "19.172.in-addr.arpa" { type slave; file "19.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "20.172.in-addr.arpa" { type slave; file "20.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "21.172.in-addr.arpa" { type slave; file "21.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "22.172.in-addr.arpa" { type slave; file "22.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "23.172.in-addr.arpa" { type slave; file "23.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "24.172.in-addr.arpa" { type slave; file "24.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "25.172.in-addr.arpa" { type slave; file "25.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "26.172.in-addr.arpa" { type slave; file "26.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "27.172.in-addr.arpa" { type slave; file "27.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "28.172.in-addr.arpa" { type slave; file "28.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "29.172.in-addr.arpa" { type slave; file "29.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "30.172.in-addr.arpa" { type slave; file "30.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "31.172.in-addr.arpa" { type slave; file "31.172.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "168.192.in-addr.arpa" { type slave; file "168.192.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
zone "254.169.in-addr.arpa" { type slave; file "254.169.in-addr.arpa.zone";
masters {128.2.1.25;128.2.1.26;}; };
djbdns/dnscacheThe djbdns architecture separates the authoritative and recursing nameserver components. As such, this option does not fit with the djbdns architecture. We recommend the use of the first or second option instead.Microsoft DNSTo open the DNS Management Console:Click Start, point to Programs, point to Administrative Tools, and then click DNS to start the DNS Management Console. For each zone on the Local Use Zones list:
PowerDNSPowerDNS offers many different backends, each of which could be configured to retrieve the zones from the master nameservers, 128.2.1.25 and 128.2.1.26. The "BindBackend", for example, could be configured similarly to the BIND8/9 configuration above.Contact InformationAny questions about these guidelines or implementation should be directed to: net-dev@andrew.cmu.edu.Revision History
|
||
Home | Webmaster | Copyright | Carnegie Mellon Home |
|||