Re: Two Different Formats for hosts File?
From: W. Watson (wolf_tracks_at_invalid.inv)
Date: 12/06/04
- Next message: W. Watson: "Modems and Networks. Dual Modem Use?"
- Previous message: Tauno Voipio: "Re: Is it possible to record a DHCP handshake?"
- In reply to: Bit Twister: "Re: Two Different Formats for hosts File?"
- Next in thread: Bill Unruh: "Re: Two Different Formats for hosts File?"
- Reply: Bill Unruh: "Re: Two Different Formats for hosts File?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 06 Dec 2004 15:19:45 GMT
Bit Twister wrote:
> On Mon, 06 Dec 2004 12:00:26 GMT, W. Watson wrote:
>
>>I can find two descriptions on the web for the hosts file that appear to be
>>different. Here's one:
>>
>>#
>># Hosts file for Virtual Brewery/Virtual Winery
>>#
>># IP local fully qualified domain name
>>#
>>127.0.0.1 localhost
>>#
>>191.72.1.1 vlager vlager.vbrew.com
>>191.72.1.1 vlager-if1
>>
>>and another:
>>
>># For loopbacking.
>>127.0.0.1 localhost
>>#
>>129.6.15.28 time-a.nist.gov synctime
>>44.56.26.10 ka1fsb.ampr.org ka1fsb
>>44.56.26.11 ka1fsb-3.ampr.org ka1fsb-3
>>
>>Can someone explain this? Is there another file that controls the order?
>>
>>My man page for hosts shows: ip-address canonical_hostname aliases
>>
>>but gives no explanation of canonical_hostname
>
>
> Think about it a minute, why would you want an aliases longer than the
> canonical_hostname. The canonical_hostname is the Fully Qualified
> Domain Name (FQDN) . Looking at the man page on Mandrakelinux the examples
> should prove it to you.
>
> EXAMPLE
> 127.0.0.1 localhost
> 192.168.1.10 foo.mydomain.org foo
> 192.168.1.13 bar.mydomain.org bar
> 216.234.231.5 master.debian.org master
> 205.230.163.103 www.opensource.org
So you're saying that if the FQDN appears, then the aliases follow it, and if there
is no FQDN all names are aliases? Or more likely from the two examples above, both
aliases and one FQDN can follow the IP, but in any order. I'm a RHL 9 user.
--
Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
(121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site: 39° 15' 7" N, 121° 2' 32" W, 2700 feet
(Formerly Homo habilis, erectus, heidelbergensis and now sapiens)
"The free market is a great thing--we should try it sometime."
-- Jim Hightower
Web Page: <home.earthlink.net/~mtnviews>
- Next message: W. Watson: "Modems and Networks. Dual Modem Use?"
- Previous message: Tauno Voipio: "Re: Is it possible to record a DHCP handshake?"
- In reply to: Bit Twister: "Re: Two Different Formats for hosts File?"
- Next in thread: Bill Unruh: "Re: Two Different Formats for hosts File?"
- Reply: Bill Unruh: "Re: Two Different Formats for hosts File?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|