LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How do I make BIND override arbitrary hosts? (https://www.linuxquestions.org/questions/linux-networking-3/how-do-i-make-bind-override-arbitrary-hosts-322907/)

davidgro 05-12-2005 06:47 PM

How do I make BIND override arbitrary hosts?
 
I have an home LAN and the easiest way I found to get DNS working on the internal side was to install BIND and run it with its default configuration (SuSE 9.x) on the router. Now I want to use it for an alternate purpose: redirection of specific hosts on a single domain not owned by me to a web server running on the router (internal side only) while leaving other hosts in that domain at their officially assigned IPs.

I can make it work locally on the router by setting up /etc/hosts but apparently BIND doesn't read that. Is there any way to either make it read that file or implement something similar?

Please be explicit when describing any changes to BIND's config files, I have never done it before.

Matir 05-12-2005 09:19 PM

You should just be able to configure the domain in bind as if it were to be the 'normal' DNS server providing services for that domain. What exactly are you attempting to achieve? Blocking sites?

davidgro 05-12-2005 10:56 PM

purpose
 
yup, blocking most of a site anyway, specifically ebay: I want to allow my.ebay.com and purchases.ebay.com, etc. but block search, www, hub, cgi, and so on.

Matir 05-13-2005 12:41 AM

can i ask why you want to deny those, just for my own curiousity? ;)

davidgro 05-13-2005 02:54 AM

My dad is addicted, hopefully if I cut him off we will have grocery money next month. I've been warning him that I'd do this, I just didn't figure it would take more than /etc/hosts

I'm also not worried about him figuring out a way around it, (such as ebay.co.uk) he is the type that makes me appreciate Apple's mentality: I had to physically remove his right mouse button to keep him from accidentally popping up new windows and other random stuff all the time.


All times are GMT -5. The time now is 12:56 AM.