LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-09-2007, 04:07 PM   #1
lord loh.
LQ Newbie
 
Registered: May 2007
Location: Lubbock, TX
Distribution: Slackware ubuntu Arch
Posts: 21

Rep: Reputation: 0
Slave zone for caching.


I just thought that creating a slave zone on my server for popular sites like google.com could save me bandwidth and improve the speed.

So I tried to create a slave zone using the system-config-bind tool

I first asked for the creation of a zone.
Specified it as class IN -> OK
Forwards -> OK
zone name -> google.com.

Then I specified the parameters for master zone servers as the IP addresses of ns1.google.com through ns4.google.com

Saved and service named restart.

And LO! google.com stopped working.

When I tried to preview the slave zone file, it was clean and empty. I tried to set the refresh time to a few seconds and restarted named in the hope that the slave would update from master in vain.

So I ultimately pruned the slave zone record to get google.com back.

Where could I have gone wrong?

Please help me.

Thank you.
 
Old 06-09-2007, 04:26 PM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Many websites will restrict their DNS servers transferring their zone information to other random name servers, such as yours. The reason being that it would be a security risk for Google and create excess zone transfers for Google.

Is your DNS getting flooded with queries that you need to create a caching only DNS? What you should do is either set up a proxy server which stores actual files to save on WAN bandwidth. DNS does not cache files, only name/IP resolution queries for X amount of time. If you had thousands of people in your LAN querying name/IP resolutions, then DNS caching would make sense.

Last edited by Micro420; 06-09-2007 at 04:31 PM.
 
Old 06-09-2007, 04:41 PM   #3
lord loh.
LQ Newbie
 
Registered: May 2007
Location: Lubbock, TX
Distribution: Slackware ubuntu Arch
Posts: 21

Original Poster
Rep: Reputation: 0
I only wanted to cache the resolutions... It was just the paranoid in me that prompted me to do so. I do not have any problem of DNS being flooded with queries.

;-) I have got just 8 systems on my LAN... I was just being paranoid...:-D
 
Old 06-09-2007, 08:40 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
If you just want to cache the name resolutions, then all you need to do is install a simple DNS (BIND) server. No need to do anything else. By default, the DNS server will cache and store name resolutions for 60 minutes. You can increase this value if you want to store it in cache longer. Additionally, I believe your local Linux system also caches name resolutions, at least on Windows OS's they cache name resolutions locally.

With 8 systems on your LAN, I don't think you have to worry about query congestions against your local or ISP's name servers.
 
  


Reply

Tags
cache, dns, slave


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
Disappearing slave zone arktik Linux - Networking 0 03-13-2007 05:33 PM
HELP: slave DNS is not updating Zone FIle from Master Cypher12 Linux - Networking 2 09-12-2006 07:12 PM
BIND Slave server never gets zone transfer from master. HELP!! quackking Linux - Networking 2 08-30-2006 01:54 PM
bind slave zone macadam Linux - Networking 3 03-03-2005 02:46 PM
Bind DNS Slave zone macadam Linux - Networking 2 03-02-2005 07:49 AM


All times are GMT -5. The time now is 09:23 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