From owner-freebsd-current Sun Apr 5 23:05:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA01673 for freebsd-current-outgoing; Sun, 5 Apr 1998 23:05:38 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from wcc.wcc.net (wcc.wcc.net [208.6.232.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA01639 for ; Sun, 5 Apr 1998 23:05:24 -0700 (PDT) (envelope-from piquan@wcc.wcc.net) Received: from detlev.UUCP (tnt39.wcc.net [208.10.139.39]) by wcc.wcc.net (8.8.8/8.8.8) with ESMTP id AAA16227; Mon, 6 Apr 1998 00:58:06 -0500 (CDT) Received: (from joelh@localhost) by detlev.UUCP (8.8.8/8.8.8) id BAA02173; Mon, 6 Apr 1998 01:02:15 -0500 (CDT) (envelope-from joelh) Date: Mon, 6 Apr 1998 01:02:15 -0500 (CDT) Message-Id: <199804060602.BAA02173@detlev.UUCP> To: archer@lucky.net CC: H.Husic@Uni-Koeln.DE, current@FreeBSD.ORG In-reply-to: <199804052033.XAA09862@grape.carrier.kiev.ua> (message from Alexander Litvin on Sun, 5 Apr 1998 23:33:51 +0300 (EEST)) Subject: Re: lastlogs 'invalid hostname' From: Joel Ray Holveck Reply-to: joelh@gnu.org References: <199804052033.XAA09862@grape.carrier.kiev.ua> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> I have a decent problem with a 3.0-CURRENT machine here. >> [hhusic@dvpraktikum hhusic]$ w >> 5:13PM up 6:25, 9 users, load averages: 1.01, 1.03, 0.98 >> USER TTY FROM LOGIN@ IDLE WHAT >> rstevens p8 invalid hostname 5:11PM 1 -bash (bash) > In our case I found that "invalid hostname" is written by /usr/bin/login > when user comes from some address which resolves to some hostname which > in turn doesn't resolve. Wouldn't the Right Thing actually be to log the IP quad in that case instead, like it does with overly long hostnames? > I patched login not to write 'invalid hostname', but rather to > write as much of 'long.not.resolvable.host.name' as possible. > The patch is trivial. In our copious free time, we may want to actually change it to log 'long...host.name' instead. Normally, in my experience, I need either the TLD or the first name of a machine, and the rest is just fluff. If this seems to be useful to the others, I'll write a patch and submit a pr. Others? -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message