Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a zone (1.168.192.IN-ADDR.ARPA) $GENERATEing PTR records from 1-254.

However, I also have some custom PTR records, within that range, that are declared aside from the generate directive.

Problem is, when I query the server, I get two (different) answers, one for the record from the generate and one for the record that I provide.

What is the standard approach to solving this problem, so that the generated record is only returned if another record does not exist?

Don't fancy having to split the generate up into sections.

share|improve this question
up vote 3 down vote accepted

$GENERATE is designed to cover the entire range in records - it's not supposed to 'leave alone' RRs that already have an entry on them, since it's perfectly valid to have multiple PTR records for a single IP address. So, the behavior you're looking for would indeed require splitting up the $GENERATEs.

Honestly, it's a lot clearer to read and easy to make changes in the future if you just define each record individually.

share|improve this answer
Yes, given that limitation I suppose it is. – Alex Apr 16 '12 at 0:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.