Results 1 to 8 of 8
Thread: How to change SOA Serial
-
06-17-2009, 11:15 PM #1Newbie
- Join Date
- Aug 2008
- Posts
- 11
How to change SOA Serial
Hi,
I've just got a vps with centos5.3 using webmin and virtualmin. I'm just a beginner. Have setup bind with 4 nameservers.
When I do DNS test via intodns.com
I get the following error:
Looks like your nameservers do not agree on the SOA serial. Ths SOA records as reported by your nameservers:
69.10.134.195 -> 1245290320
76.74.236.21 -> 1245290320
98.142.208.120 -> 1245220342
How to change the SOA seial either in Bind or zoneedit.com.
Thanks!
Thanks!
-
06-18-2009, 12:31 AM #2Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
In bind, just increment the serial. It must increment to pick up the change.
A good method to use it YYYYMMDDXX where XX is some double integer you can increment for multiple changes in the same day.
Example -
2009061710
- then, if you need to correct and reload, you can change the 10 to 20. You can also use 01,02, etc, it just has to increase for bind to recognize the zone has changed and should be reloaded, otherwise it is skipped.
Where is the serial? right where is says ;serial. make your dns change, increment the serial, reload bind (service named restart or rndc reload)
Code:@ IN SOA dns1.example.com. hostmaster.example.com. ( 2001062501 ; serial 21600 ; refresh after 6 hours 3600 ; retry after 1 hour 604800 ; expire after 1 week 86400 ) ; minimum TTL of 1 day
This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
06-18-2009, 01:12 AM #3Newbie
- Join Date
- Aug 2008
- Posts
- 11
-
06-18-2009, 01:18 AM #4Newbie
- Join Date
- Aug 2008
- Posts
- 11
-
06-18-2009, 01:21 AM #5Web Hosting Master
- Join Date
- Jul 2005
- Posts
- 3,784
-
06-18-2009, 01:32 AM #6Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
In bind, depending on if you are using chroot version, it will be in either
/var/named/ or /var/named/chroot/var/named
The location is actually set in your named.conf, which itself can be a couple of different palaces. Just do a "locate named.conf" and you'll find it.
Usually located in /etc/named.conf
Each zone is actually a file, there are standards to the name of the file, but it really doesn't matter what the file is named. I use "db.domain.com.db". This file contains your actual zone record.
Then, in named.conf, you load is as a master record.
I would suggest you read up on named.conf and how to load zones, either as master or secondary. It's a bit hard to describe, but a quick read would do you wonders. Very basically, you create your zone file with your records, then load it by telling the path and type in named.conf.
To make zoneedit a secondary, you'll have to add the IP address in your bind's named.conf to the "allow-transfer" directive. This gives zoneedit's IP the authority to ask and receive a copy of the zone. On the zone edit side, it should be a simple matter of creating a zone as a seondary, it should ask you for the IP of the master, and optionally what to call the file.
You can also go the other way...use zoneedit as master, and your bind as secondary, then you don't have to mess with creating zone files in bind. They will be created for you when transfered from the master.
DNS, although not rocket science, does have some "need to knows".
This will get you started - http://www.freeos.com/articles/3956/
It's just a matter of getting your head around how it works.
Note - I've never used zoneedit, so maybe someone who has can give you specifics. I primarily just use bind, or DNSME for failover on my HA clients.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)
-
06-18-2009, 02:38 AM #7Newbie
- Join Date
- Aug 2008
- Posts
- 11
Thanks! How do I make bind secondary using webmin ?
-
06-18-2009, 02:59 AM #8Intangible Asset Appraiser
- Join Date
- Mar 2009
- Location
- Austin Tx
- Posts
- 2,007
You would need to give the IP of your machine running bind to zoneedit, allowing it to pull secondaries from zone edit. Should be under "Allow Transfers" or something very similar.
Then, in bind's named.conf, instead naming a zone master and giving the location of the zone file, you name it as secondary and give the IP of zoneedit's DNS server you are using. Bind will contact the IP and ask for the zones you have named in your named.conf.
Example entry in named.conf to pull secondary from 199.227.55.3 (just an example IP):
Code:zone "mydomain.com" {type slave; file "slaves/db.mydomain.com.slave"; masters { 199.227.55.3; };};
Of course, substitute your own actual zone(s) and master dns IP.
You'll need one for each zone you want to pull over. You do not create the slave/db.* files, this is just where they are stored after successful transfer to your secondary. If the transfer is successful, you'll see 'em come pouring into the dir.This is the best signature in the world....Tribute!
(It is not the best signature in the world, no. This is just a tribute)