PDA

View Full Version : cannot resolve names


philippjosefric
2006-01-25, 08:40 AM CST
I am using FC4 as Gatway for the laptop where FC4 is running as well
ping from laptop is OK

I can even ping from laptop to my provider
But cannot resolve hostnames

At the gateway in firestarter DNS is activated

What could be the reason why it does not work
Today I could make yum search from the laptop via the same gateway.
But now it does not work

How can I find the reason?

Thanks for hints
Philipp

giulix
2006-01-25, 09:05 AM CST
From your laptop

dig www.yahoo.com

Or any other well-known site...

philippjosefric
2006-01-27, 03:33 AM CST
dig www.yahoo.com does work from the laptop ONLY when I use network with automatic IP-adresses,
Not when I use network with static IP-Adresses.

It is OK, when I do it dynamically, But then I cannot ssh the lapdop

So I suppose:
there is a problem with DHCP in my gateway. dhcpd is running on the gateway and is activated via firestarter.

AND there seems to be a problem with the identity of the laptop, because when I do networking with static IP-adress I can ssh, sith dynamic IP I cannot reach him.

There is something not clear to me:
What is better: dynamically or statically?
How can I identify laptop when I do networking dynamically? In /etc/sysconfig/network I have definded hostname, but where do I define the IP? Only when static networking?
When I want to ssh the laptop propably will have to use static networking.
But then DHCP must be given throug the gatway, Which seems to be true, but possibly not correct.

So, how can I proof if DHCP is done correctly in my gateway?

Thanks for tipps
Philipp

giulix
2006-01-27, 04:09 AM CST
So, how can I proof if DHCP is done correctly in my gateway?


Set your laptop to obtain its IP address from the DHCP server. Check laptop's IP address with ipconfig from a DOS prompt.
If you need the laptop to obtain always the same IP address, you can do that by adding the following lines to your /etc/dhcpd.conf (but you need to know your laptop's MAC address): Just make sure you insert these lines within your subnet section

host hostname {
hardware ethernet nn:nn:nn:nn:nn:nn;
fixed-address 192.168.1.n;
}

Substitute hostname with your actual machine's name. Hardware ethernet is your laptop's MAC address and fixed address is the IP address you want to reserve to the laptop.

P.S. You can find out your laptop's MAC address (plus several other useful info) by specifying the /all option to ipconfig.