Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
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.
  1. #1
    Just 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

  2. #2
    Linux 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

  3. #3
    Linux 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

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Are you sure this is not setup in a chroot env?

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Just Joined!
    Join Date
    Jul 2008
    Posts
    11
    Thanks, I have posted the content of the 3 files here: cl1p.net

  6. #6
    Just 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

  7. #7
    Just 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

  8. #8
    Linux 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

  9. #9
    Just 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

  10. #10
    Just Joined! nixweb.org's Avatar
    Join Date
    Jul 2008
    Location
    Jacksonville, Illinois
    Posts
    7
    Can you ping your loopback ip address internally or do you get a similar error?

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •