LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-05-2014, 02:52 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
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.
 
Old 05-05-2014, 03:31 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
This path:
Quote:
Originally Posted by rbees View Post
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 View Post
Code:
sudo cat /var/bind9/chroot/cache/bind db.7.168.192
 
Old 05-05-2014, 04:08 PM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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
 
Old 05-05-2014, 04:13 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
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.
 
Old 05-05-2014, 04:22 PM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
thanks

Quote:
Setup has only ever been chrooted
 
Old 05-05-2014, 05:36 PM   #6
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
I have tried to increase the logging out but with this http://stackoverflow.com/questions/1...s-full-logging but it didn't help
 
Old 05-05-2014, 05:43 PM   #7
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
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 View Post
Setup has only ever been chrooted
Is bind running in a chroot'ed environment or not?
 
Old 05-05-2014, 06:39 PM   #8
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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.
 
Old 05-05-2014, 06:42 PM   #9
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
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?
 
Old 05-05-2014, 06:53 PM   #10
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bind Setup issues gymiv@aol.com Slackware 52 10-21-2010 05:55 PM
Bind issues - server puzzled_one Linux - Server 12 03-15-2010 03:36 AM
BIND Configuration Issues lomax0990 Linux - Server 3 10-15-2009 11:54 AM
BIND DNS issues joel112 Linux - Software 3 05-31-2006 05:03 AM
Issues with BIND gurusmaran Linux - Networking 7 09-15-2005 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration