LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-13-2012, 02:34 AM   #1
junix57
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Rep: Reputation: Disabled
Question Bind : Zone forward type without cache


Hello,

We currently have two separate dns servers due to migration.
The first runs in 129.200.0.0 toto.lu
the second manages tata.ad in 10.10.0.0

in the named.conf toto.lu

Code:
zone "tata.ad" in {
        type forward;
        forward only;
If I search from the dns which manages toto.lu
tortue.tata.ad -> 10.10.1.23 it returns me the correct one ip.

The problem is that toto.lu keeps a cache of my request to the SOA tata.lu I guess.

So I change tortue.tata.ad -> 10.10.1.25

the dns server always returns me toto.lu tortue.tata.ad -> 10.10.1.23
unless I force a flush rndc

there is there a way to say that for the area toto.ad there is no cache or it must forward the request?

I think to add in my options bind : additional-from-cache no ;
It's correct ?

thank you, Jerome
 
Old 02-13-2012, 03:30 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

I think you need to use max-cache-ttl and max-ncache-ttl with appropriate small values. Note that the values are in seconds.

Regards
 
Old 02-13-2012, 04:05 AM   #3
junix57
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
In default we have :

expiry time : 604800 (168hr)
refresh time : 21600 (6hr)
domain retry time : 3600 (1hr)
default TTL : 86400 (24hr)
Negative Cache TTL : 600 (10min)

For example, just modify :
default TTL : 3600 (1hr)
Negative Cache TTL : 60 (1min)
 
Old 02-13-2012, 05:24 AM   #4
junix57
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
What is risk if I modify for this :

default TTL : 60 (1 min)
Negative Cache TTL : 60 (1min)
 
Old 02-13-2012, 05:58 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by junix57 View Post
What is risk if I modify for this :

default TTL : 60 (1 min)
Negative Cache TTL : 60 (1min)
There is no risk. The record will remain in client's cache for one minute and then it will expire.
Of course after migration you should use a value like 86400 (1d)
 
Old 02-14-2012, 02:12 AM   #6
junix57
LQ Newbie
 
Registered: Feb 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Wink

Thanks for your explain :-)
 
  


Reply



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
[SOLVED] problem with dns forward lookup zone uppalagayatri Linux - Newbie 1 03-09-2011 12:08 AM
BIND forward zone working reverse not working n03x3c Linux - Server 1 07-03-2010 04:52 AM
Zone forward in solaris dns shan_nathan Solaris / OpenSolaris 1 05-01-2009 04:53 PM
BIND forward zone OK, reverse zone NOT OK! n03x3c Linux - Server 2 11-05-2008 10:31 PM
Forward of subdomain zone with BIND 9.2.3 geroq Linux - Networking 0 03-06-2006 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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