You are not logged in.

#1 2014-01-15 20:00:49

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

about three days ago I installed the package linux-lts on my server and booted up the new kernel (3.10.26-1-lts).  Everything works the same except port 53 is closed and my nameserver doesn't work. 

[jesse@Rome ~]$ systemctl status named

outputs the same with both kernels (the fully functional kernel is 3.12.7-2-ARCH).  When I run an nmap scan from my workstation it shows port 53 as closed with lts and open with 3.12  I tried stopping my firewall (iptables) but that did not help.  Any suggestions on how I could go about diagnosing this issue would be greatly appreciated.
-Jesse

Last edited by laertiades (2014-01-17 13:22:16)


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#2 2014-01-16 08:34:45

Duka
Member
From: R'lyeh
Registered: 2010-04-16
Posts: 34

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

Hello,
Can you post journalctl log so we could find some information why BIND doesn't start. Also, try to start BIND from cli and paste output here?


Cthulhu Fhtagn!

Offline

#3 2014-01-16 13:17:48

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

[jesse@Rome ~]$ uname -r
3.10.26-1-lts
[jesse@Rome ~]$ sudo journalctl -n4=200 -u named # I removed empty zones

Jan 16 04:28:34 Rome systemd[1]: Starting Internet domain name server...
Jan 16 04:28:34 Rome systemd[1]: Started Internet domain name server.
Jan 16 04:28:37 Rome named[237]: starting BIND 9.9.4-P2 -f -t /srv/named -u named
Jan 16 04:28:37 Rome named[237]: built with '--prefix=/usr' '--sysconfdir=/etc' '--sbindir=/usr/bin' '--localstatedir=/var' '--disable-static' '--disable-linux-caps' '--with-openssl' '--with-libxml2' '--with-libtool' 'CFLAGS=
Jan 16 04:28:37 Rome named[237]: using 1 UDP listener per interface
Jan 16 04:28:37 Rome named[237]: using up to 4096 sockets
Jan 16 04:28:38 Rome named[237]: loading configuration from '/etc/named.conf'
Jan 16 04:28:38 Rome named[237]: using default UDP/IPv4 port range: [1024, 65535]
Jan 16 04:28:38 Rome named[237]: using default UDP/IPv6 port range: [1024, 65535]
Jan 16 04:28:38 Rome named[237]: no IPv6 interfaces found
Jan 16 04:28:38 Rome named[237]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 16 04:28:39 Rome named[237]: generating session key for dynamic DNS
Jan 16 04:28:39 Rome named[237]: sizing zone task pool based on 6 zones
Jan 16 04:28:41 Rome named[237]: set up managed keys zone for view _default, file 'managed-keys.bind'
Jan 16 04:28:42 Rome named[237]: command channel listening on 127.0.0.1#953
Jan 16 04:28:42 Rome named[237]: the working directory is not writable
Jan 16 04:28:43 Rome named[237]: managed-keys-zone: loaded serial 0
Jan 16 04:28:43 Rome named[237]: zone my_domain1.com/IN: loaded serial 2007011617
Jan 16 04:28:43 Rome named[237]: zone 0.0.127.in-addr.arpa/IN: loaded serial 42
Jan 16 04:28:43 Rome named[237]: zone my_domain2.com/IN: loaded serial 2000000001
Jan 16 04:28:43 Rome named[237]: zone my_domain3.com/IN: loaded serial 2007011615
Jan 16 04:28:43 Rome named[237]: zone localhost/IN: loaded serial 42
Jan 16 04:28:43 Rome named[237]: all zones loaded
Jan 16 04:28:43 Rome named[237]: running

**********With 3.12 Kernel it is identical except it has one extra line:

Jan 16 04:38:15 Rome named[375]: listening on IPv4 interface ens130, 192.168.1.12#53

the relevent entry in /srv/named/etc/named.conf seems to be:

options {
        listen-on {
                192.168.1.12;
                127.0.0.1;
        };
};

Last edited by laertiades (2014-01-17 13:15:49)


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#4 2014-01-16 14:29:24

Duka
Member
From: R'lyeh
Registered: 2010-04-16
Posts: 34

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

Ok, it seems that BIND is up and running. listen-on parameter tells daemon to listen on these two IP addresses.
Can you post netstat -nltu (or netstat -nltu) output? Does telnet to localhost/192.168.1.12 53 works?


Cthulhu Fhtagn!

Offline

#5 2014-01-16 14:50:36

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

