0

I have one server Bind9 and 2 different domains.

I'ld like to have reverse resolution for each domain.

I've tried this configuration below but I get the error in named-checkconf :
/etc/bind/named.conf:30: zone '10.0.10.in-addr.arpa': already exists previous definition:/etc/bind/named.conf:19

My configuration :

zone "ngux.org" {
    type master;
    file "/etc/bind/db.ngux.org";
    allow-transfer { 10.0.10.99; };
};
zone "10.0.10.in-addr.arpa" {
    type master;
    file "/etc/bind/db.ngux.org.rev";
    allow-transfer { 10.0.10.99; };
};
zone "ldap.ngux.lan" {
    type master;
    file "/etc/bind/db.ldap.ngux.lan";
    allow-transfer { 10.0.10.99; };
};
zone "10.0.10.in-addr.arpa" {
    type master;
    file "/etc/bind/db.ldap.ngux.lan.rev";
    allow-transfer { 10.0.10.99; };
};

What should I do ? Have only one file for the 2 reverses addrreses ?
Thanx.

nguxx
  • 3
  • 3

1 Answers1

1

The reverse resolution is not bound to the forward DNS entry.

You need a zone for the subnet. ngux.org and ngux.lan can both be written to the same reverse zone. Simply deleting the second reverse zone will achieve what you want.

vidarlo
  • 6,654
  • 2
  • 18
  • 31