LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   BIND9 PTR Records (https://www.linuxquestions.org/questions/linux-software-2/bind9-ptr-records-902419/)

pgibsonorg 09-11-2011 06:24 AM

BIND9 PTR Records
 
Hey all,
I'm configuring a personal name server and I was trying to understand how to configure PTR records.
The IP addresses I need PTR records for are not anywhere near the same subnet, but I don't want to create a zone for each IP I need a PTR Record for.
Basically the way I have it right now I have to have:
//zone for first IP
zone "x.x.x.x.in-addr.arpa" {
type master;
file "named.x.x.x.x.in-addr.arpa";
};
//zone for second IP
zone "x.x.x.x.in-addr.arpa" {
type master;
file "named.x.x.x.x.in-addr.arpa";
};
. . .

What I would like is to have one zone and one file.
I found that I can do this by making a zone "in-addr.arpa" but when I do this it will consider my name server the SOA for all PTR records, I don't want that to happen.

Thanks in advanced!

dafydd2277 09-12-2011 05:58 PM

Hello, pgibson,

I asked a similar question a couple months ago. The one reply I got had to do more with aliasing one domain to another via zone files, and not the actually combination of zone files.

I suspect BIND doesn't actually support combining zone files. As non-intuitive as zone files are, I'm not sure I really mind the extra work of having multiple files over a single file that is even more non-intuitive than normal.

Cheers!
dafydd


All times are GMT -5. The time now is 06:40 PM.