From owner-freebsd-questions Tue Sep 22 09:46:48 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA07308 for freebsd-questions-outgoing; Tue, 22 Sep 1998 09:46:48 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from pau-amma.whistle.com (s205m64.whistle.com [207.76.205.64]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA07293 for ; Tue, 22 Sep 1998 09:46:41 -0700 (PDT) (envelope-from dhw@whistle.com) Received: (from dhw@localhost) by pau-amma.whistle.com (8.8.8/8.8.7) id JAA15029; Tue, 22 Sep 1998 09:45:59 -0700 (PDT) (envelope-from dhw) Date: Tue, 22 Sep 1998 09:45:59 -0700 (PDT) From: David Wolfskill Message-Id: <199809221645.JAA15029@pau-amma.whistle.com> To: FreeBSD-Questions@FreeBSD.ORG, jfrodo42@hotmail.com Subject: Re: "invalid hostname" on "last" In-Reply-To: <19980922002118.3016.qmail@hotmail.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >From: "Jane Frodo" >Date: Mon, 21 Sep 1998 17:21:17 PDT > We have a user who always shows "invalid hostname" when >we "last ". The problem is it looks ok on nslookup! >One of the ip's you can look at is 209.63.23.76. This IP has >no DNS errors I can _see_, but last _hates_ it! > What is last trying to tell me about this IP? I suspect the following (from "man logwtmp"): DESCRIPTION The function logwtmp() tries to append a new record to the wtmp(5) file, using the provided arguments line, name, and host, and the current time. If the length of the hostname string host is longer than what would fit into the hostname field of the wtmp(5) file, it will first be attempted to convert it into a numerical IP address using gethostbyname(3). Fail- ing this, the hostname will be recorded as "invalid hostname". david -- David Wolfskill UNIX System Administrator dhw@whistle.com voice: (650) 577-7158 pager: (650) 371-4621 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message