[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[leafnode-list] Re: hostname
- To: leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
- Subject: [leafnode-list] Re: hostname
- From: James Cloos <cloos+leafnode@xxxxxxxxxxx>
- Date: Mon, 01 Aug 2011 19:17:02 -0400
- Authentication-results: krusty.dt.e-technik.uni-dortmund.de (amavisd-new); dkim=pass header.i=@jhcloos.com
- Copyright: Copyright 2011 James Cloos
- Delivery-date: Tue, 02 Aug 2011 01:24:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=eagle; t=1312241082; bh=0VFyws2Wnt8JLSw3lcJq+MpGcYmL2BS8FZhFikZLXDo=; h=From:To:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=LZLZAjnMaCOArv/UzPSVW9zvzrEAuMymBABNg04oNIVzH/obhUCtHfWeCfxok6y9r yPTksQgH5KgSt5lcsMWc/q3Up28l38kMaOK+rLmWGSYBp9N+KVvrV0I8wOLna4FLW5 fBgbRVhNKLeUkxDXZ44cFC5hcy39DssUxY1RzmOg=
- Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC
- List-id: Leafnode NNTP Server - Support and Technical discussions <leafnode-list.dt.e-technik.uni-dortmund.de>
- Openpgp: ED7DAEA6; url=http://jhcloos.com/public_key/0xED7DAEA6.asc
- Openpgp-fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6
- Sender: leafnode-list-bounces+list01=leafnode.de@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
- User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)
It turns out that leafnode checks the output of gethostname(2) for a
fqdn before doing anything else, so the hostname in the config file
provides no help in avoiding that failure.
I don't have a good explanation for why the value reported by glibc's
implementation of gethostname(2) has changed on this box. I've always
set the node name to an unqualified hostname, as doing otherwise causes
name lookups to check the request in the node name's domain name before
checking in ., which is a(n often painful) waste of time.
For now I kludged a fix in miscutil.c:whoami() to set the real hostname
before calling is_validfqdn().
Longer term leafnode needs to honour the hostname setting in the config file.
-JimC
--
James Cloos <cloos@xxxxxxxxxxx> OpenPGP: 1024D/ED7DAEA6
--
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/