Results 1 to 10 of 20
Hi,
I am setting up dns servers on Centos 5.2 using yum to install bind. The version of bind is 9.3.4-P1 according to dig.
I have followed this tutorial as ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-29-2008 #1Just Joined!
- Join Date
- Jul 2008
- Posts
- 11
Dns
Hi,
I am setting up dns servers on Centos 5.2 using yum to install bind. The version of bind is 9.3.4-P1 according to dig.
I have followed this tutorial as a baseline: Bet you want to setup a DNS server huh? - Dev Shed
(Apologies if I missed anything major in doing this and my problems are down to my own mistakes)
So, I have /etc/named.conf /etc/rndc.conf and /etc/rndc.key
However, when starting named.conf I get
open: /etc/named.conf: invalid file
When running rndc reload i get connection failed: 127.0.0.1#953: connection refused.
I have run chown to set all 3 files as named:named.
Any ideas why I get these errors?
Thanks a lot
- 07-29-2008 #2Linux Newbie
- Join Date
- Feb 2008
- Location
- Bangalore, India
- Posts
- 112
If you taken backup of your named.conf, restore it and try to restart named without configuring anything.
Pleae paste your dns configuration file here so we can suggest you something. Its very unusal tell something without looking at conf file.bigunix.blogspot.com
Registered Linux User: #476440
- 07-29-2008 #3Linux Newbie
- Join Date
- Feb 2008
- Location
- Bangalore, India
- Posts
- 112
Unless you start service rndc wont work. so will get connection failed error.
bigunix.blogspot.com
Registered Linux User: #476440
- 07-29-2008 #4
Are you sure this is not setup in a chroot env?
- 07-29-2008 #5Just Joined!
- Join Date
- Jul 2008
- Posts
- 11
Thanks, I have posted the content of the 3 files here: cl1p.net
- 07-29-2008 #6Just Joined!
- Join Date
- Jul 2008
- Posts
- 11
-rwxr-xr-x 1 named named 3848 Jul 29 15:16 named.conf
-rwxr-xr-x 1 named named 661 Jul 25 23:15 rndc.conf
-rwxr-x---1 named named 140 jul 25 21:26 rndc.key
- 07-29-2008 #7Just Joined!
- Join Date
- Jul 2008
- Posts
- 11
Ah.
just changed ROOTDIR="/var/named/chroot/" to ROOTDIR="/var/named/"
now I get "Locating /var/named//etc/named.conf failed" though
- 07-29-2008 #8Linux Newbie
- Join Date
- Feb 2008
- Location
- Bangalore, India
- Posts
- 112
- Change it to /var/named only.
- Is you named.conf present there at /var/named/etc/named.conf location.bigunix.blogspot.com
Registered Linux User: #476440
- 07-29-2008 #9Just Joined!
- Join Date
- Jul 2008
- Posts
- 11
ok, I changed it to /var/named only
the file is there, I created a symbolic link and then ran chown on that dir.
I am getting the same msg back about invalid file.
edit: I am also still getting connection refused when i reload rndc
- 07-29-2008 #10
Can you ping your loopback ip address internally or do you get a similar error?


Reply With Quote
