public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] local caching DNS?
@ 2008-04-09 10:13 Ralf Stephan
  2008-04-09 10:26 ` Michal 'vorner' Vaner
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Ralf Stephan @ 2008-04-09 10:13 UTC (permalink / raw
  To: gentoo-user

Hello,

I'm fed up with waiting for ever the same name requests from my
browser (and open servers don't cut it either): which DNS cache
or caching DNS for simple local installation would you recommend?

Regards,
ralf
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
@ 2008-04-09 10:26 ` Michal 'vorner' Vaner
  2008-04-09 10:45   ` Andrew Gaydenko
  2008-04-09 15:01   ` Ralf Stephan
  2008-04-09 10:27 ` Neil Bothwick
                   ` (4 subsequent siblings)
  5 siblings, 2 replies; 15+ messages in thread
From: Michal 'vorner' Vaner @ 2008-04-09 10:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 550 bytes --]

Hello

On Wed, Apr 09, 2008 at 12:13:40PM +0200, Ralf Stephan wrote:
> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?

I use dnsmasq, can be used as a LAN cache too (by simply allowing
requests from a given interface). Took me about 30 minutes to configure.
I asked dhcp to save to resolv.conf.2 and made resolv.conf to request
from localhost.

-- 
~, sweet ~

Michal 'vorner' Vaner

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
  2008-04-09 10:26 ` Michal 'vorner' Vaner
@ 2008-04-09 10:27 ` Neil Bothwick
  2008-04-09 11:22 ` AG
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2008-04-09 10:27 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 370 bytes --]

On Wed, 9 Apr 2008 12:13:40 +0200, Ralf Stephan wrote:

> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?

net-dns/dnsmasq


-- 
Neil Bothwick

Deja Foobar: A feeling of having made the same mistake before.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:26 ` Michal 'vorner' Vaner
@ 2008-04-09 10:45   ` Andrew Gaydenko
  2008-04-09 11:01     ` Michal 'vorner' Vaner
  2008-04-09 15:01   ` Ralf Stephan
  1 sibling, 1 reply; 15+ messages in thread
From: Andrew Gaydenko @ 2008-04-09 10:45 UTC (permalink / raw
  To: gentoo-user

======= On Wednesday 09 April 2008, Michal 'vorner' Vaner wrote: =======
> Hello
>
> On Wed, Apr 09, 2008 at 12:13:40PM +0200, Ralf Stephan wrote:
> > I'm fed up with waiting for ever the same name requests from my
> > browser (and open servers don't cut it either): which DNS cache
> > or caching DNS for simple local installation would you recommend?
>
> I use dnsmasq, can be used as a LAN cache too (by simply allowing
> requests from a given interface). Took me about 30 minutes to
> configure. I asked dhcp to save to resolv.conf.2 and made resolv.conf
> to request from localhost.

What about permanent (with saving to hdd) caching? It seems like pdnsd 
do this thing only...
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:45   ` Andrew Gaydenko
@ 2008-04-09 11:01     ` Michal 'vorner' Vaner
  2008-04-09 12:15       ` Andrew Gaydenko
  0 siblings, 1 reply; 15+ messages in thread
From: Michal 'vorner' Vaner @ 2008-04-09 11:01 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

Hello

