LinuxQuestions.org
Visit Jeremy's Blog.
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 10-28-2003, 01:44 PM   #1
ullas
LQ Newbie
 
Registered: Oct 2003
Posts: 8

Rep: Reputation: 0
need help to set up caching only dns server to with bogus DNS entries


hi everyone..
i'ma a newbee to this site.
i'm managing a small campus . i need to setup a .caching only dns server which will give bogus DNS lookups for some chat sites & email sites..basicaly to conserv bandwidth.
How do i do it.
it can be done by squid..but due to some site policy i cant not do it.so i want the caching only dns server to doit.
Thanks
Ullas
 
Old 10-28-2003, 02:54 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 69
Well you could do this with a name server to do this (BTW if you're claiming to give answers for certain zones, it's not considered "caching-only") but in order to make it effective you would need to force all your users to only query that server, by using firewall rules. If you don't restrict queries, they can just point to an outside DNS server and everything voided.

Your site policy would seem to be very misguided since the above is essentially what Squid would do (by restricting http traffic to only go through Squid). I suppose the difference is that by default Squid will store information about the http requests while BIND will not (unless you use the logging option to log queries).

Any way...

If you install any of the pre-built BIND packages for Linux, you should get a chaching server right out of the box (you'll need a /etc/named.conf and a root.hints file, which is some times renamed to various things). From there, you can just add various ZONE statements to your named.conf so you claim to be authoritative for a particular zone, then setup a db.yahoo.com file, etc and put the bogus entries in there which resolve to 127.0.0.1, or whatever floats your boat.

Note that if you claim to be authoritative for a particular zone, you will "break" that zone entirely.
 
  


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
DNS Caching Server Itsu Linux - Networking 2 10-07-2004 12:49 AM
Temporary DNS Caching server egurski Linux - Networking 1 08-12-2004 11:28 PM
DNS still slow after installing caching DNS mooreted Linux - Networking 16 01-01-2004 01:18 AM
No IP and Caching DNS server fmertus Linux - Networking 2 06-27-2003 01:33 PM
Caching Name-server and DNS forwarding Pauly Linux - Networking 0 09-20-2002 03:13 PM


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

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