Archive for the ‘DNS’ category

How to Increase the Serial Number For All DNS Zones

July 29th, 2010

NDCHost has made available a nice script that will increase the serial numbers for all DNS zones:

# cd /sbin
# rm -f updateserial
# wget http://www.ndchost.com/cpanel-whm/scripts/updateserial/download.php
# chown root.root updateserial
# chmod 0750 updateserial
# /sbin/updateserial -d /var/named

To activate your changes, be sure to reload rndc:
# rndc reload

Share

Reverse DNS on cPanel

May 3rd, 2010

97%* of providers don’t allow their customers complete control of reverse DNS. If you’re part of that 3%*, check out this wiki article as a resource.

* Statistics made up, but accurate from what I’ve seen.

Share

How to Install cPanel DNSonly

April 22nd, 2010

Installing cPanel DNSonly should only be done on a fresh installation of a supported OS.

cd /home
wget http://layer1.cpanel.net/cpanel-universal-dnsonly-install.sea
sh cpanel-universal-dnsonly-install.sea
cd cpanel-universal-dnsonly-install
sh install

Share

How to Disable DNS Recursion in Bind

October 31st, 2009

Disabling DNS recursion is something most administrators will suggest, as having it enabled can cause performance issues.

vi /etc/named.conf

Then, in the options { section, add the following:

recursion no;

If recursion yes; is already there, just change it to recursion no; and restart named to activate your changes.

./scripts/restartsrv_named
Share

Change all TTL’s to 300

September 24th, 2009

So you’re migrating servers and you want to make sure that the TTL’s on your DNS zones are low so that DNS propagates quickly. Instead of changing all the TTL’s manually in Edit a DNS Zone in WHM, you can run a very simple script from SSH to change all TTLs from 14400 to 300 seconds.

First we’ll create a backup, then we’ll make the mass change:

1) mkdir /root/var.named.backup/
2) cp -Rv /var/named/* /root/var.named.backup/
3) cd /var/named
4) replace -v “$TTL 14400″ “$TTL 3600″ — *.db
5) /usr/sbin/rndc reload

If you have DNS zones using a TTL other than 14400 seconds, rerun the script again, replacing 14400 with that value.

Next you’ll likely want to increase the serial number for your DNS zones, so that BIND recognizes the changes.

Share

cPanel Web Site Hosting by IntraHost