Solved

Strange Serial Numbers

Posted on 2001-06-17
3
172 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
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.

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now