spyordie007
Diamond Member
I'm trying to help out someone who is having some BIND issues. They are running dual servers on two boxes (internal and external/primary and secondary).
The problem is that every couple of months their secondary server pulls from the external side on the primary server when doing a zone update and starts giving out their internal 10.x addresses for their servers. Every time this happens they have been able to stop and restart BIND on the secondary server and it starts pulling the zones from the correct servers.
Primary is 10.10.1.10 and 64.x.x.2
Secondary is 10.10.1.6 and 64.x.x.3
Here is the current config on the primary:
The primary:
Thanks,
Erik
The problem is that every couple of months their secondary server pulls from the external side on the primary server when doing a zone update and starts giving out their internal 10.x addresses for their servers. Every time this happens they have been able to stop and restart BIND on the secondary server and it starts pulling the zones from the correct servers.
Primary is 10.10.1.10 and 64.x.x.2
Secondary is 10.10.1.6 and 64.x.x.3
Here is the current config on the primary:
And the current secondary config:view "internal" {
match-clients { !10.10.1.6; 10.0.0.0/8; 64.x.x.0/20; 127.0.0.0/8; };
recursion yes;
allow-transfer { !10.10.1.6; };
allow-query { 10.0.0.0/8; 64.x.x.0/20; 127.0.0.0/8; };
zone "domain.com" {
// Our internal A RR zone. There may be several of these.
type master;
file "internal/db.domain.com";
};
reverse lookup omitted
};
view "external" {
match-clients { any; };
allow-transfer { 10.10.1.6; };
recursion no;
zone "domain.com" {
type master;
file "external/db.domain.com";
allow-query { any; };
};
omitted
};
Now I dont have a ton of experience with BIND but it's my hunch when issues occur the slave is doing the zone update against the public IP of the primary server. Therefore my suggested changes are...view "internal" {
match-clients { 127.0.0.0/8; 10.0.0.0/8; 64.x.x.0/20; };
recursion yes;
zone "domain.com" {
type slave;
file "slaves/internal/db.domain.com";
masters { 10.10.1.10; };
allow-transfer { none; };
};
omitted
};
view "external" {
match-clients { any; };
recursion no;
zone "domain.com" {
type slave;
file "slaves/external/db.domain.com";
masters { 10.10.1.10; };
allow-transfer { none; };
};
omitted
};
The primary:
And the secondary config:view "internal" {
match-clients { 10.0.0.0/8; 127.0.0.0/8; };
recursion yes;
allow-transfer { 10.10.1.6; };
allow-query { 10.0.0.0/8; 127.0.0.0/8; };
zone "domain.com" {
// Our internal A RR zone. There may be several of these.
type master;
file "internal/db.domain.com";
};
omitted
};
view "external" {
match-clients { any; };
allow-transfer { 10.10.1.6; };
recursion no;
zone "domain.com" {
type master;
file "external/db.domain.com";
allow-query { any; };
};
omitted
};
Does this sound like a reasonable possibility? Can anyone confirm that this would be the correct changes to make?view "internal" {
match-clients { 127.0.0.0/8; 10.0.0.0/8; };
recursion yes;
zone "domain.com" {
type slave;
file "slaves/internal/db.domain.com";
masters { 10.10.1.10; };
allow-transfer { none; };
};
omitted
};
view "external" {
match-clients { any; };
recursion no;
zone "domain.com" {
type slave;
file "slaves/external/db.domain.com";
masters { 10.10.1.10; };
allow-transfer { none; };
};
omitted
};
Thanks,
Erik