PDA

View Full Version : dhcpd question


ozzy_cow
21st April 2004, 08:49 PM
I've set up hdcpd and it works fine. Only problem that I'm having is that it will actually assign IP addresses starting at 254 and going down from there, its just a minor inconvenience.

This is my dhcpd.conf file:


ddns-update-style interim;

default-lease-time 600;
max-lease-time 7200;

subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
option domain-name-servers 192.168.1.1;
range 192.168.1.100 192.168.1.254;
}




Also, how do I push host names to dhcp clients? I have djbdns running on my fedora box, and i would like hostnames to resolve when I do ping myhost


Thank you for your help

kel
27th April 2004, 05:51 AM
To get one host to resolve the name given or assigned to another host you need to have a service running that links the names and IP numbers; one of a) DNS, b) a network based authentication model (such as YP/NIS, LDAP), c ) or push /etc/hosts files around to each machine. Then you need to make sure that your /etc/nsswitch.conf file lists the service you've chosen in the 'hosts' line.