[asterisk-users] asterisk and DNS
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri Feb 6 08:12:23 CST 2009
On Fri, Feb 06, 2009 at 12:10:52PM +0000, Jan-Aage Frydenbø-Bruvoll wrote:
>
> Hi,
>
> nscd (name server caching daemon) is a part of most Linux
> distributions as well - maybe that'd help you if your DNS server is
> unstable.
The NSCD caches names from the name switch. Those names are not only
'hosts'. They can also be user names ('passwd') or just about anything
from /etc/nsswitch.conf .
However using it to cache hosts is considered a bad idea normally. IIRC
it is due to incorrect caching of bad replies.
ncsd.conf has the following:
# hosts caching is broken with gethostby* calls, hence is now disabled
# per default. See /usr/share/doc/nscd/NEWS.Debian.
enable-cache hosts no
And the NEWS file reads:
glibc (2.5-5) unstable; urgency=low
Since this release, hosts caching in nscd is off by default: for some of the
libc calls (gethostby* calls) nscd does not respect the DNS TTLs. It can
lead to system lockups (e.g. if you are using pam-ldap and change the IP of
your authentication server) hence is not considered safe.
See debian bug #335476 and how upstream answered to that in
http://sourceware.org/bugzilla/show_bug.cgi?id=4428.
-- Pierre Habouzit <madcoder at debian.org> Sat, 28 Apr 2007 11:10:56 +020
>
> Best regards
> Jan
>
> > Julian Lyndon-Smith wrote:
> > > We've just had the problem where our DNS server went down, and * started
> > > to act "funny".
> > >
> > > Is the best solution to install a local DNS server on the * box, and
> > > have no other DNS servers ? - this is an internal app, no need for any
> > > external DNS resolution at all.
> > >
> > > Julian.
>
>
> _________________________________________________________________
> Love Hotmail? Check out the new services from Windows Live!
> http://clk.atdmt.com/UKM/go/132630768/direct/01/
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen at xorcom.com
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list