Need help with DNS mini-lab
Joshua Peter
fsjcp2 at hotmail.com
Fri Apr 8 17:59:43 UTC 2005
I'm a total newbie and got a couple of test computers set up to learn how to
administer DNS with Bind. I'm using RH9 and the following are my files.
#NS1 /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address 192.168.1.200 port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "somefakedomain.com" IN {
type master;
file "somefakedomain.com.zone";
allow-update { none; };
allow-transfer { 192.168.1.201; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
#NS1 /var/named/somefakedomain.com.zone
$TTL 86400
$ORIGIN somefakedomain.com.
@ IN SOA ns1.somefakedomain.com. admin.somefakedomain.com. (
2004042601 ; serial
21600 ; refresh
3600 ; retry
604800 ; expiry
86400 ) ; minimum
IN NS ns1.somefakedomain.com.
IN NS ns2.somefakedomain.com.
IN MX 10 mail.somefakedomain.com.
IN A 192.168.1.200
ns1 IN A 192.168.1.200
ns2 IN A 192.168.1.201
www IN A 192.168.1.200
ftp IN A 192.168.1.200
mail IN A 192.168.1.200
#NS2 /etc/named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
query-source address 192.168.1.200 port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "somefakedomain.com" IN {
type slave;
file "somefakedomain.com.zone";
masters {
192.168.1.200;
};
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
include "/etc/rndc.key";
#NS2 cat /var/log/messages (relevant to named reload)
Apr 8 09:32:53 ns2 named[1650]: loading configuration from
'/etc/named.conf'
Apr 8 09:32:53 ns2 named[1650]: no IPv6 interfaces found
Apr 8 09:32:53 ns2 named[1650]: could not get query source dispatcher
Apr 8 09:32:53 ns2 named[1650]: reloading configuration failed: address not
available
Apr 8 09:32:53 ns2 named: named reload succeeded
More information about the bind-users
mailing list