From: Steinar Bang <sb@dod.no>
Subject: Re: nntp problems with hibernating and waking up in a new network
Date: Tue, 13 Dec 2005 13:34:21 +0100 [thread overview]
Message-ID: <87k6e9qipe.fsf@dod.no> (raw)
In-Reply-To: <87hd9em007.fsf@obelix.mork.no>
>>>>> Bjørn Mork <bmork@dod.no>:
> The main problem when doing this is that emacs (or libc?) will cache
> DNS resolvers for you, and these probably won't work in your new
> network environment. Therefore there is no nntp traffic, only
> unanswered DNS queries.
I thought it might be something like this, but I had hoped it was in
the lisp code in the nntp backend, since nnimap worked.
However...
> Can't explain why the nnimap sessions work. Maybe they are using
> some external process to set up the connection, e.g a ssh tunnel?
That is indeed the case. That is, not an SSH tunnel, but as NNIMAPS
using the "openssl" executable.
> Never found a good solution to the cached DNS resolver problem.
> Note that is isn't confined to emacs. The same problem applies to
> most applications running forever without mechanisms for reloading
> /etc/resolv.conf, like most browsers.
Actually, my browsers survive. I used to have a problem with a
similar situation in Opera, when I went on VPN using PPTP, and back
(this changed the /etc/resolv.conf file but the browser didn't keep
track).
But with recent versions of Opera, this problem has gone away.
> Personally I resorted to running BIND locally on the laptop...
That won't work for me, because this would confuse the PPTP client, I
think. Or perhaps I could just list all DNS clients at work and at
home, and let BIND sort them out?
But if so, what happens when I go online in a different network where
I'm passed a name server with the DHCP lease?
I'm thinking of a simple workaround, which would be to use an
intermediate connection like nntp-open-via-rlogin-and-telnet or
something. But instead of connecting to a remote machine, just use
the current machine.
The idea here is to "misuse" the indirection to fork off a new process
that would actually read /etc/resolv.conf.
We'll see.
next prev parent reply other threads:[~2005-12-13 12:34 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-12 10:02 Steinar Bang
2005-12-12 15:56 ` Simon Josefsson
2005-12-12 17:29 ` Steinar Bang
2005-12-13 16:33 ` Simon Josefsson
2005-12-13 18:51 ` Adrian Aichner
2005-12-13 19:19 ` Steinar Bang
2005-12-14 14:15 ` Simon Josefsson
2005-12-14 20:21 ` Steinar Bang
2005-12-15 10:48 ` Simon Josefsson
2005-12-13 18:57 ` Steinar Bang
2005-12-12 16:53 ` Jesper Harder
2005-12-12 17:22 ` Steinar Bang
2005-12-12 22:19 ` Bjørn Mork
2005-12-13 12:34 ` Steinar Bang [this message]
2005-12-13 14:00 ` Steinar Bang
2005-12-13 16:33 ` Steinar Bang
2005-12-13 19:24 ` Steinar Bang
2006-01-18 11:35 ` gmane spam reporting problems moving between networks (Was: nntp problems with hibernating and waking up in a new network) Steinar Bang
2006-01-19 10:13 ` gmane spam reporting problems moving between networks Simon Josefsson
2006-08-02 19:38 ` gmane spam reporting problems moving between networks (Was: nntp problems with hibernating and waking up in a new network) Steinar Bang
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=87k6e9qipe.fsf@dod.no \
--to=sb@dod.no \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).