Hosts file questions
I'm not getting the hosts file to work in Yosemite, but instead of a plain what's wrong, I'd like to know a bit more about how it works in general. Here is the default hosts file plus one, except that I added line numbers for later and took out the comments:
- 127.0.0.1 localhost
- 255.255.255.255 broadcasthost
- ::1 localhost
- fe80::1%lo0 localhost [I've seen this elsewhere, but it was NOT on my default Yosemite file]
Q1: Line 1 uses a tab between the IP and localhost and lines 2 and 3 use spaces. Does it matter?
Q2: Some examples, even on this forum, show a forth line "fe80::1%lo0 localhost", or something similar. What is that for, and do I need it?
Q3: Some hosts files add the new host lines at the end (line 5). Some add the new lines between lines 2 and 3. Does it matter?
Q4: What does the line 3 do?
Q5: The added lines look different as I see them around the web:
127.0.0.1 domain_name
domain_name 127.0.0.1
domain_name CNAME 127.0.0.1 (I have no idea what CNAME is)
Q6: And, similar to Q1 above, is there any difference between using IP[tab]domain versus IP[space]domain?
Thanks.
MacBook Pro, OS X Yosemite (10.10), 4 GB