Help with Named, DHCP
Mark Andrews
Mark_Andrews at isc.org
Sun May 18 23:21:27 UTC 2008
> This is the error when I start dhcp:
>
> May 16 13:10:11 bonsai dhcpd: WARNING: Host declarations are global. They ar
> e not limited to the scope you declared them in.
dhcpd is warning you that the host declarations are *inside* the
subnet declaration but will be treated as if they are *outside*
the subnet declaration.
subnet ... {
host ... { }
host ... { }
host ... { }
host ... { }
}
To remove the warning re-write the dhcpd.conf file to move the
host declarations outside the subnet declaration.
subnet ... {
}
host ... { }
host ... { }
host ... { }
host ... { }
Mark
> -----------------------------------------------------------------------------
> -------------
> 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 unl
> ess
> # -- 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;
> }
More information about the bind-users
mailing list