On Sun, 2005-04-17 at 12:08 -0500, Michael Hennebry wrote: > On Sun, 17 Apr 2005, Paul Howarth wrote: > > > On Sat, 2005-04-16 at 23:25 -0500, Michael Hennebry wrote: > > > I'm pretty sure my setup is supposed to get the > > > hostname through through dhcp. That is the way > > > it worked when I first managed to connect it > > > to the internet. > > > > > > Ideas anyone? > > > > DHCP gives you an IP address, not a hostname. The hostname then comes > > from doing a reverse lookup of the IP address (usually using DNS, but in > > some environments this might be a hosts file, NIS etc.). > > Thanks. > > My IP address is 24.117.45.226. > nslookup 24.117.45.226 produces 24-117-45-226.cpe.cableone.net. > hostname produces stmike. > /etc/hosts contains only > # Do not remove the following line, or various programs > # that require network functionality will fail. > 127.0.0.1 localhost.localdomain localhost > > I that infer my machine has not been getting its hostname through DNS. > > Is there a way to ask the system where it did get the hostname? ---- cat /etc/sysconfig/network you can edit there if you wish - probably have to '/sbin/service network restart' to get it to take though. My guess is that you named this machine when you did the original install. the 'nslookup 24.117.45.226' provides resolution based upon reverse dns for the ip range which obviously is provided by your provider, cableone.net and is typical for residential dhcp clients on public ip space. Craig