Changes between Version 11 and Version 12 of TipAndDoc/network/dhcpd


Ignore:
Timestamp:
May 5, 2012 12:00:11 AM (13 years ago)
Author:
mitty
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TipAndDoc/network/dhcpd

    v11 v12  
    7878 * [http://social.technet.microsoft.com/Forums/en-US/winserverNIS/thread/7ba59619-3484-43fa-8585-a2d69ccd00df/ How to request domain-search option from DHCP server ?] 
    7979 > I don't believe it's supported, because the DHCP server will only give an option if the option was requested by the DHCP client. So it appears that would need additional configuration on the client side such as the option. 
     80 
     81 = multiple domain-name on same subnet = 
     82 * Debian GNU/Linux 6.0.4 (squeeze) 
     83 
     84 * /etc/dhcp/dhcpd.conf 
     85{{{ 
     86 
     87ddns-update-style interim; 
     88 
     89option domain-name "dhcp.mitty.jp"; 
     90option domain-name-servers 192.168.0.254; 
     91 
     92default-lease-time 172800; 
     93max-lease-time 2678400; 
     94 
     95authoritative; 
     96 
     97log-facility local7; 
     98 
     99subnet 192.168.0.0 netmask 255.255.254.0 { 
     100        option routers 192.168.0.254; 
     101        option ntp-servers 192.168.0.254; 
     102        option broadcast-address 192.168.0.255; 
     103        option domain-search "local.mitty.jp", "dhcp.mitty.jp"; 
     104         
     105        pool { 
     106                allow unknown-clients; 
     107                option domain-name "dhcp.mitty.jp"; 
     108                range 192.168.1.100 192.168.1.199; 
     109                default-lease-time 7200; 
     110                max-lease-time 86400; 
     111                ddns-updates on; 
     112        } 
     113         
     114        pool { 
     115                deny unknown-clients; 
     116                option domain-name "local.mitty.jp"; 
     117                range 192.168.0.100 192.168.0.199; 
     118                ddns-updates off; 
     119        } 
     120         
     121        include "/etc/dhcp/dhcpd.conf.d/local.mitty.jp"; 
     122} 
     123}}}