🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #189543

Re: (was Re: setting FQDN in /etc/hosts)

#189543
From: Jack Cuyler
Date: Sun, 20 Aug 2006 17:11
65 lines
3189 bytes
On Sun, 20 Aug 2006 12:24:01 +0100, Whiskers wrote:

> On 2006-08-20, Thufir <hawat.thufir@gmail.com> wrote:
>> Whiskers wrote:
>> [...]
>>> /etc/host.conf could be involved.
>> [...]
>>
>> [root@localhost ~]# cat /etc/host.conf
>> order hosts,bind
>> [root@localhost ~]#
>> [root@localhost ~]# date
>> Sun Aug 20 00:10:27 IST 2006
>> [root@localhost ~]#
>>
>> -Thufir
>>
> 
> Try adding a line
> 
> multi on
> 
> (without that, the system will only 'read' one 'hostname' from /etc/hosts, 
> no matter how many are present).
> 
> Se man host.conf
>

You have that backwards.  /etc/hosts does not set the hostname.  It is
used to look up the IP address of a hostname, as a supplement to DNS. 
Take the following example.

/etc/hosts
127.0.0.1	foobar.com foobar localhost
192.168.1.100	somehost.com somehost
192.168.1.101	foobar.com foobar

Without multi, a hostname lookup of "foobar" would return 127.0.0.1.
With multi, a hostname lookup of "foobar" would return both 127.0.0.1
and 192.168.1.101.

Likewise, without multi, a reverse lookup of 127.0.0.1 would return
foobar.com, but with multi, it would return foobar.com, foobar and
localhost.


In Fedora, the system's hostname is set in /etc/sysconfig/network, with a
line like

HOSTNAME=myhostname

-- 
Cheers,
Jack

I WILL NOT CUT CORNERS
"  "    "   "   "   "
"  "    "   "   "   "
"  "    "   "   "   "

	Bart Simpson on chalkboard in episode 7F11

-- 
Posted via a free Usenet account from http://www.teranews.com
Technical Details
Message-ID: <44e897d6$0$1818$88260bb3@free.teranews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!be5.nntpserver.com!not-for-mail
References: <1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com> <1156009088.701787.214820@h48g2000cwc.googlegroups.com> <7rekr3-krk.ln1@ID-107770.user.individual.net> <1156054251.698413.65220@h48g2000cwc.googlegroups.com> <hbtlr3-5ab.ln1@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <44e897d6$0$1818$88260bb3@free.teranews.com>
Subject: Re: (was Re: setting FQDN in /etc/hosts)
Date: Sun, 20 Aug 2006 17:11:50 +0000
From: "Jack Cuyler" <jjvcuyler@REMOVEdrunkenbastards.com>
References: <1155922996.353013.89150@h48g2000cwc.googlegroups.com> <6lihr3-rpm.ln1@ID-107770.user.individual.net> <1155955717.407500.277610@m73g2000cwd.googlegroups.com> <e2fjr3-6lc.ln1@ID-107770.user.individual.net> <1156008712.141817.181590@h48g2000cwc.googlegroups.com> <1156009088.701787.214820@h48g2000cwc.googlegroups.com> <7rekr3-krk.ln1@ID-107770.user.individual.net> <1156054251.698413.65220@h48g2000cwc.googlegroups.com> <hbtlr3-5ab.ln1@ID-107770.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!be5.nntpserver.com!not-for-mail
Newsgroups: news.software.readers
X-Face: 4(aM5\}ZCmxvc`T0N&&bmaltK"5Bx`/.zybrc6.?14w&hgB:+h#fh>9H4e/\'Ootb<SP(Jp!flqF9o"=7Fjx:SI)&cAd7)wJ|CD&C,1uvZ0$w(W}ZS|H<t-Rra,$0uRDXSr6i8Td2>J=BlSjzf{d3psdee3-V/IlxV$Y#>~mUw48i!}~W1"VJ;
 h,H,3?9+N,0"9:5{1\J|ISwpo5z#yQV$dF|/xf2ysTZt"+8IpqK&m@2E{_(!siA31Q4>rC=@S;
 Ky"(G"]+c~(vMf3J|/<_DHF6WUV6F
User-Agent: pan 0.109 (Beable)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 61
NNTP-Posting-Date: 20 Aug 2006 17:11:50 GMT
X-Complaints-To: abuse@teranews.com