Re: Find every instance of hostname

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

 



Anne Wilson <cannewilson@xxxxxxxxxxxxx> wrote:
On Saturday 26 August 2006 18:54, Craig White wrote:

$ grep -r localhost.localdomain /etc/* > /tmp/test.txt

will display standard error on screen but the stuff you want will go
into the file you created

It did. Using the correct name on this box, the only results, though, were in /etc/hosts, /etc/sysconfig/networking/profiles/default/hosts and the printer definitions. I have checked the corresponding files on the offending laptop, but can't see anything wrong. I'm beginning to think that it's a package bug in rawhide.

Anne

Check the settings in the following files:

/etc/sysconfig/network-scripts/ifcfg-<dev> for DHCP_HOSTNAME
This should be just the host name you want.

/etc/sysconfig/network for HOSTNAME
This should be the FQDN.

If these are not set and the hostname command still gives "localhost.localdomain" then this is probably a hard-coded default. You should be able to not set DHCP_HOSTNAME and just use a generated hostname from the DHCP server. You also might want to retry the grep with just localhost or just localdomain. The search you did will only match localhost.localdomain; not just one or the other.

Cheers,
Dave

--
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux