dapurhosting.com Blog for Tech

May 14, 2009

Mass Change Nameservers in DNS Zone

Filed under: Server — dh @ 5:13 pm


cd /var/named
replace 'ns1.olddomain.com' 'ns1.newdomain.com' -- *.db
replace 'ns2.olddomain.com' 'ns2.newdomain.com' -- *.db

You have to replace ns1/ns2.olddomain.com and ns1/ns2.newdomain.com with the correct nameservers.

Restart named using the command


service named restart
named -u named
ls /scripts/ | grep named
/scripts/rebuilddnsconfig

Also remember to change your nameserver too


vi /etc/nameserverips

May 1, 2009

Show User Process

Filed under: Uncategorized — dh @ 9:14 am

ps -aux | grep user| cut -c 9-14

eval ps ax|grep "user"|grep -iv "grep"| awk '{print $1}'

Powered by WordPress