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

We're playing a going-away prank on a coworker, and would like to use a rule in our internal DNS server to redirect to point at one of our internal development servers. Basically, I'd like to accomplish the same thing as adding a line to a Linux /etc/hosts file, only for the entire network.

I have access to our DNS server. How would you go about doing this?

I created an entry in the reverse lookup subnet with the 'Host Name' of and the 'Host IP' of our development server, a Linux box running Debian on which I've created a virtualhost to handle requests to It doesn't appear to be working, however, and my expertise has reached its limit.


share|improve this question
HAHAHAHA! AMAZING! – Campo May 4 '10 at 20:35
You are an inspiration to us all. Now, you just need to add content that is believable, but wrong. "Google buys Apple Fabrication Plant", "MS sues Apple over Bootcamp 'enabling piracy'", etc. – Ben Doom May 4 '10 at 21:26
It was a brilliantly designed and executed prank (if I do say so myself) that was foiled by the target's laziness. He was sshed into a client server at the time, so he used lynx to open the link, using the client server as a proxy and bypassing our DNS server. Drats! I plan on blogging about this and will post a link here when I do. Thanks for the help, everyone! – chuckharmston May 5 '10 at 14:21
up vote 2 down vote accepted

You're going to need to create a normal primary DNS Zone (with Active Directory integration disabled). Call it "" (note that there is no trailing period).

Create a CNAME record in that zone, and point it to the HOST record of the machine on the local LAN.

Be careful. As far as the DNS is concerned you're now authoritative for, so if there are subnets, etc, etc, then you're going to need to put in names for them as well.

share|improve this answer
Exactly what we did, thanks! Fortunately TechCrunch is on, so its DNS setup should be very simple. – chuckharmston May 4 '10 at 20:42

Your Answer


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