Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Snit Newsgroups: uk.comp.sys.mac,comp.sys.mac.system,alt.computer.workshop Subject: Re: A question about - How to Reset/Restore Hosts file to its Original Date: Wed, 15 Jan 2020 12:30:28 -0700 Lines: 50 Message-ID: References: <7JpTF.120011$eK6.28256@fx16.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net BZZwoPfyamCeJZglM2SYrAgiTuHGj4VXm++Zqm8L92HsePsJQZ Cancel-Lock: sha1:+pzYmocZfh/ehLQB6wSH3+fjlKI= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 In-Reply-To: Content-Language: en-US Xref: csiph.com uk.comp.sys.mac:138637 comp.sys.mac.system:128835 On 1/15/20 11:16 AM, Apd wrote: > "Apd" wrote: >> "David" wrote: >>> I'm quite interested to learn *WHY* that entry is missing from both of >>> my iMacs. >> >> Probably because it's not needed. >> >>> They are both freshly installed in the quite recent past. In >>> other words, the Host files came directly from Apple and I have never >>> altered them (on these machines). >> >> My advice is to leave well alone. >> >> The hosts file gives internet addresses for host names, and when you >> have the same name (in this case localhost) with more than one IP >> address like this: >> >> 127.0.0.1 localhost # IPv4 loopback >> ::1 localhost # IPv6 loopback equivalent >> fe80::1%lo0 localhost # IPv6 linklocal >> >> what is software supposed to do? Does it take the first one it finds >> or does it search the whole file looking for a mapping to satisfy its >> needs? Maybe when looking for IPv6 and finding an IPv4 address but >> when there are two for a particular protocol (in this case IPv6) is it >> in a position to decide or should it decide? I don't know! > > A bit of searching on the interwebs confirms that these duplicate > entries are valid. Not common with IPv4 only but expected for systems > using IPv6. How software handles the entries depends on the OS, how > networking is configured and what end-user software does with any > multiple values it gets from a query. > > My advice remains the same. If the link-local entry is missing I > expect anything needing it will use a suitable default (unless anyone > knows different). Even the default loopback entries may not be needed > on some systems. > > I would agree. Unless there is a good reason TO change it I am leaving mine as is. -- Personal attacks from those who troll show their own insecurity. They cannot use reason to show the message to be wrong so they try to feel somehow superior by attacking the messenger. They cling to their attacks and ignore the message time and time again.