On Wed, Apr 09, 2008 at 02:45:18PM +0400, Andrew Gaydenko wrote:
> > On Wed, Apr 09, 2008 at 12:13:40PM +0200, Ralf Stephan wrote:
> > > I'm fed up with waiting for ever the same name requests from my
> > > browser (and open servers don't cut it either): which DNS cache
> > > or caching DNS for simple local installation would you recommend?
> >
> > I use dnsmasq, can be used as a LAN cache too (by simply allowing
> > requests from a given interface). Took me about 30 minutes to
> > configure. I asked dhcp to save to resolv.conf.2 and made resolv.conf
> > to request from localhost.
> 
> What about permanent (with saving to hdd) caching? It seems like pdnsd 
> do this thing only...

Does not seem to matter here much, since I suspend, not turn off. But
anyway, most DNS names should be cached only few hours, half a day or so
(well, there are some that have week long timeouts, but not many).

-- 
chown -R us $BASE

Michal 'vorner' Vaner

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
  2008-04-09 10:26 ` Michal 'vorner' Vaner
  2008-04-09 10:27 ` Neil Bothwick
@ 2008-04-09 11:22 ` AG
  2008-04-09 11:29 ` Urs Schuetz
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 15+ messages in thread
From: AG @ 2008-04-09 11:22 UTC (permalink / raw
  To: gentoo-user

Ralf Stephan ha scritto:
> Hello,
>
> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?
>
> Regards,
> ralf
>   
what about dnscache of djbdns tools?
took 2 minutes to setup via dnscache-setup script.

andrea
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Nuova offerta SKY:Vedi tutto SKY a 15€ al mese per 2 mesi: non perdere l'offerta!
* Solo con SKY puoi avere così tanto per così poco!
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7765&d=9-4
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
                   ` (2 preceding siblings ...)
  2008-04-09 11:22 ` AG
@ 2008-04-09 11:29 ` Urs Schuetz
  2008-04-09 17:35 ` [gentoo-user] " 7v5w7go9ub0o
  2008-04-09 22:44 ` [gentoo-user] " Mark Kirkwood
  5 siblings, 0 replies; 15+ messages in thread
From: Urs Schuetz @ 2008-04-09 11:29 UTC (permalink / raw
  To: gentoo-user

On Wed, 09 Apr 2008, Ralf Stephan wrote:

> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?

I'm using the DNS of my router (D-Link DSL-500G). Works without client side installations.

Urs
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 11:01     ` Michal 'vorner' Vaner
@ 2008-04-09 12:15       ` Andrew Gaydenko
  2008-04-09 16:59         ` kashani
  0 siblings, 1 reply; 15+ messages in thread
From: Andrew Gaydenko @ 2008-04-09 12:15 UTC (permalink / raw
  To: gentoo-user

Hi!
======= On Wednesday 09 April 2008, you wrote: =======
...
>
> Does not seem to matter here much, since I suspend, not turn off. But
> anyway, most DNS names should be cached only few hours, half a day or
> so (well, there are some that have week long timeouts, but not many).

Not sure I have noticed drawbacks of using a permanent cache during few 
years - probably I use too stable net resources  :-)
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:26 ` Michal 'vorner' Vaner
  2008-04-09 10:45   ` Andrew Gaydenko
@ 2008-04-09 15:01   ` Ralf Stephan
  2008-04-09 17:12     ` Neil Bothwick
  1 sibling, 1 reply; 15+ messages in thread
From: Ralf Stephan @ 2008-04-09 15:01 UTC (permalink / raw
  To: gentoo-user

vorner wrote 
> I use dnsmasq, can be used as a LAN cache too (by simply allowing
> requests from a given interface). Took me about 30 minutes to configure.
> I asked dhcp to save to resolv.conf.2 and made resolv.conf to request
> from localhost.

OK this works fine, thanks. However, udhcpd cannt be coaxed to
write the servers to the new file, am I missing something?

But it's not too bad, I don't reboot often.


Thanks for all the answers (and questions ;)
ralf
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 12:15       ` Andrew Gaydenko
@ 2008-04-09 16:59         ` kashani
  0 siblings, 0 replies; 15+ messages in thread
From: kashani @ 2008-04-09 16:59 UTC (permalink / raw
  To: gentoo-user

Andrew Gaydenko wrote:
> Hi!
> ======= On Wednesday 09 April 2008, you wrote: =======
> ...
>> Does not seem to matter here much, since I suspend, not turn off. But
>> anyway, most DNS names should be cached only few hours, half a day or
>> so (well, there are some that have week long timeouts, but not many).
> 
> Not sure I have noticed drawbacks of using a permanent cache during few 
> years - probably I use too stable net resources  :-)

	As an admin that occasionally has cause to shift traffic between coasts 
for maintenance I hate *hate* anything that ignores my TTLs and consider 
such software broken and bane upon our fair Internet.

kashani
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 15:01   ` Ralf Stephan
@ 2008-04-09 17:12     ` Neil Bothwick
  0 siblings, 0 replies; 15+ messages in thread
From: Neil Bothwick @ 2008-04-09 17:12 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 608 bytes --]

On Wed, 9 Apr 2008 17:01:33 +0200, Ralf Stephan wrote:

> > I use dnsmasq, can be used as a LAN cache too (by simply allowing
> > requests from a given interface). Took me about 30 minutes to
> > configure. I asked dhcp to save to resolv.conf.2 and made resolv.conf
> > to request from localhost.  
> 
> OK this works fine, thanks. However, udhcpd cannt be coaxed to
> write the servers to the new file, am I missing something?

dnsmasq can also operate as a DHCP server, so you don't need to use a
separate one.


-- 
Neil Bothwick

Things which must be shipped together as a set, aren't.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-user] Re: local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
                   ` (3 preceding siblings ...)
  2008-04-09 11:29 ` Urs Schuetz
@ 2008-04-09 17:35 ` 7v5w7go9ub0o
  2008-04-09 17:54   ` Uwe Thiem
  2008-04-09 22:44 ` [gentoo-user] " Mark Kirkwood
  5 siblings, 1 reply; 15+ messages in thread
From: 7v5w7go9ub0o @ 2008-04-09 17:35 UTC (permalink / raw
  To: gentoo-user

Ralf Stephan wrote:
> Hello,
> 
> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?
> 

consider maradns <http://www.maradns.org/changelog.html>

- It is a recursive dns client/server (and authoritative server if 
desired), described in Portage as "Proxy DNS server with permanent caching>.

- It is extremely fast

- It avoids your ISP's DNS server entirely (your ISP's server may be out 
of date; poisoned; very slow; etc.)

- Download the current version from the web page, as the ebuild is out 
of date (sigh... of course).

HTH
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] Re: local caching DNS?
  2008-04-09 17:35 ` [gentoo-user] " 7v5w7go9ub0o
@ 2008-04-09 17:54   ` Uwe Thiem
  2008-04-09 18:26     ` 7v5w7go9ub0o
  0 siblings, 1 reply; 15+ messages in thread
From: Uwe Thiem @ 2008-04-09 17:54 UTC (permalink / raw
  To: gentoo-user

On Wednesday 09 April 2008, 7v5w7go9ub0o wrote:
> Ralf Stephan wrote:
> > Hello,
> >
> > I'm fed up with waiting for ever the same name requests from my
> > browser (and open servers don't cut it either): which DNS cache
> > or caching DNS for simple local installation would you recommend?
>
> consider maradns <http://www.maradns.org/changelog.html>
>
> - It is a recursive dns client/server (and authoritative server if
> desired), described in Portage as "Proxy DNS server with permanent
> caching>.

Wiht permanent caching? If it really does this, not honouring TTLs, 
it's crap. That said, I actually don't know whether they mean 
permanent when they say permanent. ;-)

Uwe

-- 
Informal Linux Group Namibia:
http://www.linux.org.na/
SysEx (Pty) Ltd.:
http://www.SysEx.com.na/
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* [gentoo-user] Re: local caching DNS?
  2008-04-09 17:54   ` Uwe Thiem
@ 2008-04-09 18:26     ` 7v5w7go9ub0o
  0 siblings, 0 replies; 15+ messages in thread
From: 7v5w7go9ub0o @ 2008-04-09 18:26 UTC (permalink / raw
  To: gentoo-user

Uwe Thiem wrote:
> On Wednesday 09 April 2008, 7v5w7go9ub0o wrote:
>> Ralf Stephan wrote:
>>> Hello,
>>>
>>> I'm fed up with waiting for ever the same name requests from my
>>> browser (and open servers don't cut it either): which DNS cache
>>> or caching DNS for simple local installation would you recommend?
>> consider maradns <http://www.maradns.org/changelog.html>
>>
>> - It is a recursive dns client/server (and authoritative server if
>> desired), described in Portage as "Proxy DNS server with permanent
>> caching>.
> 
> Wiht permanent caching? 

I don't know. I never found a reference to it in the documentation. I 
quoted portage because I thought it might make sense to others.

I'd *guess* that it means that it'll keep long-TTL records beyond a 
restart - i.e. it does not flush the cache at start up.


If it really does this, not honouring TTLs,
> it's crap. That said, I actually don't know whether they mean 
> permanent when they say permanent. ;-)


"When MaraDNS' recursive resolver receives a "host not there" reply, 
instead of using the SOA minimum of the "host not there" reply as the 
TTL (Look at RFC1034 §4.3.4), MaraDNS uses the TTL of the SOA reply.

MaraDNS keeps referral NS records in the cache for one day instead of 
the TTL specified by the remote server."

"MaraDNS recursive resolver treats any TTL shorter than min_ttl seconds 
(min_ttl_cname seconds when the record is a CNAME record) as if the TTL 
in question was min_ttl (or min_ttl_cname) seconds long when determining 
when to expire a record from MaraDNS' cache.

TTLs which are shorter than 20 seconds long are given a TTL of 20 
seconds; TTLs which are more than 63072000 (2 years) long are given a 
TTL of 2 years."


HTH
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [gentoo-user] local caching DNS?
  2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
                   ` (4 preceding siblings ...)
  2008-04-09 17:35 ` [gentoo-user] " 7v5w7go9ub0o
@ 2008-04-09 22:44 ` Mark Kirkwood
  5 siblings, 0 replies; 15+ messages in thread
From: Mark Kirkwood @ 2008-04-09 22:44 UTC (permalink / raw
  To: gentoo-user

I just use bind - setup to lookup from my ISP's nameservers and cache only.

The main reason for this was my ISP's ones are very slow (sometime 0.5 s 
to resolve!) - turning on the cache made an enormous difference to the 
perceived performance.

Cheers

Mark

Ralf Stephan wrote:
> Hello,
>
> I'm fed up with waiting for ever the same name requests from my
> browser (and open servers don't cut it either): which DNS cache
> or caching DNS for simple local installation would you recommend?
>
> Regards,
> ralf
>   

-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-04-09 22:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-09 10:13 [gentoo-user] local caching DNS? Ralf Stephan
2008-04-09 10:26 ` Michal 'vorner' Vaner
2008-04-09 10:45   ` Andrew Gaydenko
2008-04-09 11:01     ` Michal 'vorner' Vaner
2008-04-09 12:15       ` Andrew Gaydenko
2008-04-09 16:59         ` kashani
2008-04-09 15:01   ` Ralf Stephan
2008-04-09 17:12     ` Neil Bothwick
2008-04-09 10:27 ` Neil Bothwick
2008-04-09 11:22 ` AG
2008-04-09 11:29 ` Urs Schuetz
2008-04-09 17:35 ` [gentoo-user] " 7v5w7go9ub0o
2008-04-09 17:54   ` Uwe Thiem
2008-04-09 18:26     ` 7v5w7go9ub0o
2008-04-09 22:44 ` [gentoo-user] " Mark Kirkwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox