?
Solved

Strange Serial Numbers

Posted on 2001-06-17
3
Medium Priority
?
180 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 400 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

What Is Blockchain Technology?

Blockchain is a technology that underpins the success of Bitcoin and other digital currencies, but it has uses far beyond finance. Learn how blockchain works and why it is proving disruptive to other areas of IT.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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