having trouble with hosts file

Jason Viloria jnvilo at gmail.com
Fri Sep 21 19:43:13 UTC 2007


Scott wrote:
> Hi Rick,
>
> When you say ip address refering to the hosts file is that the ip 
> address the router sees or the actual internet address of the server?
>
> Scott
> ----- Original Message ----- From: "Rick Stevens" <rstevens at internap.com>
> To: "For users of Fedora" <fedora-list at redhat.com>
> Sent: Friday, September 21, 2007 12:13 PM
> Subject: Re: having trouble with hosts file
>
>
>> On Fri, 2007-09-21 at 00:23 -0500, Scott wrote:
>>> Hello there,
>>>
>>> How should a hosts file look if you want it to be called pilotalk 
>>> for the
>>> root log in and on the ZInternet?
>>
>> To set the host name permanently, edit /etc/sysconfig/network and change
>> the value for the "HOSTNAME=" parameter to the FQDN (fully qualified
>> domain name).  For example, to make it pilotalk.mydomain.com:
>>
>> HOSTNAME=pilotalk.mydomain.com
>>
>> That will take effect on a reboot.  To change it immediately, use
>> "hostname pilotalk.mydomain.com".  It won't show up in the prompts until
>> you log out and back in as the hostname is picked up by your shell when
>> you log in.
>>
>> The /etc/hosts file should contain the IP address of the machine, some
>> whitespace (tabs are normal), then the FQDN of the machine, then
>> whitespace, then the common (short) name, e.g.
>>
>> 10.20.30.40   pilotalk.mydomain.com   pilotalk
>>
>> As far as the Internet is concerned, that's a function of DNS and you
>> have to tell your DNS service what the FQDN and IP address is of the
>> machine.  That varies widely depending on who your DNS service is.
>>
>> ----------------------------------------------------------------------
>> - Rick Stevens, Principal Engineer             rstevens at internap.com -
>> - CDN Systems, Internap, Inc.                http://www.internap.com -
>> -                                                                    -
>> -         If this is the first day of the rest of my life...         -
>> -                        I'm in BIG trouble!                         -
>> ----------------------------------------------------------------------
>>
>> -- 
>> fedora-list mailing list
>> fedora-list at redhat.com
>> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>>
>>
>>
>> -- 
>> No virus found in this incoming message.
>> Checked by AVG Free Edition.
>> Version: 7.5.488 / Virus Database: 269.13.27/1020 - Release Date: 
>> 9/20/2007 12:07 PM
>>
>>
>
That would be the IP that you have configured on your machines eth0 or 
whichever interface you use. Do ifconfig as root to see what IP is set.

br
Jason




More information about the users mailing list