hossman has asked for the wisdom of the Perl Monks concerning the following question:

I apologize for the offtopicness, but this seems like a problem other people here would have solved before.

A friend of mine asked me to help write some scripts that could parse the zone files of a "master" DNS server, to get a list of all zones that it is a master of, and then pass the data off to scripts running on multiple "slave" DNS servers to update their zone files to indicate that they should slave them off of that master.

All of which sounds fine and dandy -- but it sounds to me like this would be a common enough situation, that someone somewhere would have incorperated into the DNS protocol a way to query a server for the list of zones it is an authority of.

Now I'm not much of a DNS guru, but I've been skimming the docs, and I can't seem to find anything like that. Am I missing something?

  • Comment on OT: DNS question: query server for all zones it is authoritative

Replies are listed 'Best First'.
Re: OT: DNS question: query server for all zones it is authoritative
by Anonymous Monk on Feb 12, 2004 at 10:33 UTC
    You're missing CPAN!

      You're missing CPAN!

      Uh, ... what are you talking about?

      I'm well aware of the CPAN modules for querying DNS servers and for parsing zone files. That's not what my question is.

      The key question I asked -- or tried to since there seems to have been some confusion -- Is there anything in the DNS protocol that provides "a way to query a server for the list of zones it is an authority of."

      My hope being that I won't have to parse zone files, or run any special script on the master at all ... i'm looking for a platform / dns server implimentation agnostic mechanism for clients to ask DNS servers what they are masters of.