On Sat, 2003-03-15 at 12:44, John Smith wrote:
> I have a redhat 8.0 box as a gateway/firewall for a home network using
> iptables. I have two NICs and eth0 which is the cable internet connection is
> resolved through DHCP from the ISP. I am having a recurring problem with the
> inability to resolve host names. I enter a DNS address into the resolv.conf
> file on the gateway as root and everything works fine for a while. However,
> within a few minutes the browser will give an error stating that the host name
> could not be resolved and upon checking the resolv.conf file, the DNS that I
> entered will no longer be listed. If I reenter the DNS address everything works
> fine again...until the next error. My ISP does not provide support for any OS
> other than Windows and they absolutely refuse to provide their DNS address.
> They simply state that everything is done through DHCP so that I do not need
> the DNS address. Consequently, I enable DHCP through eth0 but in my resolv.conf
> file, I am using a DNS from another ISP. Is this the source of my problem or
> can anyone tell me what is going on?


If DHCP is setup correctly via /etc/dhcpd.conf, DNS can be provided to
your clients through DHCP, alone. Check to see that in you have the
correct entry in your dhcpd.conf files, as indicated here:

option domain-name-servers <ISP DNS Server Address>

In my experience, if the server is not very fast, it is better to have
the clients point directly to the DNS IP, even under DHCP. It also takes
the load off the server to resolve outside names.

If you are planning on using Samba, you will want to install win-bind
and add settings in your smb.conf file that your server is also a WINS
server. From the Windows clients, you will add the IP address of server
on the inside NIC as the WINS server. That would resolve names
internally.

DHCP can be finicky, or not work at all, if you do not have the
dhcpd.conf files correctly setup. My suggestions are assuming that you
have properly setup ranges and everything else.

HTH,

T



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to