LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2013, 04:00 AM   #1
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Rep: Reputation: 1
DNS Service problem


Hi

I have setup the DNS server and when i run the command service named restart, it shows failed. Please help. This is my log messages below:

Jan 28 15:29:13 server named[8533]: starting BIND 9.3.6-P1-RedHat-9.3.6-4.P1.el5 -u named -D -t /var/named/chroot
Jan 28 15:29:13 server named[8533]: adjusted limit on open files from 1024 to 1048576
Jan 28 15:29:13 server named[8533]: found 2 CPUs, using 2 worker threads
Jan 28 15:29:13 server named[8533]: using up to 4096 sockets
Jan 28 15:29:13 server named[8533]: loading configuration from '/etc/named.conf'
Jan 28 15:29:13 server named[8533]: using default UDP/IPv4 port range: [1024, 65535]
Jan 28 15:29:13 server named[8533]: using default UDP/IPv6 port range: [1024, 65535]
Jan 28 15:29:13 server named[8533]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 28 15:29:13 server named[8533]: listening on IPv4 interface eth0, 192.168.1.250#53
Jan 28 15:29:13 server named[8533]: using default UDP/IPv6 port range: [1024, 65535]
Jan 28 15:29:13 server named[8533]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 28 15:29:13 server named[8533]: listening on IPv4 interface eth0, 192.168.1.250#53
Jan 28 15:29:13 server named[8533]: command channel listening on 127.0.0.1#953
Jan 28 15:29:13 server named[8533]: command channel listening on ::1#953
Jan 28 15:29:13 server named[8533]: the working directory is not writable
Jan 28 15:29:13 server named[8533]: zone 1.168.192.in-addr.arpa/IN: loaded serial 1997022700
Jan 28 15:29:13 server named[8533]: zone ioties.com/IN: loaded serial 42
 
Old 01-28-2013, 04:04 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
What have you already done about this line??
Quote:
Jan 28 15:29:13 server named[8533]: the working directory is not writable
 
Old 01-28-2013, 04:11 AM   #3
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,

Which directory it is asking about?? My named.cfg file is in /var/named/chroot/etc and zone files are in /var/named/chroot/var/named

I have given the permission as chown -Rv named:named /var/named/

But still it is not working.
 
Old 01-28-2013, 04:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
can you show us the output os "ls -lR /var/named"

also run "named -u named -D -t /var/named/chroot -d3 -f"

for a heap more debug output.

Last edited by acid_kewpie; 01-28-2013 at 04:21 AM.
 
Old 01-28-2013, 04:24 AM   #5
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi eric,

Now I am in /var/named/chroot and i run the command chmod g+w named of /var/named/chroot/var and the error message is not showing in logs. But still the service is showing failed when i restart the service.

These are the files you want to have a view:
/var/named/chroot/var/named/:
total 3028
-rw------- 1 named named 43597824 Jan 28 15:49 core.8716
-rw------- 1 named named 43597824 Jan 28 15:55 core.8735
drwxrwx--- 2 named named 4096 Jan 27 21:54 data
-rw-r----- 1 named named 229 Jan 27 21:41 forward.zone
-rw-r----- 1 named named 198 Jul 30 2009 localdomain.zone
-rw-r----- 1 named named 195 Jul 30 2009 localhost.zone
-rw-r----- 1 named named 427 Jul 30 2009 named.broadcast
-rw-r----- 1 named named 1892 Jul 30 2009 named.ca
-rw-r----- 1 named named 424 Jul 30 2009 named.ip6.local
-rw-r----- 1 named named 426 Jul 30 2009 named.local
-rw-r----- 1 named named 427 Jul 30 2009 named.zero
-rw-r----- 1 named named 453 Jan 27 21:44 reverse.zone
drwxrwx--- 2 named named 4096 Jul 27 2004 slaves

/var/named/chroot/var/named/data:
total 8
-rw-r--r-- 1 named named 4147 Jan 28 15:55 named.run

/var/named/chroot/var/named/slaves:
total 0

Last edited by rahul.buragohain; 01-28-2013 at 04:26 AM.
 
Old 01-28-2013, 04:34 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
right, so run with debugging on.
 
Old 01-28-2013, 04:44 AM   #7
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi eric,

I have run the command given by you, that is

named -u named -D -t /var/named/chroot -d3 -f

and the output is

process 8780: Re-entrant call to dbus_connection_set_watch_functions is not allowed
Segmentation fault (core dumped)
 
Old 01-28-2013, 04:56 AM   #8
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,

I still cant understand why the DNS server giving this error. kindly help me plz.
 
Old 01-28-2013, 05:17 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
hmm, that's a weird error. that was just the last line of it right? A little more context around it might help.

is bind and dbus fully updated on the box?
 
Old 01-28-2013, 05:57 AM   #10
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi eric,

This is the error I am getting again

process 8902: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2615.
This is normally a bug in some application using the D-Bus library.
Segmentation fault (core dumped)
 
Old 01-28-2013, 06:21 AM   #11
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi,

again shows a different error

named -u named -D -t /var/named/chroot -d3 -f
process 8945: Re-entrant call to dbus_connection_set_watch_functions is not allowed
Segmentation fault (core dumped)
[root@server bin]# named -u named -D -t /var/named/chroot -d3 -f
process 8950: Re-entrant call to dbus_connection_set_watch_functions is not allowed
process 8950: Re-entrant call to dbus_connection_set_timeout_functions is not allowed
process 8950: Re-entrant call to dbus_connection_set_watch_functions is not allowed
process 8950: Re-entrant call to dbus_connection_set_timeout_functions is not allowed
process 8950: arguments to dbus_connection_close() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2744.
This is normally a bug in some application using the D-Bus library.
process 8950: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file dbus-connection.c line 2615.
This is normally a bug in some application using the D-Bus library.
*** glibc detected *** named: double free or corruption (!prev): 0x093d7f40 ***
Aborted (core dumped)
 
Old 01-28-2013, 06:25 AM   #12
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
are you sure named isn't already running?
 
Old 01-28-2013, 08:31 AM   #13
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
Hi eric,

Named is not running. That is why when i give the command service named restart, it shows failed. How can i troubleshoot the error??
 
Old 01-28-2013, 08:33 AM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
as above, are you sure it is fully up to date?

There's very little reference to that dbus error online, have you restarted dbus? Rebooted?

Last edited by acid_kewpie; 01-28-2013 at 08:34 AM.
 
Old 01-28-2013, 08:34 AM   #15
rahul.buragohain
Member
 
Registered: Aug 2011
Location: India
Distribution: RedHat, Centos, Fedora, SuseLinux, Ubuntu
Posts: 55

Original Poster
Rep: Reputation: 1
When i used service named status, it gives me this error.

rndc: connect failed: 127.0.0.1#953: connection refused
named is stopped
 
  


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
DNS problem: Name or service not known jonaskellens Linux - Newbie 1 05-01-2010 11:26 AM
DNS Service scottt20 Linux - Server 1 01-17-2010 09:08 PM
Problem with DNS on CentOS cannot service named restart dalvis Linux - Newbie 7 11-25-2009 04:10 PM
bind9 problem : windows client can't use DNS service and12345 Linux - Server 2 12-08-2008 05:49 PM
Dns Service praveenv Linux - Newbie 2 09-08-2004 12:24 PM


All times are GMT -5. The time now is 10:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration