Hmmm... I don't understand. You say the box is "not connected", yet you're running a reporting script that presumably is looking up Internet names/addresses and trying to resolve them (?). It needs access -- either directly or indirectly via forwarding -- to the Internet DNS in order to do that. Thus, for DNS purposes it is "connected".

If you're querying the Internet DNS, you *should* be successfully loading those RFC 1918 (private-range)-oriented zones. Otherwise you risk polluting the Internet DNS infrastructure with pointless queries, i.e. querying public DNS for private addresses. It's not really acceptable to just ignore the zone-loading errors.

Your nameserver is not running correctly since it's not finding zone files for zones which are defined as "master" in named.conf. My guess would be that you're running chroot'ed and those zone files are not in the correct location relative to the chroot point.

- Kevin

Chris wrote:
In order to speed up lookups when running my NANAS reporting script I've
setup, hopefully, named as a local caching nameserver. When starting
named I see in my /var/lib/named/var/log/default.log entries such as
this:

18-Mar-2009 21:25:43.396 general: error: zone 0.in-addr.arpa/IN: loading
from master file /var/lib/named/var/lib/named/reverse/named.zero failed:
file not found
18-Mar-2009 21:25:43.396 general: error: zone 10.IN-ADDR.ARPA/IN:
loading from master file /var/lib/named/var/lib/named/master/empty
failed: file not found
18-Mar-2009 21:25:43.396 general: error: zone 0.0.127.in-addr.arpa/IN:
loading from master
file /var/lib/named/var/lib/named/reverse/named.local failed: file not
found
18-Mar-2009 21:25:43.397 general: error: zone 16.172.IN-ADDR.ARPA/IN:
loading from master file /var/lib/named/var/lib/named/master/empty
failed: file not found
18-Mar-2009 21:25:43.397 general: error: zone 31.172.IN-ADDR.ARPA/IN:
loading from master file /var/lib/named/var/lib/named/master/empty
failed: file not found
18-Mar-2009 21:25:43.397 general: error: zone 168.192.IN-ADDR.ARPA/IN:
loading from master file /var/lib/named/var/lib/named/master/empty
failed: file not found
18-Mar-2009 21:25:43.397 general: error: zone 255.in-addr.arpa/IN:
loading from master
file /var/lib/named/var/lib/named/reverse/named.broadcast failed: file
not found
18-Mar-2009 21:25:43.397 general: error: zone
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: 
loading from master file /var/lib/named/var/lib/named/reverse/named.ip6.local 
failed: file not found
18-Mar-2009 21:25:43.397 general: error: zone localdomain/IN: loading
from master file /var/lib/named/var/lib/named/master/localdomain.zone
failed: file not found
18-Mar-2009 21:25:43.397 general: error: zone localhost/IN: loading from
master file /var/lib/named/var/lib/named/master/localhost.zone failed:
file not found
18-Mar-2009 21:25:43.402 general: notice: running

In /var/lib/named/var/lib/named/reverse I have:

-rw-r--r-- 1 named root 427 2009-02-15 05:18 named.broadcast
-rw-r--r-- 1 named root 424 2009-02-15 05:18 named.ip6.local
-rw-r--r-- 1 named root 426 2009-02-15 05:18 named.local
-rw-r--r-- 1 named root 427 2009-02-15 05:18 named.zero

In /var/lib/named/var/lib/named/master I have:

-rw-r--r-- 1 named root 329 2009-03-17 17:44 empty
-rw-r--r-- 1 named root 198 2009-02-15 05:18 localdomain.zone
-rw-r--r-- 1 named root 195 2009-02-15 05:18 localhost.zone

Entries in syslog when starting named show:

Mar 18 21:25:43 localhost named[18426]: listening on IPv4 interface lo,
127.0.0.1#53
Mar 18 21:25:43 localhost named[18426]: listening on IPv4 interface
eth1, 192.168.2.2#53
Mar 18 21:25:43 localhost named[18426]: default max-cache-size
(33554432) applies
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
127.IN-ADDR.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
254.169.IN-ADDR.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
2.0.192.IN-ADDR.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
255.255.255.255.IN-ADDR.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
D.F.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
8.E.F.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
9.E.F.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
A.E.F.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: automatic empty zone:
B.E.F.IP6.ARPA
Mar 18 21:25:43 localhost named[18426]: default max-cache-size
(33554432) applies: view _bind
Mar 18 21:25:43 localhost named[18426]: command channel listening on
127.0.0.1#953

When running the script entries are being made to
the /var/lib/named/var/log query.log:

19-Mar-2009 20:01:15.206 client 127.0.0.1#45833: query:
105.77.35.72.sbl-xbl.spamhaus.org IN TXT +
19-Mar-2009 20:01:15.216 client 127.0.0.1#47903: query:
105.77.35.72.bl.spamcop.net IN TXT +
19-Mar-2009 20:01:15.234 client 127.0.0.1#53764: query:
105.77.35.72.relays.vsi.com IN TXT +
19-Mar-2009 20:01:15.243 client 127.0.0.1#35773: query:
105.77.35.72.bl.spamcop.net IN TXT +
19-Mar-2009 20:01:15.247 client 127.0.0.1#39174: query:
105.77.35.72.cbl.abuseat.org IN TXT +
19-Mar-2009 20:01:15.261 client 127.0.0.1#42247: query:
105.77.35.72.dnsbl.njabl.org IN TXT +
19-Mar-2009 20:01:15.279 client 127.0.0.1#47411: query:
105.77.35.72.dnsbl.sorbs.net IN TXT +
19-Mar-2009 20:01:15.287 client 127.0.0.1#60101: query:
105.77.35.72.dnsbl.njabl.org IN TXT +
19-Mar-2009 20:01:15.296 client 127.0.0.1#36051: query:
105.77.35.72.l1.spews.dnsbl.sorbs.net IN TXT +
19-Mar-2009 20:01:15.305 client 127.0.0.1#39371: query:
105.77.35.72.dnsbl.sorbs.net IN TXT +

Therefore even with the file not found errors above can I 'assume' that
everything is working as it should or not. This is just a local box not
connected to any others.

Thank you for any advice

Chris

------------------------------------------------------------------------

_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to