[Opera-Linux] Flushing the DNS cache?

Daniel Pittman daniel at rimspace.net
Fri Dec 19 12:18:35 UTC 2008


Eirik Byrkjeflot Anonsen <eirik at opera.com> writes:
> Kenneth Crudup <kenny at panix.com> writes:

[...]

>> I dunno if it's 'cause of the way y'all are using libresolv (or similar),
>> but it's appearing to take on the first DNS I use. Try it and see.
>
> I guess it is possible that the system resolver (which would be libc
> on linux, I think) caches the dns server address.  But even in that
> case, I would assume that it only caches it per application.
>
> I'd be very disappointed in the desktop team if they aren't leaving
> the whole job of dns resolution to the system resolver.  We do cache
> the addresses the dns server returns, but we should never have a
> reason to know what the address of the dns server itself is.

Well, if you cache the result yourself, and the team responsible for
that code have done a decent job, they *can't* use the libc resolver.

The default code doesn't return the TTL of results, just the result, so
to be able to implement a correct DNS cache you must talk DNS
directly...

Just sayin'
          Daniel



More information about the Opera-Linux mailing list