Re: Fedora core 2 and hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Assuming the machine gets proper hostname information, it may be in
the /etc/sysconfig/network file...
grep HOSTNAME /etc/sysconfig/network 

That may or may not work :)

I can't quite recall how the entry is obtained by the system though,
so it may require some combination of the hostname being known by the
dns servers and the dhcp options handing out the proper hostname.  And
it may be indicative that those settings are not working since your
machine is returning localhost as the hostname at that point.  (Or,
that may mean nothing, depending on how the configuration of that
environment is happening, I'm simply not sure.)

--Chris

On Fri, 18 Jun 2004 12:30:55 -0400, Brian Akins 
> Is there an easy way to get the hostname in post in FC2.  hostname just
> returns localhost
> I'm using dhcp.
> 
>



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux