LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 05-12-2005, 06: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, 09:19 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
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, 10: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, 12:41 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: Kennesaw, GA
Distribution: Ubuntu
Posts: 8,502

Rep: Reputation: 110Reputation: 110
can i ask why you want to deny those, just for my own curiousity?
 
Old 05-13-2005, 02: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
Trackbacks are Off
Pingbacks are On
Refbacks are 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-13-2004 11:18 PM
BIND and /etc/hosts + NAT kilou Linux - Networking 0 07-13-2004 07:02 PM
bind & resolve local hosts jingo_man Linux - Networking 7 07-08-2004 02:56 PM
running BIND + new hosts in db.outside = insuffecient info andzerger Linux - Networking 0 03-08-2004 11:05 AM
I cant make out bind errorsHi alaios Linux - Networking 1 10-26-2003 11:15 PM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration