Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We're playing a going-away prank on a coworker, and would like to use a rule in our internal DNS server to redirect techcrunch.com 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 techcrunch.com and the 'Host IP' of our development server, a Linux box running Debian on which I've created a virtualhost to handle requests to techcrunch.com. It doesn't appear to be working, however, and my expertise has reached its limit.

Thanks!

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

1 Answer 1

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 "techcrunch.com" (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 techcrunch.com, 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 Wordpress.com, so its DNS setup should be very simple. –  chuckharmston May 4 '10 at 20:42

Your Answer

 
discard

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