-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Will Francis wrote:
>How can I make it such that when a machine reboots and gets a new DHCP >address that the hostname will reflect that change? It's been bothering >me for years, but now it's become a major problem. That's an easy one, and yes, it's *$#*^% annoying. Drop the hardcoded hostname in /etc/hosts and in /etc/sysconfig/network. And *smack* to Red Hat for doing that. One other thing that can trip you up is pcmcia drivers. If this is a laptop, this may not work right due to the order that the drivers load (pcmcia restarts the network). In that case, you may have to fiddle with options to dhcpcd/pump in the ifcfg* scripts, or change the order of the inits. Also, be aware that you can set your locally visible hostname to anything you want in /etc/sysconfig/network, using HOSTNAME and/or DHCP_HOSTNAME (depends on the Red Hat release; I set 'em both) without affecting name resolution of the DHCP interface. The specified hostname will be what you see in dhcpd.leases, which is handy. Cheers -d - -- David Talkington PGP key: http://www.prairienet.org/~dtalk/0xCA4C11AD.pgp -----BEGIN PGP SIGNATURE----- Version: PGP 6.5.8 Comment: Made with pgp4pine 1.75-6 iQA/AwUBPK5QQ79BpdPKTBGtEQIx8wCg3ST3JmGBV5lLLkKzQcm5dnnKC2QAoLm0 tfMac2ByTXnQIqyND96E3GN/ =lJab -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list