Solved

Strange Serial Numbers

Posted on 2001-06-17
3
177 Views
Last Modified: 2010-04-20
I have a strange fact I didn't understand, when creating those DNS domains files at /var/named directory.

I have a Script who generates those small files, and in the Serial info it composes a number who is formed by:

YYYYMMDDhhmmss

Well, it works without problem, with one exception: it generates a Serial number in the file, but when we nslookup the Domain, it shows another Serial number.

Please, try this domain:

nslookup -type=Soa areadeteste.com.br 200.201.129.12

It returns the Serial Number 364478947 but inside the areadeteste.com.br DNS file, the Serial number is 20010617111011.

When I used as Serial a number with less digits, the nslookup showed the right number.

Questions:

. Is there a limitation in the lenght of the Serial Number? Could it be the reason?

. Where does it take the other Serial number from?

. Any idea about the problem?

Thanks a lot.

Mario Lima./
0
Comment
Question by:multisites
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
vsamtani earned 100 total points
ID: 6200079
The serial number in the zone file has to fit in 4 bytes, ie it can be minimum 0 and maximum (2^32)-1 = 4294967296. The usual way of specifying zone file serial numbers is to use

YYYYMMDDnn

where nn is a counter for that day.

The bogus serial number 364478947 is the result of trying to interpet the too-long serial number in the zone file:

20010617111011 mod (2^32) = 364478947

Vijay
0
 

Author Comment

by:multisites
ID: 6200255
Yeah, that's it. I will find another way, maybe taking out the century part of the year. Thanks a lot.
0
 
LVL 5

Expert Comment

by:vsamtani
ID: 6201585
You're welcome, and glad to have helped. I would recommend that you keep the century part of the year for your serial numbers, and instead drop the minutes and seconds.

YYYYMMDDnn is a de-facto standard for serial numbers of SOA records, and 2001061711 (1100 hrs, 17 June 2001) is a perfectly acceptable serial number.

Vijay
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
linux(debian) mouse poor performance 4 63
Run Secure WMI query from CentOS 5 83
I NEED A "BARE" LINUX ... 9 57
python - find anything after $ question. 9 18
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question