Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
named fails to start
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1164
Location: Tri-Cities, WA USA

PostPosted: Mon Jul 11, 2011 1:44 pm    Post subject: named fails to start Reply with quote

* start-stop-daemon: failed to start `/usr/sbin/named'
Name was update but it fails to start?

Any ideas?

Is there a link to problem solve named?

Code:

azzerare ~ # /etc/init.d/named reload     
 * Reloading named.conf and zone files ...
 * Checking named configuration ...                                                                                                                     [ ok ]
 * WARNING: -o/--oknodo is deprecated and will be removed in the future
 * start-stop-daemon: fopen `/var/run/named/named.pid': No such file or directory     

azzerare ~ # /etc/init.d/named checkzones
 * Checking named configuration and zones ...
zone localhost/IN: loaded serial 2008122601
zone 127.in-addr.arpa/IN: loaded serial 2008122601
zone casa/IN: loaded serial 101222                                                                                                                      [ ok ]
azzerare ~ #


azzerare ~ # /etc/init.d/named checkconfig
 * Checking named configuration ...                                                                                                                     [ ok ]
azzerare ~ #



_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Mon Jul 11, 2011 5:11 pm    Post subject: Reply with quote

my guess is, that you serial in casa is to short - it should be 10 digits long e.g yyyymmddxx

V.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 828

PostPosted: Mon Jul 11, 2011 9:32 pm    Post subject: Reply with quote

Check the logs - not sure where Gentoo named logs to by default, /var/log/messages? Or whatever log file you have defined in named.conf.

I'd love to know where those
Quote:

WARNING: -o/--oknodo is deprecated and will be removed in the future

lines come from, I've found them in /root/dead.letter.

Serial numbers can be wrong, but not in this case. All that matters is that is an unsigned 32-bit value. See RFC1035. Using the date is just a common convention.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1164
Location: Tri-Cities, WA USA

PostPosted: Tue Jul 12, 2011 2:32 pm    Post subject: Reply with quote

azzerare ~ # more dead.letter


azzerare : Jun 9 17:21:46 : cwc : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/cwc ; USER=root ; COMMAND=/bin/bash



azzerare : Jun 9 11:35:41 : cwc : user NOT in sudoers ; TTY=pts/0 ; PWD=/home/cwc ; USER=root ; COMMAND=/bin/bash

azzerare ~ #


I set the serial number to: 2011071201 and looked at this file: dead.letter

What should go in the named.pid file?
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 828

PostPosted: Tue Jul 12, 2011 7:14 pm    Post subject: Reply with quote

Ah, sorry, the dead.letter file has nothing at all to do with named. :)

The named.pid file contains the process id of the running named process. If there is no running named process but you have a named.pid file, remove it and then try to restart named. Again, check the logs. As checkconfig and checkzone found no config or zone file errors, you could be looking at a permissions problem of sorts.
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1164
Location: Tri-Cities, WA USA

PostPosted: Wed Jul 13, 2011 1:05 pm    Post subject: last few lines of log Reply with quote

It looks like named has not run since Jan 1, 2011

Here are the last few lines of /var/log/named/named.log:


23-Dec-2010 07:24:30.961 security: info: client 192.168.1.14#39766: query (cache) 'mukbletnvo/A/IN' denied
23-Dec-2010 07:24:30.961 security: info: client 192.168.1.14#38424: query (cache) 'pikzlpdgkm/A/IN' denied
23-Dec-2010 07:24:30.961 security: info: client 192.168.1.14#53784: query (cache) 'qipshgngvi/A/IN' denied
23-Dec-2010 07:24:30.961 security: info: client 192.168.1.14#58183: query (cache) 'mukbletnvo/A/IN' denied
23-Dec-2010 07:24:30.962 security: info: client 192.168.1.14#39854: query (cache) 'mukbletnvo/A/IN' denied
29-Dec-2010 19:58:02.171 general: info: shutting down
29-Dec-2010 19:58:02.188 general: notice: stopping command channel on 127.0.0.1#953
29-Dec-2010 19:58:02.226 network: info: no longer listening on 127.0.0.1#53
29-Dec-2010 19:58:02.226 network: info: no longer listening on 192.168.1.14#53
29-Dec-2010 19:58:02.252 general: notice: exiting
01-Jan-2011 07:03:27.181 general: info: zone 127.in-addr.arpa/IN: loaded serial 2008122601
01-Jan-2011 07:03:27.190 general: info: zone casa/IN: loaded serial 101222
01-Jan-2011 07:03:27.190 general: info: zone localhost/IN: loaded serial 2008122601
01-Jan-2011 07:03:27.190 general: error: managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
01-Jan-2011 07:03:27.191 general: info: managed-keys-zone ./IN: loaded serial 0
01-Jan-2011 07:03:27.192 general: notice: running
01-Jan-2011 07:03:27.192 notify: info: zone casa/IN: sending notifies (serial 101222)
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 828

PostPosted: Wed Jul 13, 2011 7:27 pm    Post subject: Reply with quote

Is there a log from when you try to start it?
Back to top
View user's profile Send private message
cwc
Veteran
Veteran


Joined: 20 Mar 2006
Posts: 1164
Location: Tri-Cities, WA USA

PostPosted: Wed Jul 13, 2011 10:55 pm    Post subject: Reply with quote

Princess Nell wrote:
Is there a log from when you try to start it?



I replaced the named.conf with the original without my zone file link and named started fine. (Should have done this from the start)
I then added a link to my internal zone and it worked again.
I need to do a bit of problem solving then post back.
work calls :(
My zone files need work!
There is no log file so there is a problem there also.

Thanks for the lines.
_________________
Without diversity there can be no evolution:)
Back to top
View user's profile Send private message
KibeR_ShuriK
n00b
n00b


Joined: 20 Oct 2011
Posts: 1
Location: Russia

PostPosted: Thu Oct 20, 2011 1:05 am    Post subject: Reply with quote

Code:

localhost ~ # /etc/init.d/named restart
 * Starting named ...
 * Checking named configuration ...             [ ok ]
named: user 'named' unknown
 * start-stop-daemon: failed to start `/usr/sbin/named'     [ !! ]
 * ERROR: named failed to start
localhost ~ # useradd -d /home/bind -M -s /sbin/nologin named
localhost ~ # /etc/init.d/named restart
 * Starting named ...
 * Checking named configuration ...       [ ok ]
 * start-stop-daemon: failed to start `/usr/sbin/named'      [ !! ]
 * ERROR: named failed to start
localhost ~ # chown named -R /etc/bind/
localhost ~ # chown named -R /var/bind
localhost ~ # chown named -R /var/log/named/
localhost ~ # chown named -R /var/run/named/
localhost ~ # /etc/init.d/named restart
 * Starting named ...
 * Checking named configuration ...       [ ok ]
localhost ~ #


Code:

localhost ~ # killall named
named: no process found
localhost ~ # /etc/init.d/named restart
 * Caching service dependencies ...                                                                                                                         [ ok ]
 * Starting named ...
 * Checking named configuration ...                                                                                                                         [ ok ]
 * start-stop-daemon: failed to start `/usr/sbin/named'                                                                                                     [ !! ]
 * ERROR: named failed to start
localhost ~ # named
localhost ~ # host localhost 127.0.0.1
Using domain server:
Name: 127.0.0.1
Address: 127.0.0.1#53
Aliases:

localhost has address 127.0.0.1
localhost has IPv6 address ::1
localhost ~ # killall named
localhost ~ # host localhost 127.0.0.1
;; connection timed out; no servers could be reached


:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum