named problems

Discuss Networking
X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

named problems

Post by X11 »

VoidMain, I followed your details on stting up a DNS server, and could not get it to work. Last time it was fine but I sold that server.

This is the error i get...

Code: Select all

[root@tazor etc]# service named restart
Stopping named: rndc: connect failed: connection refused
                                                           [FAILED]
Starting named:                                            [FAILED]
I played around with the rndc files with no sucsess. What should I do?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Did you use my example setup? The keys in the /etc/rndc.conf and /etc/rndc.key need to match and the key names need to match between those two files and the line in your /etc/named.conf that reads like this:

Code: Select all

controls {
        inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

I used your setup but I will check that.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Well it all seems to be in order, it still wont work.

Void how would you like to be the happy owner of a root shell :-)

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Well actually there was a mistake in my config, nevermind.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

it works somtimes, others it doesnt, i dont know whats going on.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

I'll bet your muffler bearings need lubricating.

User avatar
Calum
guru
guru
Posts: 1349
Joined: Fri Jan 10, 2003 11:32 am
Location: Bonny Scotland
Contact:

Post by Calum »

yeah, make sure and get decent oil too, none of that cheap stuff.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

shut up calum, you dont even have a car you hippy.

And voidmain, i have no clue to whats causing this, so i give up, i dont need it anyway.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

X11 wrote:And voidmain, i have no clue to whats causing this, so i give up, i dont need it anyway.
I have no clue either, especially since I have no clue as to what you are referring to that is not working or what steps you took to determine why it is not working. I am known to be clairvoyant by some and have some level of extrasensory perception but I'm drawing a blank on this one.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Now i see, your John Edwards.

Hmmmmm I dont know, the problem is in named, it starts and does not start.
I will look into in in a second.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Ok, so the problem you are having has not to do with how it runs but whether or not it will actually start. Is that correct? If so have you looked at the end of your /var/log/messages after a failed attempt at starting it, and/or are there any other error messages? If so, what/where are the errors?

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Well today its working, but sometimes its not.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

YAY its not working all the sudden...

Code: Select all

Feb 20 20:38:23 tazor named: named shutdown failed
Feb 20 20:38:23 tazor named[1626]: starting BIND 9.2.1 -u named
Feb 20 20:38:23 tazor named[1626]: using 1 CPU
Feb 20 20:38:23 tazor named[1629]: loading configuration from '/etc/named.conf'
Feb 20 20:38:23 tazor named[1629]: none:0: open: /etc/named.conf: permission denied
Feb 20 20:38:23 tazor named[1629]: loading configuration: permission denied
Feb 20 20:38:23 tazor named[1629]: exiting (due to fatal error)
Feb 20 20:38:23 tazor named: named startup failed

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

What are the permissions on your /etc/named.conf file? Make sure user "named" can read it, same goes for the directory your zone files are in and all the zone files. User "named" will need write access to the zone files if you are running a dynamic DNS server. Also make sure you aren't blocking port 53 with iptables etc...

Post Reply