I disabled all my network connections and deleted 127.0.0.1 localhost
in HOSTS file but cannot find what had I broken by it. My IIS and MS SQL Server 2008 R2 continues to resolve localhost
just fine
Why does HOSTS file always contain 127.0.0.1 localhost
?
What had I broken by deleting this entry?
I am on Windows XP Pro SP3 writing here still without localhost in HOSTS file.
Should I put it back and how fast ?
The reasons of interest are many fold - for instance:
- To understand better mechanisms of internal resolutions, etc.
------ UPDATE05:
I am not changing the question! I add updates. Can I ask to stop deleting and editing it until I write that I fished with it? For ex., just now I wrote the same comment in all posts addressing the same point.
This is the essence of my question/doubt - that the DNS does not make any sense in relation to "localhost" or "127.0.0.222" or "(local)" names, synonyms, aliases, links, addresses, IDs, tokens, whatever.
They are hundreds synonyms to the same entity and they are internal and Windows-es know it without any resolutions since there is no sense to resolve between so many synonyms!
They are related to internal computer mechanisms while DNS is external (between various computers). How can internal IDs can depend on external ones?
All Windowses (including Home Editions) will have internal DNS server in order to function? and then replicate it when/if connected to network?
Well, the link from comments did not appear in Linked section, as I was told.
I forked a child subquestion:
https://stackoverflow.com/questions/3536351/is-localhost-host-resolved-to-127-0-0-1
localhost
resolving to that interface.