Re: Is there any point to full host names in /etc/hosts ?



Moe Trin wrote:
On Fri, 2 Nov 2007, in the Usenet newsgroup comp.os.linux.networking, in article
<b5frv4-0qn.ln1@xxxxxxxxxxxxxxxxxxx>, Rikishi 42 wrote:

He's added 2 of my PC's in the /etc/hosts of his laptop, for use when he
visits and connects it to my LAN.

This would be a sample from that file:

# Home net
192.168.108.101 desktop.myDomain desktop
192.168.108.124 laptop.myDomain laptop
192.168.108.101 server.myDomain server

Minor quibble - a given hostname OR IP address should appear on one
line only.


If you are using the hosts file to avoid web advertisements or other sites you want to avoid, the hosts file generally contains a long list of "127.0.0.1 ads.doubleclick.net" lines, with every line resolving to the same IP address. Is there some problem with lists like that?

mvh.,

David
.



Relevant Pages

  • Re: Is there any point to full host names in /etc/hosts ?
    ... If you are using the hosts file to avoid web advertisements or other ... Is there some problem with lists like that? ... The knack lies in learning how to throw yourself at the ground and miss. ...
    (comp.os.linux.networking)
  • Re: Is there any point to full host names in /etc/hosts ?
    ... If you are using the hosts file to avoid web advertisements or other ... Is there some problem with lists like that? ...
    (comp.os.linux.networking)
  • Spyware blocking with HOSTS file on DNS server
    ... names in HOSTS file format that resolve them to loopback. ... lists that are well maintained. ... If resolving to loopback, do we have to wait for the connection to ... if we can't make our DNS server pay attention ...
    (Security-Basics)
  • RE: Spyware blocking with HOSTS file on DNS server
    ... Spyware blocking with HOSTS file on DNS server ... names in HOSTS file format that resolve them to loopback. ... lists that are well maintained. ... If resolving to loopback, do we have to wait for the connection to ...
    (Security-Basics)
  • Re: HOSTS File
    ... control and the hosts file is a very personal thing. ... them quickly, merge other lists, and IIRC check for duplicates. ... hosts file as well as a quick and easy way (though I've a handy batch file ...
    (microsoft.public.windowsxp.newusers)