i was thinking if is it possible to cache some urls in bind? I just want to do when you send the command "ping domain.com" even if you are disconnected to the internet it will still resolve the ip of domain.com -- Regards, Mark Quitoriano, CCNA http://www.atamanetworks.com
El lun, 09-05-2005 a las 20:53 +0800, Mark Quitoriano escribi?:> i was thinking if is it possible to cache some urls in bind?AFAIK no way, Bind doesn't have nothing to do with URLS> I just > want to do when you send the command "ping domain.com" even if you are > disconnected to the internet it will still resolve the ip of > domain.com >AFAIK this kind of behaviour is not possible with BIND, the way to accomplish this is just use /etc/hosts. Of course is not a very elegant solution if you have a lot of machines. I'm wrong ? TIA -- Hardy Beltran Monasterios hardy at acm dot org Usuario Linux #50949 - http://counter.li.org La Paz, Bolivia
Patrick Lawrence - CentOS Lists
2005-May-10 06:04 UTC
[CentOS] bind and caching-nameserver
> i was thinking if is it possible to cache some urls in bind?As somebody else said, BIND doesn't cache URLs, but I suspect you are asking if it will cache zones. Yes, it will.> I just > want to do when you send the command "ping domain.com" even if you are > disconnected to the internet it will still resolve the ip of > domain.comSure. It will keep it as long as the SOA in the zone tells it to live. For most zones, this is one day. So, if you run a local caching nameserver and put 127.0.0.1 in your /etc/resolv.conf file it should be cached even if you are off-line. Regards, Pat -- "Let's Roll" - Todd Beamer
> -----Original Message----- > From: centos-bounces at centos.org [mailto:centos-bounces at centos.org] On > Behalf Of Mark Quitoriano > Sent: Tuesday, May 10, 2005 2:02 AM > To: CentOS mailing list > Subject: Re: [CentOS] bind and caching-nameserver > > well that's my problem with bind. once i cut myself to the internet i > can't resolve all domain. i did this as a test i ping google.com first > while i am connected to the net and then i disconnect my cable and try > to ping it again but it can't resolve google.com anymore, my > resolve.conf is "nameserver 127.0.0.1", and i don't know how to > configure bind to cache domain's ip addressess at least 1 day or so.There are a number of programs designed for this type of situation. pdnsd (http://www.phys.uu.nl/~rombouts/pdnsd.html) looks like it's just what you're looking for. If not, try searching for 'dns proxy', 'dns cache' or 'dns proxy cache' on freshmeat or google. -- Marc