Find the answer to your Linux question:
Results 1 to 4 of 4
Hello, I'm starting up with named and I've ran into trouble while getting it to work. I've setup the forwarders correctly on /etc/named.conf and can now use the server (IP ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2005
    Posts
    6

    named issue


    Hello,

    I'm starting up with named and I've ran into trouble while getting it to work. I've setup the forwarders correctly on /etc/named.conf and can now use the server (IP is 192.168.2.200) to perform queries on sites on the . zone, as resolv.conf only contains my name server:
    Code:
    nslookup www.yahoo.com
    Server:         192.168.2.200
    Address:        192.168.2.200#53
    Non-authoritative answer:
    www.yahoo.com   canonical name = www.yahoo.akadns.net.
    Name:   www.yahoo.akadns.net
    Address: 216.109.118.73
    Then I set up a local zone on named.conf, on which I wanted to register the machines on my network:
    Code:
    zone "home.brr" IN {
            type master;
            file "home.brr";
            allow-query{ any; };
    };
    The /var/named/home.brr file looks like this:
    Code:
    @       IN      SOA ns.home.brr. nsadmin.home.brr. (
                            20060122 ; serial
                            28800 ; refresh
                            14400 ; retry
                            3600000 ; expire
                            86400 ; minimum
                    )
            IN      NS      ns.home.brr.
    
    ns      IN      NS      192.168.2.200
    ns      IN      HINFO   Server (P3 800MHz, 384MB, 60GB)
    serv   IN      CNAME ns
    However, nslookup returns me an error each time I try to query any host on my network:
    Code:
    nslookup ns.home.brr
    Server:         192.168.2.200
    Address:        192.168.2.200#53
    
    ** server can't find ns.home.brr: SERVFAIL
    The same thing happens for nslookup serv.home.brr; am I doing something wrong on the configuration?

    Thanks in advance

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,915
    You have no A records in your zone.

    Try adding a line that looks like this:

    Code:
    ns   IN   A   192.168.2.200
    Linux user #126863 - see http://linuxcounter.net/

  3. #3
    Just Joined!
    Join Date
    Jul 2005
    Posts
    6
    True, that was one of the problems; the other two were related to the file's location (moved from /var/named to /var/named/chroot/var/named/. The other was that the HINFO record didn't obey to the RFC1010 format (http://www.rfc-archive.org/getrfc.php?rfc=1010). Solved, thanks for the help

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Aug 2005
    Location
    India
    Posts
    12
    try this command
    tail -f /var/log/messages

    u might figure out what the problem is.
    dont forget to restart named service after making changes in ny of the files

Posting Permissions

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