LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-15-2004, 02:18 AM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
bind refresh?


Hi!

I wonder how do I control a caching DNS refresh period? And how do I find out when will it purge or refresh records?

Thanks.
 
Old 12-15-2004, 03:43 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
It uses the TTL value from the dns records it finds..

The default is usually 3 days, but it can be adjusted..
There are 6 values..

See http://langfeldt.net/DNS-HOWTO/BIND-...O-7.html#ss7.5
 
Old 12-16-2004, 03:15 AM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Thanks for the pointer. Will look into it.

Another question on caching DNS.

Let's say I am behind a firewall. And the only DNS I am able to access to is the one in the network. Not those main DNS in the Internet.

Where do I put the information? /var/named/named.local or /var/named/named.ca or whatelse? And how should it look like?
 
Old 12-16-2004, 07:50 AM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
I'm not sure I understand what you are trying to do..

To add dns records manually to the caching dns server in your network?

To add records for just one pc to use (Linux or M$ ?)

To stop the caching dns server from looking into the internet for a record?
 
Old 12-16-2004, 09:24 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
For the machine client you just put the LAN nameserver IP in /etc/resolv.conf
 
Old 12-16-2004, 07:32 PM   #6
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by peter_robb

To stop the caching dns server from looking into the internet for a record?
YES!

Ask it to look at the LAN DNS instead.
 
Old 12-16-2004, 07:34 PM   #7
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Posts: 1,210

Original Poster
Blog Entries: 4

Rep: Reputation: 45
Quote:
Originally posted by Cedrik
For the machine client you just put the LAN nameserver IP in /etc/resolv.conf
I do not want to depend on the LAN DNS as it is VERY VERY fragile and unstable. I want to have my own DNS on my machine.
 
Old 12-17-2004, 01:44 AM   #8
cidrolin
Member
 
Registered: Jul 2004
Distribution: Fedora c2
Posts: 89

Rep: Reputation: 15
the question is : will the FW allow dns requests to reach the outside world when they originate from your machine ? If I had set up this FW it wouldn't...
 
Old 12-17-2004, 04:20 AM   #9
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Even if you have your own caching nameserver on your pc, eg dnsmasq,
it will still only be able to talk to your LAN's dns server..

It will be faster for some cached requests but will have to talk to the LAN server to get fresh records..
You can enter records manually as well ...
 
  


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
automatic refresh nanoprobe Linux - General 2 07-11-2005 09:24 AM
refresh rates in X mrvikki Linux - Newbie 3 07-22-2004 11:28 AM
How do I revert to Bind 8 from Bind 9? digging4roots Linux - Newbie 3 06-08-2002 04:40 PM
To 'Bind' or not to 'Bind' that is the question jsurgeson Linux - Newbie 2 03-24-2002 03:10 AM
refresh toma Linux - General 17 08-08-2001 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:14 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
Open Source Consulting | Domain Registration