apt-get install bind9 apt-get install bind9-host apt-get install dnsutils |
cd /etc/bind rndc-confgen > rndc.conf rndc-confgen -a |
# Start of rndc.conf
key "rndckey" {
algorithm hmac-md5;
secret "ylnZwDNmLo7xwJDNzIW0zg==";
};
options {
default-key "rndckey";
default-server 127.0.0.1;
default-port 955;
};
# End of rndc.conf
# Start of rndc.key
key "rndckey" {
algorithm hmac-md5;
secret "ylnZwDNmLo7xwJDNzIW0zg==";
};
# End of rndc.key
|
cp named.conf-caching /etc/bind/named.conf /etc/init.d/bind9 start |
rndc status |
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. |
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 |