DHCP

Neil Cherry ncherry at comcast.net
Thu Mar 25 14:47:45 UTC 2004


antonio montagnani wrote:
> Keven Ring wrote/ha scritto, On/il 25/03/2004 13:40:
> 
>> a
>>
>>>
>> 1) The option domain-name-servers should be defined in the subnet block
>> 2) Unless you are running DNS on your default gateway machine, I 
>> believe that you need to have a different DNS server.
>>
>> My dhcpd.conf looks like this:
>>
>> subnet 192.168.0.0 netmask 255.255.255.0 {
>>  option routers 192.168.0.1;
>>  max-lease-time 604800;
>>  default-lease-time 604800;
>>  range 192.168.0.20 192.168.0.30;
>>  option domain-name-servers xxx.xxx.xxx.xxx, xxx.xxx.xxx.xxx;
>> }
>>
>> Where the xxx.xxx.xxx.xxx are replaced with the correct DNS addresses.
>>
>> HTH..
>>
>>
>>
> Yes...you are right if you know your DNS, but if your gateway has DNS 
> assigned by ISP?? I solved installing Bind, is it correct?

Here is the top portion of my dhcpd.conf:

###

default-lease-time 8640000;       # one day
max-lease-time 8640000;           # one day
 

ddns-update-style none ;
 

server-identifier dmc.uucp;
option domain-name "uucp";
option domain-name-servers 192.168.24.10;
#option domain-name-servers 24.3.196.33, 24.3.196.34;
option routers 192.168.24.254;
 

# You can have no range but still need subnet information
# on the IF you have dhcpd running on
 

subnet 192.168.24.0 netmask 255.255.255.0 {
         range  192.168.24.31 192.168.24.224;
#
         option subnet-mask 255.255.255.0;
         option broadcast-address 192.168.24.255;
         option routers 192.168.24.254;
 

         option time-offset              -18000;     # Eastern Standard Time
 

# This didn't work at all
         ## If you have Samba acting as a WINS server
         ##
#        option netbios-name-servers 192.168.24.10;
#        option netbios-dd-server 192.168.24.10;
#        option netbios-node-type 8;
#        option netbios-scope "ISO";
}
 

host d {
         hardware ethernet 00:20:AF:F2:EB:FE;
         fixed-address 192.168.24.21;
         option domain-name "uucp" ;
         option smtp-server 192.168.24.10 ;
}

On my network I have my own dns (tinydns/dnscache). The above works
for use with various Windows boxen (needed for school). Note the
commented out 24.x.x.x network. That was the DNS for the old @home
service.

-- 
Linux Home Automation         Neil Cherry        ncherry at comcast.net
http://home.comcast.net/~ncherry/               (Text only)
http://linuxha.sourceforge.net/                 (SourceForge)
http://hcs.sourceforge.net/                     (HCS II)





More information about the fedora-list mailing list