LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   DNS with DHCP (https://www.linuxquestions.org/questions/linux-networking-3/dns-with-dhcp-64076/)

upr8830 06-06-2003 04:35 PM

DNS with DHCP
 
I have set up a DHCP server and as clients connect to the netwokr the DHCP server assigns the IP address and passes any necessary information to the DHCP clients. However, it doesn't pass the DNS information the the clients.

If I hard code the DNS information in the clients then I can resolve the names otherwise I can't resolve the domain names.

What must I do to have the DHCP server pass the DNS information to the DHCP clients.

- upr8830

born4linux 06-06-2003 04:48 PM

do u have something like this in ur dhcpd.conf file:

range 192.168.25.10 192.168.25.254;
option domain-name-servers 192.168.25.2;

192.168.25.2 is my dns server ip.

post ur dhcpd.conf file is u still have problems with it.

manthram 06-06-2003 04:49 PM

you mean your clients are not getting the domain namserver addresses? is that it? you can set this in the /etc/dhcpd.conf file


option domain-name-servers your-server-ips-with a-space sperating-them


put this line the file and restart the server

upr8830 06-18-2003 11:39 PM

DNS with DHCP
 
Got it working.

Thank you.

- upr8830


All times are GMT -5. The time now is 01:22 AM.