Archive for the ‘dns’ Category

Each and every zone file has a unique serial number and that serial number should increment with each subsequent revision

A serial number is traditionally in the format (YYYYMMDDSS) where SS the sequence number. For example, today is 6/24/2011, so the serial number in a zone file modfied today would be… 2011062400.

So let’s say that you pushed that zone today and when you went back to make an additional change, you accidentally added an additional number to your serials and instead of 2011062400 you ended up with 22011062400.

In order to get everything back in order you will need to manually reset the zone file’s serial number by setting it to the number below. Its highest number you can get using 32 bits.

4294967295

To to reset your serial number, update your zone file with the serial number listed above and push it out to the slaves. Then change your zone files serial number back to the correctserial number, which will be considered to be greater than the magic number above. Then push dns again.

Check your slave servers and verify the the zone file now has the correct serial.

 

Original article: http://www.fatmin.com/2011/01/bind-zone-file-serial-number-reset.html

wget --user-agent Firefox --save-headers --referer "http://www.google.com/search?q=duuude" "example.com"

http://www.linuxscrew.com/2009/12/21/best-of-linux-cheat-sheets/

1. Create a subdomain z-WILDCARD in Plesk – of course in the admin section of the right domain.
Why do we need this name? ’cause this entry should be the last entry in the list of subdomains, otherwise this
“trick” will not work. So if you have a domain as e.g. zabalula , than you should maybe name the subdomain zzzz-WILDCARD
or similar.
2. Add special configuration (catchall for all subdomains) to the vhosts.conf file of this subdomain.
Normally it’s located in /srv/www/vhosts/domain.com/subdomains/z-WILDCARD/conf/vhosts.conf. You have to create it
– normally you need the root user to do this. Copy the following content into the file:
ServerAlias *.domain.com
3. Apply the new configuration – recreate the Apache configuration. You have to run the tool websrvmng which is a
Plesk tool that manages and creates the webserver configuration. Execute the following as root user.
/usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com
4. Finally – restart Apache to load the new configuration, also as root.
apache2ctl restart