Find the answer to your Linux question:
Results 1 to 4 of 4
dear All I am using centOS 5.4 on my virtual machine.i have configured dns but it gives the following error when i restart the service. Stopping named: [ OK ] ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2011
    Posts
    1

    Post DNS problem


    dear All
    I am using centOS 5.4 on my virtual machine.i have configured dns but it gives the following error when i restart the service.

    Stopping named: [ OK ]
    Starting named:
    Error in named configuration:
    zone localdomain/IN: loading master file localdomain.zone: file not found
    _default/localdomain/IN: file not found
    zone localhost/IN: loading master file localhost.zone: file not found
    _default/localhost/IN: file not found
    zone 0.0.127.in-addr.arpa/IN: loading master file named.local: file not found
    _default/0.0.127.in-addr.arpa/IN: file not found
    zone 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.ip6.arpa/IN: loading master file named.ip6.local: file not found
    _default/0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.ip6.arpa/IN: file not found
    zone 255.in-addr.arpa/IN: loading master file named.broadcast: file not found
    _default/255.in-addr.arpa/IN: file not found
    zone 0.in-addr.arpa/IN: loading master file named.zero: file not found
    _default/0.in-addr.arpa/IN: file not found
    zone mydomain.com/IN: loading master file mydomain.com.fwd: file not found
    _default/mydomain.com/IN: file not found
    zone 1.168.192.in-addr.arpa/IN: loading master file mydomain.com.rev: file not found
    _default/1.168.192.in-addr.arpa/IN: file not found
    [FAILED]

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,882
    Well your DNS server can't find the files that you've created. Are you running your DNS server in the standard chroot jail? There's an additional package that configures this (I forget what it's called) and if you have that, all your files should be in (iirc) /var/named/chroot/var/named and the config should be in /var/named/etc/named.

    If you're not running this variant, then you've probably used the wrong path to your config files.
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    May 2011
    Location
    Malaysia
    Posts
    39
    Hi yasir4533

    try installing caching-nameserver, will gives you the missing files.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Look at how you are starting nmaed with
    Code:
    ps -ef | grep named
    If you see

    Code:
    /usr/sbin/named -u named -t /var/named/chroot
    then you are running in a jail. Everything will be based off of /var/named/chroot/ that will be the root dir for this environment. Just look at your config file to see where it is looking for the zone files ad go from there.

    Tip: If you have SELinux enabled it will only allow named to write to data file in this jail. Good to know what you setup your slave.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

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