[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: localhost.localdomain
- From: Jason Kohles <email jasonkohles com>
- To: kickstart-list redhat com
- Subject: Re: localhost.localdomain
- Date: Wed, 14 May 2003 22:04:33 -0400
On Wed, May 14, 2003 at 09:56:25AM -0500, John Beamon wrote:
>
> Actually, I've seen this as well. I can manually install and specify a
> static IP, and the only place it goes is
> /etc/sysconfig/network-scripts/ifcfg-eth0. This is a valid point, IMHO.
>
Which means the machine was not able to resolve the ip address you entered,
this is the code that writes /etc/hosts during install:
# /etc/hosts
f = open(instPath + "/etc/hosts", "w")
localline = "127.0.0.1\t\t"
log("self.hostname = %s", self.hostname)
ip = self.lookupHostname()
# If the hostname is not resolvable, tie it to 127.0.0.1
if not ip and self.hostname != "localhost.localdomain":
localline = localline + self.hostname + " "
l = string.split(self.hostname, ".")
if len(l) > 1:
localline = localline + l[0] + " "
localline = localline + "localhost.localdomain localhost\n"
f.write("# Do not remove the following line, or various programs\n")
f.write("# that require network functionality will fail.\n")
f.write(localline)
if ip:
f.write("%s\t\t%s\n" % (ip, self.hostname))
If the hostname you entered was not resolvable to an ip address, then it
will get associated with the localhost address in /etc/hosts.
--
Jason Kohles A witty saying proves nothing.
email jasonkohles com -- Voltaire (1694 - 1778)
http://www.jasonkohles.com/
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]