Web Hosting Talk







View Full Version : Tricking DNS?


web_res
03-12-2002, 02:51 PM
Hello,

We have a local caching DNS server (using BIND) at our location. Is there any way we can tell it to basically point a specific domain to a certain ip? We are not authorative for this domain and only need it for internal reasons.

Let's say we want a domain that we don't own like yahoo.com to point to one of our LAN ips like 10.5.20.23. Is this possible? It would only affect us inside the network and nothing outside as only internal computers can see the dns server and use it.

serve-you
03-12-2002, 03:04 PM
You could do this a couple ways. Ome way would be to create a zone file for the domain name, the same way that you would a valid address. The other way (simple) add the host to your /etc/hosts file.
10.1.1.1 www.yahoo.com

-Dan

Softerweb
03-12-2002, 03:09 PM
As long as the internal clients use the dns server as their resolver you can setup any zone you want. But, there are some obvious reasons why you should be carefull, especially if they have access to the Internet.

zupanm
03-12-2002, 03:57 PM
ya you can add a zone like yahoo.com and point it to any ip you want. Anyone using your dns as a resolver will go to the ip your pointed it to.

web_res
03-12-2002, 04:55 PM
Hmm... thanks guys, as you can tell DNS isn't my forte. Will try this out...