[jesse@Rome ~]$ uname -r
3.10.26-1-lts
[jesse@Rome ~]$ netstat -nltu
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 127.0.0.1:53223         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:10030         0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:62902           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:8891          0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN    
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN    
udp        0      0 127.0.0.1:11211         0.0.0.0:*                         
udp        0      0 127.0.0.1:53            0.0.0.0:*                         
udp        0      0 192.168.1.12:123        0.0.0.0:*                         
udp        0      0 127.0.0.1:123           0.0.0.0:*                         
udp        0      0 0.0.0.0:123             0.0.0.0:*                         
[jesse@Rome ~]$ telnet localhost 53
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

[jesse@Athens ~]$ telnet 192.168.1.12 53
Trying 192.168.1.12...
telnet: Unable to connect to remote host: Connection refused
[jesse@Rome ~]$ uname -r
3.12.7-2-ARCH                                                                                                                                                                                                                    
[jesse@Rome ~]$ netstat -nltu                                                                                                                                                                                                    
Active Internet connections (only servers)                                                                                                                                                                                       
Proto Recv-Q Send-Q Local Address           Foreign Address         State                                                                                                                                                        
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN                                                                                                                         
tcp        0      0 192.168.1.12:53         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:62902           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:5432          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:56954         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:8891          0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:993             0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:995             0.0.0.0:*               LISTEN 
tcp        0      0 127.0.0.1:11211         0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:110             0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:10030         0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:783           0.0.0.0:*               LISTEN
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN
udp        0      0 127.0.0.1:11211         0.0.0.0:*
udp        0      0 192.168.1.12:53         0.0.0.0:*
udp        0      0 127.0.0.1:53            0.0.0.0:*
udp        0      0 192.168.1.12:123        0.0.0.0:*
udp        0      0 127.0.0.1:123           0.0.0.0:*
udp        0      0 0.0.0.0:123             0.0.0.0:*
[jesse@Rome ~]$ telnet localhost 53
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

[jesse@Athens ~]$ telnet 192.168.1.12 53
Trying 192.168.1.12...
Connected to 192.168.1.12.
Escape character is '^]'.

Last edited by laertiades (2014-01-17 13:17:15)


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#6 2014-01-16 18:45:07

Duka
Member
From: R'lyeh
Registered: 2010-04-16
Posts: 34

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

Again looking at the log, this line:

laertiades wrote:

Jan 16 04:28:38 Rome named[237]: loading configuration from '/etc/named.conf'

And then this:

laertiades wrote:

the relevent entry in /srv/named/etc/named.conf seems to be:
options {
        listen-on {
                192.168.1.12;
                127.0.0.1;
        };
};

Could you try to change named.service to load config from /srv/named/etc/named.conf? I see it already has -t flag that points to /srv/named.


Cthulhu Fhtagn!

Offline

#7 2014-01-16 18:49:19

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

both kernels use config from /srv/named/etc/named.conf already.  I copied it to /etc/named.conf but that didn't change anything.


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#8 2014-01-16 20:50:51

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

I'm embarrassed to have to report that the following command fixes the problem:

sudo systemctl restart named

I guess I never tried that before.  I apologize for that oversight.  Nevertheless, it is still a minor problem that BIND doesn't work automatically at boot so I am going to leave this topic as unsolved.  Unless forum policy dictates that it would be more appropriate to close it and open a new topic.  I am amenable.

BTW, thanks for all your help Duka.

Last edited by laertiades (2014-01-17 13:18:06)


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#9 2014-01-16 23:08:30

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

adding the following to the service file causes named to start up properly at boot:

Type=idle

Last edited by laertiades (2014-01-17 13:18:32)


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#10 2014-01-17 05:14:00

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

Maybe you should file a bug report on this.  The service file is Arch provided (it doesn't come from upstream), and I imagine that there are far fewer people trying to use BIND/named in combination with the LTS kernel, than the normal kernel.  Not to mention BIND seems to no longer be the absolute default choice.

Also, please use code tags for things like that mass amount of code output.  You can see how to do this by following the BBCode link below (and quite a bit more).

Finally, please mark the thread as [Solved] if you have found a solution you are satisfied with.  This can be done by editing the first post.

Offline

#11 2014-01-17 15:28:21

laertiades
Member
From: Seattle
Registered: 2013-01-20
Posts: 11
Website

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]


"Conversation enriches the understanding, but solitude is the school of genius"

Offline

#12 2014-01-17 15:49:57

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: named (bind) unable to run with lts kernel (3.10.26-1-lts) [Solved]

Nice work laertiades.  BTW, those are some amazing code boxes!

Welcome to the Arch Forums.

Offline

Board footer

Powered by FluxBB