Re: (fqdn) hostname resolution when using DHCP
On Thu, 30 Dec 1999, Salman Ahmed wrote:
ssahme >I got one of the network admins to update their DNS config so that the
ssahme >hostname of the machine is mapped to the machine's ethernet address.
ok
ssahme >Some more questions: I seem to be getting the same IP address through
ssahme >DHCP. After the DNS config update, I can ping this machine by using its
ssahme >fqdn hostname from a windows box. But from the machine itself, I can't
ssahme >ping the fqdn hostname.
sounds as if the dns config on the linux box is not right? check
/etc/resolv.conf, and show the error it gives you whenever possible.
ssahme >The /etc/hosts file for this machine is:
ssahme >
ssahme > 127.0.0.1 matrix localhost
ssahme >
ssahme >What should I add to this file so I can ping from the machine itself by
ssahme >giving its fqdn hostname ? I always get 192.168.9.31 as my IP address
ssahme >for this box via DHCP.
/etc/hosts and DNS are quite different. /etc/hosts can give one
response(the one that is hard coded into the file) while DNS can give
something totally different. Make sure the DNS config is set right on the
linux box. For my home network i recently added a fake domain 'aphro' (no
.com .net .org or any of that) and just started assigning my internal ip
addresses to it:
Server: localhost
Address: 127.0.0.1
Name: mail.aphro
Address: 10.10.10.1
Server: localhost
Address: 127.0.0.1
Name: linuxoutpost.aphro
Address: 10.10.10.2
if you dont have a real domain for that internal network, you can make one
like i have for mine. or, you could add a line to /etc/hosts that looks
like:
192.168.9.31 hostname.domainname
check /etc/host.conf as well, the line that has 'order' on it tells the
system where to look first to try to get an ip from a name (hosts,bind is
default i believe)
ssahme >Also, is there any curses-based tool to configure network settings for a
ssahme >Debian box ?
i cant reccomend anything since i have never tried any such tools under
debian.
maybe you can find something at:
http://www.freshmeat.net/appindex/console/administration.html
ssahme >Thanks.
sure, glad to help
nate
----------------------------------------[mailto:aphro@aphroland.org ]--
Vice President Network Operations http://www.firetrail.com/
Firetrail Internet Services Limited http://www.aphroland.org/
Everett, WA 425-348-7336 http://www.linuxpowered.net/
Powered By: http://comedy.aphroland.org/
Debian 2.1 Linux 2.0.36 SMP http://yahoo.aphroland.org/
-----------------------------------------[mailto:aphro@netquest.net ]--
1:53pm up 133 days, 1:47, 4 users, load average: 1.42, 1.56, 1.53
Reply to: