Linux-Noob Forums
DNS Local Zone not resolving - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: Network Problems (https://www.linux-noob.com/forums/forum-58.html)
+--- Thread: DNS Local Zone not resolving (/thread-1223.html)



DNS Local Zone not resolving - cyris - 2007-08-07


Hey everyone!

 

I've reconfigured our dns server (bind9) with views so that it can serve our internal and external clients.

 

I've been able to get our external zone file working fine, however my internal zone file doesn't seem to be working as none of my clients when querying my dns server seem to be able to resolve anything in my internal view :/ tux (our dns server) can't even rese any clients in this internal zone file.

 

Magikman on #linux-noob has been helping me with the issue but we haven't been able to find out why this setup isn't working. He did recommend that I move my zones outside of my named.conf but this should be working regardless :/

 

Named.conf



Code:
// Default named.conf generated by install of bind-9.3.1-14_FC4
options {
    directory "/var/named";
    allow-recursion { localhost; internals;};
    allow-query { any;};
    };
acl internals {
    127.0.0.0/8;
    192.168.0.0/24;
    192.168.1.0/24;
    172.168.0.0/24;
};
view "external" {
    match-clients { any; };
    zone "iainc.ca" {
    type master;
    file "data/zone.iainc.ca";
    };
    zone "." {
    type hint;
    file "named.ca";
    };
};
view "internal" {
    match-clients { internals; };
    zone "iainc.local" {
    type master;
    file "data/zone.iainc.local";
    };
};




 

internal zone



Code:
$TTL 1D
@ IN SOA ns1.iainc.local. support.iainc.local. (
                                            2007072610; Serial
                                            604800 ; Refresh
                                            86400  ; Retry
                                            2419200; Expire
                                            604800 ); Minimum
;name server
    IN NS ns1.iainc.local.

;office hosts
ns1 IN A 192.168.1.4
fred IN A 192.168.0.1