Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It sounds like a stupid question but...

If I had a domain such as, could I set the IP address of to

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 (

share|improve this question
Yep, I have to agree with the first part. Perhaps you can tell us what you're hoping to achieve. Then we might be able to give you a useful answer. – John Gardeniers Jan 1 '11 at 6:50
@John Gardeniers: Its more about research. I mostly wanted to know if it will work (directly an ip address designated for lan or localhost) and side effects. I had in my host file now in case i need to use a webaddress not an ip address (which came in handy when testing subdomains) and i was just wondering – acidzombie24 Jan 1 '11 at 15:43
up vote 4 down vote accepted

Anyone trying to reach will always be directed to their local computer. You might have some local effects on the server itself, but probably not since most services will rely on /etc/hosts before resorting to DNS.

share|improve this 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 - which had been set up in DNS to point to Hilarity ensues when the person comes back and says something like he had all that software already.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.