Re: Change fqdn
To get hostname to work for myhost.example.com do this: * Make sure /etc/hostname has myhost. * Put this line in /etc/hosts: 1.2.3.4 myhost.example.com myhost David On Tuesday 24 January 2006 02:01 pm, José Pablo Ezequiel Fernández wrote: Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you.
Change fqdn
Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you. -- José Pablo Ezequiel Fernández pgpib1CDLZJ6J.pgp Description: PGP signature
Re: Change fqdn
On Tue, 24 Jan 2006, [utf-8] José Pablo Ezequiel Fernández wrote: Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you. -- The hostname of the computer is contained in '/etc/hosts'. You can change it there.
Re: Change fqdn
Steve Witt wrote: On Tue, 24 Jan 2006, [utf-8] José Pablo Ezequiel Fernández wrote: Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you. -- The hostname of the computer is contained in '/etc/hosts'. You can change it there. I think you mean /etc/hostname But when you change it, you'll need to be sure to add the new hostname to /etc/hosts with the IP address of 127.0.0.1 -- I usually have a GPG digital signature included as an attachment. See http://www.gnupg.org/ for info about these digital signatures.
Re: Change fqdn
On Tuesday 24 January 2006 18:47, Ken Bloom wrote: Steve Witt wrote: On Tue, 24 Jan 2006, [utf-8] José Pablo Ezequiel Fernández wrote: Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you. -- The hostname of the computer is contained in '/etc/hosts'. You can change it there. I think you mean /etc/hostname But when you change it, you'll need to be sure to add the new hostname to /etc/hosts with the IP address of 127.0.0.1 I would not recommend that. Leave localhost at 127.0.0.1, but give the machines FQDN a 192.168.nn.nn address. And copy that hosts file to all machines on your local network. The 192.168. block of addresses is guaranteed not to be propagated thru a router as it has been delegated as a private address block, and everyone with a local net can then use all 65,535 addresses in that block without effecting what goes out thru the gateway and into the internet. The gateway machine or the router should be setup such that any Native Address Translation is done there, and when its all done, every machine on your private net can access the internet (assuming the dns servers are properly addressed that is) independently of any other machine on this private net, available bandwidth allowing. But, none of those machines behind the router or gateway will be visible to the internet if iptables is properly setup on the gateway box. The only thing visible from outside here is a closed identd port and thats in the router with no way to hide it. I don't get attacked because I can't be otherwise found. -- Cheers, Gene People having trouble with vz bouncing email to me should add the word 'online' between the 'verizon', and the dot which bypasses vz's stupid bounce rules. I do use spamassassin too. :-) Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Change fqdn
Gene Heskett wrote: On Tuesday 24 January 2006 18:47, Ken Bloom wrote: Steve Witt wrote: On Tue, 24 Jan 2006, [utf-8] José Pablo Ezequiel Fernández wrote: Hello. How do I change the fqdn of a computer ? No matter what I do, hostname -f keeps telling localhost.localdomain, other computers with the same configuration give the right hostname. Thank you. -- The hostname of the computer is contained in '/etc/hosts'. You can change it there. I think you mean /etc/hostname But when you change it, you'll need to be sure to add the new hostname to /etc/hosts with the IP address of 127.0.0.1 I would not recommend that. Leave localhost at 127.0.0.1, but give the machines FQDN a 192.168.nn.nn address. And copy that hosts file to all machines on your local network. I didn't say to take localhost away. I meant to add the new hostname in addition: [EMAIL PROTECTED] ~]$ cat /etc/hosts 127.0.0.1 localhost cat-in-the-hat # The following lines are desirable for IPv6 capable hosts # (added automatically by netbase upgrade) ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts -- I usually have a GPG digital signature included as an attachment. See http://www.gnupg.org/ for info about these digital signatures.