From owner-freebsd-questions Tue Jul 28 10:50:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA01836 for freebsd-questions-outgoing; Tue, 28 Jul 1998 10:50:06 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from postoffice.onu.edu (postoffice.onu.edu [140.228.10.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA01758 for ; Tue, 28 Jul 1998 10:49:42 -0700 (PDT) (envelope-from r-beer@onu.edu) Received: from [140.228.15.35] (asterion.onu.edu [140.228.15.35]) by postoffice.onu.edu (8.8.5/8.8.5) with ESMTP id NAA00551; Tue, 28 Jul 1998 13:48:51 -0400 (EDT) Message-Id: In-Reply-To: <002f01bdb679$3adcf860$3a3d31cc@electron.nuc.net> References: <19980723111237.H8993@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Tue, 28 Jul 1998 13:49:48 -0400 To: "Jaime Bozza" , "Greg Lehey" From: Robert Beer Subject: RE: Strange Reverse DNS problem. Cc: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 4:34 PM -0400 7/23/1998, Jaime Bozza wrote: >> > will show the hostnames fine, but last shows IP addresses. (Not for >> > everything though. Some IPs in last are shown correctly as >> hostnames while >> > others are just IPs) >> > >> > Any idea what could be wrong? >> >> This looks like a problem with last(1). I get it as well. > >That's good to know. At least I'm not going crazy. Anyone else with >the same problem? I think I'll go take a look at last and see if I can >notice anything. I believe this is login.c where the the length of the FQDN of the host is greater than 16 characters. Rather than truncate the name, a reverse dns lookup is done and the IP address is printed. Another case is where the name is larger than the field and the reverse lookup (no reverse map or a dns config error) fails the you get "invalid hostname". Take a look at PR bin/4497 and the reply. If you make the change I suggest you set up syslog.conf with a line to log auth.info: auth.info /var/log/login.log --- Bob Beer Ohio Northern University, Academic Computer Services, Ada, OH 45810 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message