Named Process is stopped (and well not start)

myinnershadow

Verified User
Joined
Apr 9, 2005
Messages
6
my dns servers are not working because Named is stoped. how do i get it to start?
when i click start i get "Starting named: [FAILED]"
when i click reload i get "cat: /var/run/named/named.pid: No such file or directory kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]"
 
When i run named (i think you just type named and hit enter but it just goes to the next line)
[root@Synthesishost ~]# named
[root@Synthesishost ~]#
i dont know if that is running it named because i only ever used yum with text commands and it still is stoped in DA
 
I have restarted the server.
i have not edited any config files except direct admin probly did when i added new domains
I have also tried reinstalling.
 
myinnershadow said:
I have restarted the server.
i have not edited any config files except direct admin probly did when i added new domains
I have also tried reinstalling.

Can you post the /etc/named.conf file and the files in /var/named. It is more than likely that you have an error in the configuration of Bind that is causing it not to work.

Regards,
Onno Vrijburg
 
I just tryed that it dident work.

her is my /etc/named.conf file
options {
directory "/etc";
pid-file "/var/run/named/named.pid";
};

zone "." {
type hint;
file "/etc/db.cache";
};

zone "Synthesishost.com" { type master; file "/var/named/Synthesishost.com.db"; };
zone "synthesishost.com" { type master; file "/var/named/synthesishost.com.db"; };
zone "jmcko18.synthesishost.com" { type master; file "/var/named/jmcko18.synthesishost.com.db"; };
zone "irrelevanthosting.com" { type master; file "/var/named/irrelevanthosting.com.db"; };

it trys to access named.pid but when i even look for the file but its not there?

[root@Synthesishost init.d]# /var/run/named/named.pid
-bash: /var/run/named/named.pid: No such file or directory

its not there is there a way to get that file or is that not it or what?

P.S. Thank you for all your help so far.
 
Last edited:
myinnershadow said:
I just tryed that it dident work.

her is my /etc/named.conf file


it trys to access named.pid but when i even look for the file but its not there?

[root@Synthesishost init.d]# /var/run/named/named.pid
-bash: /var/run/named/named.pid: No such file or directory

its not there is there a way to get that file or is that not it or what?

P.S. Thank you for all your help so far.


This is probably your problem

zone "Synthesishost.com" { type master; file "/var/named/Synthesishost.com.db"; };
zone "synthesishost.com" { type master; file "/var/named/synthesishost.com.db"; };

remove the first line (zone "Synthesishost.com" { type master; file "/var/named/Synthesishost.com.db"; }; ) with the capital letter and then try to restart named using "/sbin/service named restart"

Regards,
Onno Vrijburg
 
Thank you for all your help the extra line (with diffent case) was the problem thanks again
 
Last edited:
Sorry I didn't see this thread earlier or I could have saved you a lot of time.

When named starts up it writes error messages, if any, to /var/log/messages.

So if you open two shell windows, one running "tail -f /var/log/messages" and the other:

/etc/rc.d/init.d/named restart

you'll see any error messages.

You would definitely have seen a duplicate zone error message.

Jeff
 
yes. but which of them is error and we should delete them?

for example my named is stop and this is my log:


[root@ns1 ~]# tail -f /var/log/messages
Jan 6 02:04:01 ns1 named: zone ns1.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:01 ns1 named: zone njavan.ir/IN: loaded serial 2008123000
Jan 6 02:04:01 ns1 named: zone forum.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:13 ns1 named: zone localhost/IN: loading master file localhost.zone: file not found
Jan 6 02:04:13 ns1 named: _default/localhost/IN: file not found
Jan 6 02:04:13 ns1 named: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
Jan 6 02:04:13 ns1 named: _default/0.0.127.in-addr.arpa/IN: file not found
Jan 6 02:04:13 ns1 named: zone ns1.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:13 ns1 named: zone njavan.ir/IN: loaded serial 2008123000
Jan 6 02:04:13 ns1 named: zone forum.njavan.ir/IN: loaded serial 2008122900
 
yes i delete them my named is not start.
my question is about:
Jan 6 02:04:13 ns1 named: zone forum.njavan.ir/IN: loaded serial 2008122900
 
Why do you think it is not running? The fact that its loading zones tells me that it should be running. And I can look up the domains:

[root@server ~]# dig forum.njavan.ir

; <<>> DiG 9.3.3rc2 <<>> forum.njavan.ir
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47287
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;forum.njavan.ir. IN A

;; ANSWER SECTION:
forum.njavan.ir. 14247 IN A 70.38.90.216

;; AUTHORITY SECTION:
forum.njavan.ir. 14247 IN NS ns2.njavan.ir.
forum.njavan.ir. 14247 IN NS ns1.njavan.ir.

;; ADDITIONAL SECTION:
ns1.njavan.ir. 12082 IN A 70.38.90.216

;; Query time: 84 msec
;; SERVER: 12.127.17.71#53(12.127.17.71)
;; WHEN: Tue Jan 6 13:33:07 2009
;; MSG SIZE rcvd: 101

Looks like it is working to me.
 
yes. but which of them is error and we should delete them?

for example my named is stop and this is my log:


[root@ns1 ~]# tail -f /var/log/messages
Jan 6 02:04:01 ns1 named: zone ns1.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:01 ns1 named: zone njavan.ir/IN: loaded serial 2008123000
Jan 6 02:04:01 ns1 named: zone forum.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:13 ns1 named: zone localhost/IN: loading master file localhost.zone: file not found
Jan 6 02:04:13 ns1 named: _default/localhost/IN: file not found
Jan 6 02:04:13 ns1 named: zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
Jan 6 02:04:13 ns1 named: _default/0.0.127.in-addr.arpa/IN: file not found
Jan 6 02:04:13 ns1 named: zone ns1.njavan.ir/IN: loaded serial 2008122900
Jan 6 02:04:13 ns1 named: zone njavan.ir/IN: loaded serial 2008123000
Jan 6 02:04:13 ns1 named: zone forum.njavan.ir/IN: loaded serial 2008122900
Try this..

Code:
# cd /var/named
# wget http://www.directadmin.com/localhost.zone
# wget http://www.directadmin.com/named.local
 
Back
Top