Help with Named, DHCP

Ed Warner edwarner99 at yahoo.com
Sun May 18 17:19:33 UTC 2008


I hope this isn't too much info overload.
First, let me say I am learning; I am not an expert, nor do I maintain anything of importance other than my home network.
I need help understanding why I am getting these and how to fix them along with best practices.
My FQDN is not real. From what I read and have been told I could use any name, as long as it followed conventional naming, I chose mylan.lan
Thanks in advance for your help and suggestions.

Ed....

These are the errors I am getting when I start named. Named.conf is below.

May 16 13:05:42 bonsai named[16871]: starting BIND 9.5.0b2 -u named -t /var/named/chroot
May 16 13:05:42 bonsai named[16871]: found 1 CPU, using 1 worker thread
May 16 13:05:42 bonsai named[16871]: loading configuration from '/etc/named.conf'
May 16 13:05:42 bonsai named[16871]: listening on IPv4 interface lo, 127.0.0.1#53
May 16 13:05:42 bonsai named[16871]: listening on IPv4 interface eth1, 192.168.100.1#53
May 16 13:05:42 bonsai named[16871]: default max-cache-size (33554432) applies
May 16 13:05:42 bonsai named[16871]: default max-cache-size (33554432) applies: view _bind
May 16 13:05:42 bonsai named[16871]: command channel listening on 127.0.0.1#953
May 16 13:05:42 bonsai named[16871]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2007022700
May 16 13:05:42 bonsai named[16871]: zone 100.168.192.in-addr.arpa/IN: NS 'bonsai.mylan.lan.100.168.192.in-addr.arpa' has no address records (A or AAAA)
May 16 13:05:42 bonsai named[16871]: zone 100.168.192.in-addr.arpa/IN: loaded serial 200717841
May 16 13:05:42 bonsai named[16871]: zone mylan.lan/IN: NS 'bonsai.mylan.lan' has no address records (A or AAAA)
May 16 13:05:42 bonsai named[16871]: zone mylan.lan/IN: loaded serial 200718740
May 16 13:05:42 bonsai named[16871]: zone localhost/IN: loaded serial 42
May 16 13:05:42 bonsai named[16871]: running
--------------------------------------------------------------------------------------------
named.conf
// generated 5/1/08


controls {
    inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};


// Define address range for the local domain.
acl lan {
    192.168.100/24;
    127.0.0.0/24;
};

options {
    directory "/var/named";
    /*
     * If there is a firewall between you and nameservers you want
     * to talk to, you might need to uncomment the query-source
     * directive below.  Previous versions of BIND always asked
     * questions using port 53, but BIND 8.1 uses an unprivileged
     * port by default.
     */
    // query-source address * port 53;

    // Only allow queries and listen from the local domain.
    allow-query { lan; };
    allow-recursion { lan; };
    allow-transfer { lan; };
    listen-on {
         127.0.0.1;
         192.168.100.1;
    };

    // Use OpenDNS servers for finding external addresses. You could use anyones here
    forward only;
    forwarders {
        208.67.222.222;
        208.67.220.220;
    };
};

// Top Level domain name servers.
zone "." IN {
    type hint;
    file "named.ca";
};

// Localhost Zones
zone "localhost" IN {
    type master;
    file "localhost.zone";
    allow-update { key "rndckey"; };
};

// Provide a reverse lookup for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" IN {
    type master;
    file "named.local";
    allow-update { none; };
};

// Home network zone.
zone "mylan.lan" IN {
    type master;
    file "named.mylan";
    notify no;
    allow-update { key "rndckey"; };
};

// Reverse lookup for the local domain.
zone "100.168.192.in-addr.arpa" {
    type master;
    file "named.mylan-rev";
    notify no;
    allow-update { key "rndckey"; };
};


include "/etc/rndc.key";
========================================================

This is the error when I start dhcp:

May 16 13:10:11 bonsai dhcpd: WARNING: Host declarations are global.  They are not limited to the scope you declared them in.
------------------------------------------------------------------------------------------
dhcp.conf

Authoritative;
ddns-update-style interim;
ignore client-updates;
#allow client-updates;
ddns-domainname "mylan.lan";

key "rndckey" {
        algorithm       hmac-md5;
        secret "cKndEJk51spwAEqabNfLwdyptRW0hcKOMBgJ8EyfHRxQgI2wNSgzA5O5jYCX";
};

#subnet 192.168.0.0 netmask 255.255.0.0 {
subnet 192.168.100.0 netmask 255.255.255.0 {

# --- default gateway
    option routers            192.168.100.1;
#    option subnet-mask        255.255.0.0;
    option subnet-mask        255.255.255.0;

#    option nis-domain        "domain.org";
    option domain-name        "mylan.lan";
    option domain-name-servers    192.168.100.1;

#    option time-offset        -18000;    # Eastern #Standard Time
#    option ntp-servers        time-a.nist.gov;
#    option netbios-name-servers    192.168.100.1;
# --- Selects point-to-point node (default is hybrid). Don't #change this unless
# -- you understand Netbios very well
#    option netbios-node-type 2;

    range dynamic-bootp 192.168.100.5 192.168.100.50;
    default-lease-time 604800;
    max-lease-time 604800;

#   --- This Linux Machine
host bonsai {
#       hardware ethernet 00:0E:A6:A7:1F:B1;
    hardware ethernet 00:09:5B:1A:D0:45;
        fixed-address 192.168.100.1;
    }

#  --- HP 7410 Printer
host HP7410 {
    hardware ethernet 00:0D:9D:28:0A:BB;
    }

#  --- Linksys WAP54G
host Linksys {
    hardware ethernet 00:1A:70:32:72:C5;
    fixed-address 192.168.100.50;
    }
}

zone localhost {
    primary 127.0.0.1;
    key rndckey;
}

zone 0.0.127.in-addr.arpa {
    primary 127.0.0.1;
    key rndckey;
}

zone mylan.lan {
    primary 192.168.100.1;
    key rndckey;
}

zone 100.168.192.in-addr.arpa {
    primary 192.168.100.1;
    key rndckey;
}
===========================================================
named.mylan
$ORIGIN .
$TTL 86400    ; 1 day
mylan.lan        IN SOA    bonsai.mylan.lan. root.localhost. (
                200718740  ; serial
                28800      ; refresh (8 hours)
                14400      ; retry (4 hours)
                3600000    ; expire (5 weeks 6 days 16 hours)
                86400      ; minimum (1 day)
                )
            NS    bonsai.mylan.lan.
$ORIGIN mylan.lan.
1            A    127.0.0.1
2            A    192.168.100.1
$TTL 302400    ; 3 days 12 hours
Azalea            A    192.168.100.5
            TXT    "3109b3d6e9ef1a0f01e89f135933477030"
pine            A    192.168.100.49
            TXT    "31cc68c5aeef56368c390717062cd52286"
Niall O'Reilly <Niall.oReilly at ucd.ie> wrote: On 17 May 2008, at 19:02, edwarner99 at yahoo.com wrote:

> Before I do, I wanted to ask if it is appropriate for me to post my  
> named.conf and dhcp.conf and any other files needed in order to  
> help me with a problem.

 It's more appropriate than asking for help and forcing us,
 by not including significant information, to guess what
 your problem might be.  8-)

 OTOH, it's probably not appropriate to send a gazillion
 files.  Do try to send only "files needed in order to help".

 /Niall






       



More information about the bind-users mailing list