Results 1 to 4 of 4

Thread: help with bind config

  1. #1
    Join Date
    Jan 2006
    Beans
    35

    help with bind config

    I'm setting up bind and am having some problems. I'm using the tutorial here. For testing, I set up a machine with hostname dc01.home, ip=192.168.1.100. I installed bind, and configured per the tutorial so that there should be a new A record for dc01.home. When I dig my new record, I get a servfail. bind is running (the caching function works great), and I have incremented the serial several times. Here are my config files:

    /etc/bind/named.conf.local:
    Code:
    logging {
        channel query.log {
            file "/var/log/query.log";
            severity debug 3;
        };
    
        category queries { query.log; };
    };
    
    
    zone "home" {
            type master;
            file "/etc/bind/db.home";
    };
    
    zone "168.192.in-addr.arpa" {
            type master;
            file "/etc/bind/db.192.168";
    };
    /etc/bind/db.home:
    Code:
    $TTL    604800
    @       IN      SOA     dc01.home. myemail.gmail.com. (
                                  4         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
            IN      NS      dc01.home.
    @       IN      A       192.168.1.100
    /etc/bind/db.192.168:
    Code:
    $TTL    604800
    @       IN      SOA     dc01.home. myemail.gmail.com. (
                                  2         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
    @       IN      NS      dc01.home.
    100.1   IN      PTR     dc01.home.
    Thoughts?
    Last edited by floobit; June 10th, 2013 at 06:04 PM. Reason: grammar

  2. #2
    Join Date
    Jan 2009
    Location
    ::1
    Beans
    2,485

    Re: help with bind config

    /etc/db.home ? Really? If so ... check the other reference you use.

  3. #3
    Join Date
    Jan 2006
    Beans
    35

    Re: help with bind config

    Sorry, typo. That file is in /etc/bind/db.home. Original post edited to correct.
    Last edited by floobit; June 10th, 2013 at 06:05 PM.

  4. #4
    Join Date
    Jan 2006
    Beans
    35

    Re: help with bind config

    Found the answer on another tutorial. correct contents of db.home are as follows. The takeaway is that the NS record should not be a fqdn, and there needs to be a shortname A record as well:

    Code:
    $TTL    604800
    @       IN      SOA     dc01.home. dylannevans.gmail.com. (
                                  7         ; Serial
                             604800         ; Refresh
                              86400         ; Retry
                            2419200         ; Expire
                             604800 )       ; Negative Cache TTL
    ;
            IN      NS      dc01
    dc01    IN      A       192.168.1.100

Tags for this Thread

Bookmarks

Posting Permissions

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