[NTLUG:Discuss] Re: Renaming a Linux host
Leroy Tennison
leroy_tennison at prodigy.net
Sun Jul 24 23:15:08 CDT 2005
Burton Strauss wrote:
>Yes because there are multiple places where the 'name' of a host is
>specified.
>
> Some distros have config files which set variables used in various
>scripts.
> There is /etc/hosts for local name resolution.
> Sometimes it's specified separately for dhcp.
> Multiple types of 'host' name, such as FQDN (Fully Qualified Domain Name),
>NIS, ...
>
>etc.
>
>-----Burton
>
>
>-----Original Message-----
>From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On Behalf
>Of Robert Citek
>Sent: Saturday, July 23, 2005 7:10 PM
>To: NTLUG Discussion List
>Subject: Re: [NTLUG:Discuss] Re: Renaming a Linux host
>
>
>On Jul 23, 2005, at 9:04 PM, Leroy Tennison wrote:
>
>
>>Thanks for the input. While Googling I came across what should have
>>been obvious 'man hostname' says that the program will set the
>>hostname. Now, is that too simplistic?
>>
>>
>
>Yes, for the hostname will only be changed for the current kernel session.
>What distro are you running?
>
>Regards,
>- Robert
>http://www.cwelug.org/downloads
>Help others get OpenSource software. Distribute FLOSS for Windows, Linux,
>*BSD, and MacOS X with BitTorrent
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>
>
I was afraid someone was going to say something to that effect, it never
seems to be that easy. BTW, I'm running into problems with 'grep -R
<hostname> *' on Red hat 9. It never seemed to complete (waited an hour
on a 1.7GHz host with a 40GB HD which is 73% full). I then decided to
get a little omre sophisticated and do (at /)
for i in `ll | grep ^d | awk '$0 ~ "dev" {next}; $0 ~ "proc" {next};
{print $NF}'`; do grep -R <hostname> $i; done
but grep still ran out of resources in /var. Any ideas or, by the time
I get to /var, do I care?
More information about the Discuss
mailing list