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
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
oh ok, so what dns server can do that? djbdns?
On 5/10/05, Hardy Beltran Monasterios hardy@hardy.com.bo wrote:
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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
* On Tue, May 10, 2005 at 01:43:39PM +0800 Mark Quitoriano wrote:
oh ok, so what dns server can do that? djbdns?
Just what are you trying to accomplish? Do you really need to be able to resolve a hostname if you do not have Internet connectivity?
Although not always administered properly, there is a reason for TTL values for RR's. Caching these values beyond the intended TTL could cause issues.
Mark
it was requested by client so even if they were disconnected they can resolve ip address.
On 5/10/05, Mark Frank mark@mark-and-erika.com wrote:
- On Tue, May 10, 2005 at 01:43:39PM +0800 Mark Quitoriano wrote:
oh ok, so what dns server can do that? djbdns?
Just what are you trying to accomplish? Do you really need to be able to resolve a hostname if you do not have Internet connectivity?
Although not always administered properly, there is a reason for TTL values for RR's. Caching these values beyond the intended TTL could cause issues.
Mark
"The fix is only temporary...unless it works." - Red Green _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
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.com
Sure. 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
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.
On 5/10/05, Patrick Lawrence - CentOS Lists xxagGxOGLGlkHPZkvyxc@patsoffice.com wrote:
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.com
Sure. 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
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
I have been using gPHPedit for a few weeks now, and I am most pleased with it.
Needlessly to say, I have associated the .php extension with gPHPedit, such that PHP files open in gPHPedit upon double clicking them from the file browser.
Alright, all swell, however, each file opens in a new gPHPedit instantiation, whereas I'd like the very first one to open gPHPedit and open the file, and all subsequent ones to just be opened in a new tab in the existing gPHPedit thread (just like Ultraedit does under W*nd*ws).
Does anyone know how to achieve this?
Cheers, Olafo
On Tue, 10 May 2005, Mark Quitoriano wrote:
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.
IMO, it's a feature, not a bug, that bind honors the TTL settings of remote name servers. Google, for instance, tends to assign unusually short TTLs to its DNS entries:
$ dig www.google.com +noall +answer www.google.com. 900 IN CNAME www.l.google.com. www.l.google.com. 300 IN A 66.102.7.147 www.l.google.com. 300 IN A 66.102.7.99 www.l.google.com. 300 IN A 66.102.7.104
Google is telling remote name servers to cache the 'www.google.com' entry (which is just a CNAME) for 15 minutes and the actual addresses of its web servers for only 5 minutes.
That's why bind won't cache it for an entire day.
I suppose that you could hack named so that it ignores remote TTL requests, but my hunch is that you won't get any sympathy when you complain that now your name server has begun misbehaving... :-)
--Paul Heinlein heinlein@madboa.com
El mar, 10-05-2005 a las 15:01 +0800, Mark Quitoriano escribió:
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.
The true is that you don't have control of that. As somebody else said, BIND will caching any RR (Resource Record) based on their TTL value. You have control of this value (TTL) only if you are the owner of the zone. And of course your are not the owner of the zone «google.com».
Maybe you would like to read this: http://www.zytrax.com/books/dns/
Kindly regards