From: Xavier Maillard <zedek@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: DNS problem
Date: Wed, 27 Sep 2006 01:15:39 +0200 [thread overview]
Message-ID: <17689.46235.199992.634206@zogzog.gnu-rox.org> (raw)
In-Reply-To: barmar-A4FC55.01085826092006@comcast.dca.giganews.com
On Tuesday, 26 September 2006, Barry Margolin wrote:
> In article <mailman.7391.1159211762.9609.help-gnu-emacs@gnu.org>,
> Xavier Maillard <zedek@gnu.org> wrote:
>
> > On Saturday, 23 September 2006, William Xu wrote:
> > > Hi there,
> > >
> > > If DNS doesn't work before starting emacs, and after startup, i fix DNS
> > > problem. Then i find emacs still has DNS problem, e.g., it couldn't
> > > connect irc (using erc) or newsgroups by hostname. I restarted emacs, it
> > > works. Is this normal?
> >
> > That's a known "issue" (not to say bug) with the libc resolver. I
>
> By default, the resolver only reads /etc/resolv.conf the first time it's
> used in a process, and it caches the settings from then on. So any
> long-lived processes always need to be restarted if you change this file
> and you want them to pick up the changes.
Before patching glibc (which is a non-trivial and may have side
effects on general glibc behaviour), you can "force" clients to
ack on resolv.conf changes by using the nscd command.
Ex: nscd -i hosts
This could be put in the script responsible to write your
/etc/resolv.conf for example. Or you can have a task watching for
resolv.conf timestamp and automatically call nscd when it changes.
Anyway, I opened a bug on bugs.gentoo.org[1] with a patch against
glibc-2.4. Note that libc-alpha do not want to do anything with
this and says to use nscd instead of this.
Footnotes:
[1] http://bugs.gentoo.org/show_bug.cgi?id=149124
--
CU Xavier
prev parent reply other threads:[~2006-09-26 23:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-23 7:09 DNS problem William Xu
2006-09-25 16:50 ` Xavier Maillard
2006-09-26 2:48 ` William Xu
[not found] ` <mailman.7391.1159211762.9609.help-gnu-emacs@gnu.org>
2006-09-26 5:08 ` Barry Margolin
2006-09-26 23:15 ` Xavier Maillard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17689.46235.199992.634206@zogzog.gnu-rox.org \
--to=zedek@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.