Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-05-2014, 02:52 PM
|
#1
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Rep:
|
more bind issues (again)
At a loss
Both zone files for my local network are not being picked up by bind
Code:
May 5 14:00:55 external named[6810]: zone 7.168.192.in-addr.arpa/IN: loading from master file /var/bind9/chroot/var/cache/bind/db.7.168.192 failed: file not found
Code:
sudo cat /var/bind9/chroot/cache/bind db.7.168.192 returns the file
the permissions seem right and there are no reported config errors
Code:
:/$ sudo named-checkconf -t /var/bind9/chroot /etc/bind/named.conf
:/$ (returns nothing)
Yet webmin detects and reads the and shows the zones in its interface. And the entries are right.
Setup has only ever been chrooted, and it is a fresh install of Debian Wheezy headless 32.
The dhcp server is not updating the zone files either, but that may not be related. Until I am sure that the zone files are being loaded correctly the dhcp server is not a concern. Unless you think it should be.
I solved lots of other issues I have been having with google but so far no joy this time.
Thanks.
|
|
|
05-05-2014, 03:31 PM
|
#2
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
This path:
Quote:
Originally Posted by rbees
Code:
May 5 14:00:55 external named[6810]: zone 7.168.192.in-addr.arpa/IN: loading from master file /var/bind9/chroot/var/cache/bind/db.7.168.192 failed: file not found
|
...does not match this path (even if we assume the space should have been a "/", there's still a "var/" missing):
Quote:
Originally Posted by rbees
Code:
sudo cat /var/bind9/chroot/cache/bind db.7.168.192
|
|
|
|
05-05-2014, 04:08 PM
|
#3
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Original Poster
Rep:
|
thanks Ser Olmy
thats just a typo.
Code:
:~$ sudo cat /var/bind9/chroot/var/cache/bind/db.7.168.192 failed
[sudo] password for rbees:
;
;
$TTL 86400
@ IN SOA some.foo. some.foo. (
2 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
86400 ) ; Negative Cache TTL
;
@ IN NS some.foo.
;
1 IN PTR some.foo.
cat: failed: No such file or directory
:~$
I have rebooted since my previous post. I was not getting the cat error before. What's up with that? It returns the file but then turns around as says "No such file...."
duh, would ya just slap me. Look at the command, it contains "failed"
without that in there it returns like it should.
Code:
named[2419]: zone 7.168.192.in-addr.arpa/IN: loading from master file /var/bind9/chroot/var/cache/bind/db.7.168.192 failed: file not found
|
|
|
05-05-2014, 04:13 PM
|
#4
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
If you're running named in a chroot'ed environment, the path should be relative to the virtual root.
(And if you're not running in a chroot'ed environment, why do you keep a zone file in a directory belonging to one?)
Last edited by Ser Olmy; 05-05-2014 at 04:35 PM.
|
|
|
05-05-2014, 04:22 PM
|
#5
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Original Poster
Rep:
|
thanks
Quote:
Setup has only ever been chrooted
|
|
|
|
05-05-2014, 05:36 PM
|
#6
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Original Poster
Rep:
|
I have tried to increase the logging out but with this http://stackoverflow.com/questions/1...s-full-logging but it didn't help
|
|
|
05-05-2014, 05:43 PM
|
#7
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
The error message is quite straightforward: The file cannot be found or accessed.
What are the access rights on the file ( ls -l)? Under which account is bind running?
I still don't understand what you mean by this:
Quote:
Originally Posted by rbees
Setup has only ever been chrooted
|
Is bind running in a chroot'ed environment or not?
|
|
|
05-05-2014, 06:39 PM
|
#8
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Original Poster
Rep:
|
Sorry I will clarify
The install is debian wheezy and bind was setup from the start chrooted. All the other files in the chroot are accessed fine.
Code:
-rw-r--r-- 1 bind bind 290 May 5 13:10 db.7.168.192
-rw-r--r-- 1 bind bind 276 May 5 13:10 db.foo.local
-rw-r--r-- 1 bind bind 221 May 5 13:09 managed-keys.bind
The managed-keys.bind file seems to be accessed fine.
Code:
05-May-2014 21:23:21.260 zone foo.local/IN: loading from master file /var/bind9/chroot/var/cache/bind/db.foo.local failed: file not found
05-May-2014 21:23:21.260 zone foo.local/IN: not loaded due to errors.
05-May-2014 21:23:21.262 zone localhost/IN: loaded serial 2
05-May-2014 21:23:21.263 managed-keys-zone ./IN: loaded serial 25
05-May-2014 21:23:21.267 running
Last edited by rbees; 05-05-2014 at 06:43 PM.
|
|
|
05-05-2014, 06:42 PM
|
#9
|
Senior Member
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348
Rep:
|
OK, so bind runs in a chroot environment. Shouldn't the path then be /var/cache/bind/db.foo.local?
Could you post the contents of named.conf?
|
|
|
05-05-2014, 06:53 PM
|
#10
|
Member
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921
Original Poster
Rep:
|
Thanks Ser Olmy
why didn't you point that out at 5:30 this morning would have saved me a whole day.
I knew it had to be something simple I was just over looking.
|
|
|
All times are GMT -5. The time now is 06:10 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|