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. |
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 |
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? |
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? |
For the machine client you just put the LAN nameserver IP in /etc/resolv.conf
|
Quote:
Ask it to look at the LAN DNS instead. |
Quote:
|
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...
|
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 ... |
All times are GMT -5. The time now is 06:36 PM. |