Wednesday, October 19, 2011

display or view dns cache entries

#rndc dumpdb -all
#more /etc/namedb/named_dump.db

Tuesday, October 11, 2011

Dynamic ip with permanent DNS

BSD:

vi /etc/dhclient.conf
add
supersede domain-name-servers x.x.x.x , y.y.y.y ;

x.x.x.x = dns-server-1
y.y.y.y = dns-server-2

--------------------------------------------------------
Ubuntu :

root@mail:~# more /etc/dhcp3/dhclient.conf
request subnet-mask, broadcast-address, time-offset, routers, host-name, ntp-servers;
supersede domain-name "ubuntu8.com";
prepend domain-name-servers 8.8.8.8;

enable ssh in backtrack

#sshd-generate
#/etc/init.d/ssh start
#netstat -an | grep 22