Click to See Complete Forum and Search --> : DHCP gives IP addresses, but clients don't get internet


gretchen
04-11-2003, 11:26 PM
I'm trying set up a linux server for my home lan. I set up DHCP on it, and clients get IP addresses, but they can't connect to the internet.

I'm assuming it is something I've done wrong with either DNS or something I need to set up with iptables. I've been looking for help online, but nothing seems to work, or it's too confusing.

I need just a little push in the right direction. A VERY simple howto on iptables or some things I could check would be great. I know this is pretty big to walk me though it.

As an aside, I have a small competition going with my boyfriend as to who can get the better server running, as he is a big Windows fan.


my dhcpd.conf:
# dhcpd.conf
authoritative;
ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0
{
# --- Default gateway
option routers 192.168.1.110;
option subnet-mask 255.255.255.0;


# --- Domain name server(s)

option domain-name-servers polarcomm.com;
# option domain-name-servers 66.231.99.253,66.231.101.253;


#option time-offset 0; # Greenwich Mean Time

# --- Details for dynamic ip address allocation.
range dynamic-bootp 192.168.1.110 192.168.1.200;
default-lease-time 21600;
max-lease-time 43200;

# --- This Linux Machine
host LinuxServer {
hardware ethernet 00:00:00:00:00:00;
fixed-address 192.168.1.110;
}


}

gretchen
04-11-2003, 11:56 PM
The clients weren't getting the DNS server ip addresses. Once I entered them, it worked fine. I did do some iptables stuff from another link I found on the forum too.

Anyway, does anyone know how to make the server broadcast the DNS servers too. The only way I can figure out how to set the DNS servers in Windows is to assign the box a static ip address, which isn't an option for my laptop as it has to work at school too.

Gertrude
04-12-2003, 12:17 AM
You have the DNS server commented out.

# --- Domain name server(s)

option domain-name-servers polarcomm.com;
# option domain-name-servers 66.231.99.253,66.231.101.253;

should be:

# --- Domain name server(s)

option domain-name-servers 66.231.99.253,66.231.101.253;

bwkaz
04-12-2003, 10:06 AM
Heh, yeah, they can't resolve polarcomm.com without a DNS server. Chicken and egg problem. ;)