LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Local DNS, "fake" domain (https://www.linuxquestions.org/questions/linux-server-73/local-dns-fake-domain-515490/)

Xiiph 01-01-2007 11:54 PM

Local DNS, "fake" domain
 
Im toying around with my private network and this is what i want to achieve:

All computers on this LAN, query my DNS server (which will only be master for the certain domain I want), and for everything else, it will forward it to my ISP dns servers. Like this:

Local computer looking up computer1.apple.com ---> Local DNS server (only avail from LAN) ---> translate to local IP of a LAN computer.

Local computer look up www.google.com ---> Local DNS not master ---> ISP server ---> Give back real www.google.com

Im aware that this is most likley achieveable using the hosts files, but this is not what i want. Also I know that (in this example) the local computers would most likely not be able to reach the real apple.com domain and its website, but this is what i want. I cant see why this would be impossible due to the fact this will never be "known" to the rest of the internet as it stays strictly inside my LAN.

I been screwing around with this for quite some time now, and I just dont get it to work.

Any ideas? Using Ubuntu Server "Edgy Eft 6.10", with BIND9.

Thanks in advance :)

Wells 01-02-2007 12:39 PM

This shouldn't be any problem. There are howtos out there on how to do this with Bind that should simply walk you through exactly what you are proposing. I do it at home myself, and don't have any issues with it.

If you are still having problems with it, let us know what exactly you are doing and we can go from there.

Xiiph 01-02-2007 11:15 PM

I just got it working, did a stupid mistake after reading up on some security stuff...
Added a list of IPs which was supposed to be common "fake" ips used for attacks etc, blackholed them and ended up having my own LAN network being blackholed :/

On the other hand, now it works as a charm :D

Thanks for the help :)


All times are GMT -5. The time now is 02:19 PM.