apt-get install bind9 apt-get install bind9-host apt-get install dnsutils |
cd /etc/bind rndc-confgen -r /dev/urandom > rndc.conf rndc-confgen -r /dev/urandom -a |
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "ylnZwDNmLo7xwJDNzIW0zg==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 955;
};
# End of rndc.conf
# Start of rndc.key
key "rndc-key" {
algorithm hmac-md5;
secret "ylnZwDNmLo7xwJDNzIW0zg==";
};
# End of rndc.key
|
pkill -HUP named |
cp named.conf-caching /etc/bind/named.conf /etc/init.d/bind9 start |
rndc status |
pkill -9 named |
dig MX @127.0.0.1 engsoft.rutgers.edu. |
;; ANSWER SECTION: engsoft.rutgers.edu. 86400 IN MX 0 soemail.rutgers.edu. |
pkill -9 dhclient3 ifconfig lo 127.0.0.1 netmask 255.0.0.0 ifconfig eth0 192.168.5.18 netmask 255.255.255.0 #use your machine IP here |
search rutgers.edu nameserver 127.0.0.1 |
dig engsoft.rutgers.edu. |
dig @a.root-servers.net . ns > /etc/bind/db.root |
rndc reload |
dig engsoft.rutgers.edu. |
mkdir /var/cache/bind/pdm cp linux.class /var/cache/bind/pdm cp 192.168.5 /var/cache/bind/pdm |
rndc reload |
dig unisys18.linux.class. |
rndc reload |