View previous topic :: View next topic |
Author |
Message |
line72 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 13 Jun 2002 Posts: 212
|
Posted: Mon Jul 22, 2002 5:08 pm Post subject: dhcp server and dns |
|
|
I got my dhcp server set up and i can route ip addresses out to the internet. My problem is when a computer on my lan get's their ip address, their /etc/resolv.conf just contains:
Code: |
search insightbb.com
nameserver 192.168.0.1
|
if I change the other computers on the lans' resolv.conf to the same as my host computer, then dns works. So how I get the computers on my lan to have the correct resolv.conf on boot from the dhcp server ? (here's my dhcpd.conf)
Code: |
ddns-update-style none;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option domain-name "insightbb.com";
option domain-name-servers 192.168.0.1;
range dynamic-bootp 192.168.0.16 192.168.0.253;
default-lease-time 21600;
max-lease-time 43200;
}
|
Thanks for all your help, I know my networking skills suck : ) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nitro Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/411ae9313daf78e5a1867.gif)
Joined: 08 Apr 2002 Posts: 661 Location: San Francisco
|
Posted: Mon Jul 22, 2002 5:27 pm Post subject: |
|
|
The problem is with your nameserver, not your dhcp server. Could you share with use your nameserver's config ( /etc/bind/named.conf )?
Also, you can do some test using the tools included with bind-tools. First, to use your default nameservers from /etc/reslov.conf, but to specify a specific server use the @ option. Code: | dig gentoo.org
dig @192.168.0.1 gentoo.org
dig @<othernamserver> gentoo.org |
Hopefully that should help you get headed in the right direction. _________________ - Kyle Manna
Please, please SEARCH before posting.
There are three kinds of people in the world: those who can count, and those who can't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mrchuckles Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/41d88fb53d94a5d3abadf.jpg)
Joined: 09 Jul 2002 Posts: 125 Location: Severn, MD
|
Posted: Tue Jul 23, 2002 2:02 pm Post subject: |
|
|
DHCP will not copy the resolv.conf file from the DHCP server to the clients. The clients take settings they receive from the DHCP server and put them in their resolv.conf file (usually overwriting anything else in there). It would help to see the resolv.conf from the DHCP server.
The lines in your dhcpd.conf file show exactly why you're clients are getting the resolv.conf settings they are.
Code: | option domain-name "insightbb.com";
option domain-name-servers 192.168.0.1; |
These two lines are what the DHCP clients are pulling to determine their name server information. Change these lines to match the settings from your DHCP servers resolv.conf, and you should be good to go. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|