Solved

Strange Serial Numbers

Posted on 2001-06-17
3
178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
open source backup solution 1 45
000webhost.com default error log 1 61
Impact of disabling SMB v1 on Mac and Linux clients 4 696
php56-php-mcrypt for rhel7 php56 1 111
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

726 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