Re: change hostname

From: Rich Fearn (rich.fearn_at_btopenworld.com)
Date: 10/25/03


Date: Sat, 25 Oct 2003 14:16:19 +0100


> But a grep search of the "/etc" file tree pulls up a number of
> script files that are hard wired to find "localhost"
> Do these also need to be edited

Don't modify or remove the localhost entry as Linux depends on it. Notice
that your machine can't be accessed from another machine on your LAN as
"localhost" anyway, since "localhost" is supposed to refer to the "local
machine". Add another entry to /etc/hosts that specifies a name for your
machine, together with an address that other machines on your LAN can use to
communicate with it.

RF



Relevant Pages

  • session_start() does not reload existing session
    ... entry for 'localhost' that allows cookies. ... I run AdSubtract Pro on ... but only had a localhost entry on the main machine. ... on my laptop AdSubtract was consuming the cookies php was issuing. ...
    (comp.lang.php)
  • Re: localhost not recognised in getaddrinfo(3) in FreeBSD 9.0-STABLE
    ... the string representation of a port number in decimal. ... Does this machine have an entry for localhost in /etc/hosts? ... While updating 9.0-RELEASE to 9-STABLE today mergemaster wanted to put in a new hosts file that does not contain the localhost entry. ...
    (freebsd-questions)
  • Re: DNS nslint error messages
    ... The first message means you're missing a localhost forward domain. ... this won't matter, because you have a localhost entry in /etc/hosts, but you ... named is correctly ignoring a forward A record which is out of zone. ... > Should I insert the A record in the zone file and ignore the nslint message, or should I leave it out and ignore the named message? ...
    (freebsd-questions)
  • Re: telnet on local LAN question (progress?)
    ... chalupa.localdomain chalupa localhost.localdomain localhost localhost4 ... having some strange names in your mail headers. ... And not just with Linux boxes. ... worked find when the hostname was entered on the 127.0.0.1 line but some ...
    (Fedora)
  • Re: redhat-list Digest, Vol 5, Issue 44
    ... > Im new to linux and want to access my two fat32 partitions in my redhat ... > just listen for calls on the localhost instead of networked or internet ...
    (RedHat)