You are not logged in.

#1 2015-08-25 03:56:46

joebobfrank
Member
Registered: 2015-03-15
Posts: 6

BIND not running in chroot

I have successfully configured BIND on Arch. When I put in into chroot it will not work.
There is nothing in the log files in /srv/named/var/log/.
tcpdump shows no DNS port 53 output leaving the server when I run

dig @127.0.0.1 archlinux.com

I did run this command:

journalctl -xfl -u named

output:

-- Logs begin at Sat 2000-01-01 01:00:14 UTC. --
Aug 23 05:18:25 u2 named[1748]: using default UDP/IPv4 port range: [1024, 65535]
Aug 23 05:18:25 u2 named[1748]: using default UDP/IPv6 port range: [1024, 65535]
Aug 23 05:18:25 u2 named[1748]: listening on IPv6 interfaces, port 53
Aug 23 05:18:25 u2 named[1748]: listening on IPv4 interface lo, 127.0.0.1#53
Aug 23 05:18:25 u2 named[1748]: listening on IPv4 interface eth0, 192.168.1.14#53
Aug 23 05:18:25 u2 systemd[1]: named.service: Main process exited, code=exited, status=1/FAILURE
Aug 23 05:18:25 u2 rndc[1756]: rndc: connect failed: 127.0.0.1#953: connection refused
Aug 23 05:18:25 u2 systemd[1]: named.service: Control process exited, code=exited status=1
Aug 23 05:18:26 u2 systemd[1]: named.service: Unit entered failed state.
Aug 23 05:18:26 u2 systemd[1]: named.service: Failed with result 'exit-code'.

I have looked up the error messages
rndc: connect failed: 127.0.0.1#953: connection refused
named.service: Main process exited, code=exited, status=1/FAILURE

I did not find anything helpful.

What else can I do to troubleshoot this problem?

Last edited by joebobfrank (2015-08-25 04:00:59)

Offline

#2 2015-10-23 16:54:29

hp4
Member
Registered: 2014-03-15
Posts: 7

Re: BIND not running in chroot

I've just had a similar problem due to a inconsistent configuration:

- check access rights/ownership for /etc/named.conf  and your ...path.../named directory with zone files, whether userid "named" has access
- check the path directive "directory" in /etc/named.conf, whether it points to the correct folder with your zone-files
- check whether your "directory" contains all the default files, e.g. 127.0.0.zone

BR
HP

Offline

Board footer

Powered by FluxBB