Public domain ponting to localhost

acidzombie24 asked:

It sounds like a stupid question but…

If I had a domain such as example.com, could I set the IP address of abc.example.com to 127.0.0.1?

Are there any side effects I should know of? E.G. would it not try to connect to myself? Would it also upset the main site (example.com)?

My answer:


Yes, you can do this, and some people do.

For quite a while there was a running joke where, when someone asked for illegal software, they would be sent to warez.example.com – which had been set up in DNS to point to 127.0.0.1. Hilarity ensues when the person comes back and says something like he had all that software already.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.