Skip to main content

Thread: BIND: different record internally for same zone


hi,

think basic task accomplish in bind, whatever reason, i'm not having luck making work right.

have domain "example.com" have host "host.example.com" has both internal , external ip.

i'd internal hosts see "host.example.com" using internal ip , externals, obviously, access via external.

know views, , have them implemented. unfortunately, way have configured currently, other hosts on "example.com" fail resolve internally. have duplicate records zone?

here's i've got:

/etc/bind/named.conf.local:
code:
...    view "internal" {          match-clients { internals; };          recursion yes;            include "/etc/bind/zones.rfc1918";          include "/etc/bind/named.conf.default-zones";            zone "internal.locallan." {                  type master;                  notify yes;                  file "/var/cache/bind/internal/db.internal.locallan";                  allow-update { key dhcpupdate; };                  allow-transfer { slaves; };          };            zone "30.172.in-addr.arpa" {                  type master;                  notify yes;                  file "/var/cache/bind/internal/db.172.30";                  allow-update { key dhcpupdate; };                  allow-transfer { slaves; };          };            zone "example.com" {                  type master;                  file "/var/cache/bind/external/db.example.com-internal";                  allow-transfer { slaves; };                  allow-query { any; };          };  };    view "external" {          match-clients { any; };          allow-recursion {                  trusted;          };          zone "example.com" {                  type master;                  file "/var/cache/bind/external/db.example.com";                  allow-transfer { slaves; };          };         };    ...
with configurations, internal hosts can resolve public addresses , local addresses (e.g. internal.locallan). however, they've lost ability resolve "example.com" records except configured in "db.example.com-internal" file. have in zone file records "example.com" differs rest of world sees.

i'm making sense. there easier way pull off i'm trying accomplish?

thanks.

i have been hesitant having overlapping match-clients in views. since have in "external" view may getting resolution there. try having match-clients { !internals; } instead of "any".


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] BIND: different record internally for same zone


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support