Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
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.
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.
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:
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.
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
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:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.