LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-12-2005, 07:47 PM   #1
davidgro
LQ Newbie
 
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3

Rep: Reputation: 0
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.
 
Old 05-12-2005, 10:19 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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?
 
Old 05-12-2005, 11:56 PM   #3
davidgro
LQ Newbie
 
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 05-13-2005, 01:41 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
can i ask why you want to deny those, just for my own curiousity?
 
Old 05-13-2005, 03:54 AM   #5
davidgro
LQ Newbie
 
Registered: Feb 2004
Location: Wa. state, USA
Distribution: SuSE
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any way to make bind resolve any request to same IP? fur Linux - Networking 4 07-14-2004 12:18 AM
BIND and /etc/hosts + NAT kilou Linux - Networking 0 07-13-2004 08:02 PM
bind & resolve local hosts jingo_man Linux - Networking 7 07-08-2004 03:56 PM
running BIND + new hosts in db.outside = insuffecient info andzerger Linux - Networking 0 03-08-2004 12:05 PM
I cant make out bind errorsHi alaios Linux - Networking 1 10-27-2003 12:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration