Web Design Blog - July 27, 2007

Sub domain creation on the fly with DNS Bind

Using Cpanel/Whm - I had to set up bind to accept any subdomain. In the /var/named folder there are a bunch of *.db files. Find the appropriate file for your domain. Set it up to look something like this: $TTL 14400 @ 86400 IN SOA ns1.yourdomain.com. email.domain.com. ( 2006090901 ; serial, todays date+todays 86400 ; refresh, seconds 7200 ; retry, seconds 3600000 ; expire, seconds 86400 ) ; minimum, seconds yourdomain.com. 86400 IN NS ns1.yourdomain.com. yourdomain.com. 86400 IN NS ns2.yourdomai... read more!

Posted in snippets | Post Comment


View All Posts