Article View: news.software.nntp
Article #80283Re: HOWTO change IPs of a productive server, smoothly?
From: Russ Allbery
Date: Sun, 08 Mar 2009 21:31
Date: Sun, 08 Mar 2009 21:31
40 lines
3338 bytes
3338 bytes
Michael Grimm <trashcan@odo.in-berlin.de> writes:
> Yes. But I have been referring to incoming.conf. Sending articles to a
> peer will be rapidly recognized when it comes to an IP change, but
> receiving articles means reloading incoming.conf which is a default
> setup in crontab on those platforms I did run INN sofar: Slackware,
> IRIX, Debian, FreeBSD. But, I have been taught that it might not a good
> idea to reload incoming.conf every night (DNS hickups and alike).
>
> It would be a nice addon to innfeed, if one could propagate IP changes
> to peers using the established and accepted old IP.
That's really not the right fix. We already have a protocol for
propagating IP address changes: it's called DNS. :)
The problem is that INN is incorrectly caching DNS records for too long,
ignoring the TTL. This, in turn, is because unless you assume DNS is the
resolver method and are willing to bypass any other name resolution (such
as /etc/hosts or YP), you have to use an interface to do DNS lookups that
blocks, which means that innd cannot safely do a DNS lookup for each
incoming connection without running the risk of blocking for quite some
time on lame DNS servers.
The right solution is to externalize DNS lookups into a helper program and
hook that into innd's main processing loop as a special channel. Then, on
a new connection, innd would dispatch a DNS lookup to its helper process
and then put the incoming connection to sleep until it gets a DNS reply,
at which point it would wake up the NNTP channel and take the appropriate
authorization action based on the DNS reply.
The reason why this hasn't been done yet is that it's a non-trivial amount
of work that requires a fairly good understanding of innd's internals. I
estimate it would take me about eight hours to write and test, and I doubt
I'll have the time any time soon.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87zlfvsnu9.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news2.euro.net!nx01.iad.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!newsfeed.stanford.edu!news.stanford.edu!not-for-mailReferences:
<gos3dm$21ju$1@de-l.enfer-du-nord.net> <gosb7u$179$1@aux.snarked.org> <gp1b9f$cg7$1@de-l.enfer-du-nord.net>Show Full Headers
Complete Article Headers
Message-ID: <87zlfvsnu9.fsf@windlord.stanford.edu> Subject: Re: HOWTO change IPs of a productive server, smoothly? Date: Sun, 08 Mar 2009 14:31:58 -0700 From: Russ Allbery <rra@stanford.edu> References: <gos3dm$21ju$1@de-l.enfer-du-nord.net> <gosb7u$179$1@aux.snarked.org> <gp1b9f$cg7$1@de-l.enfer-du-nord.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news2.euro.net!nx01.iad.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!transit4.readnews.com!panix!newsfeed.stanford.edu!news.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 40 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.stanford.edu 1236547918 12954 171.67.225.134 (8 Mar 2009 X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:3ub9YGEOXjv/li4uXZBN/Hxr7vY=