Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-12-2005, 07:47 PM
|
#1
|
LQ Newbie
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3
Rep:
|
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.
|
|
|
05-12-2005, 10:19 PM
|
#2
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
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?
|
|
|
05-12-2005, 11:56 PM
|
#3
|
LQ Newbie
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
05-13-2005, 01:41 AM
|
#4
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep:
|
can i ask why you want to deny those, just for my own curiousity?
|
|
|
05-13-2005, 03:54 AM
|
#5
|
LQ Newbie
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3
Original Poster
Rep:
|
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 01:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|