From owner-freebsd-questions Fri Dec 12 07:22:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id HAA27064 for questions-outgoing; Fri, 12 Dec 1997 07:22:42 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from gateway2.DHL.COM (gtwy2a.DHL.COM [198.141.28.99]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id HAA27051 for ; Fri, 12 Dec 1997 07:22:33 -0800 (PST) (envelope-from pingo%comports.com@stoco2.sto-co.se.DHL.COM) Received: from stoco2.sto-co.se.dhl.com by gateway1.DHL.COM id aa03077; 12 Dec 97 15:19 GMT Received: from comports.com (pcsto147.sto-co.se.dhl.com) by stoco2.sto-co.se.dhl.com with SMTP (DHLGMS 4.07-DSI) id AA116390113; Fri, 12 Dec 1997 16:21:53 +0100 Message-Id: <199712121521.AA116390113@stoco2.sto-co.se.dhl.com> Date: Fri, 12 Dec 1997 16:21:47 +0100 From: Lars Hansson Reply-To: Lars Hansson To: freebsd-questions@freebsd.org Subject: hosts doesnt resolve.... X-Mailer: AK-Mail 3.0b [eng] (unregistered) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id HAA27054 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Installed Samba yesterday on my machine and noticed something interesting.... When trying to start smbd and nmbd they both complain that they cant "GetHostbyname...." (or something similar) and then exits. Further investigations reveals that nslookup doesnt resolve *anything*, not the entries in /etc/hosts, not even localhost! (Says it tries to connect to nameserver at 0.0.0.0) However, "ftp hostname" or "ping hostname" works (for hosts in /etc/hosts). This is very puzzling to me. What going on here? Why does ftp resolve and nslookup doesnt? I thought nslookup used /etc/hosts if it couldnt find a nameserver? Lars ---------------------------------------- Lars Hansson pingo@comports.com S0ulbender on Dalnet ICQ: 396561 "If I can't read I'm a dead man" Lemmy Kilmister