From owner-freebsd-questions@FreeBSD.ORG Tue Sep 2 00:22:43 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 48DF31065692 for ; Tue, 2 Sep 2008 00:22:43 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (mail.computinginnovations.com [64.81.227.250]) by mx1.freebsd.org (Postfix) with ESMTP id EAD118FC08 for ; Tue, 2 Sep 2008 00:22:42 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from p28.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.14.2/8.14.2) with ESMTP id m820MRDS013277; Mon, 1 Sep 2008 19:22:27 -0500 (CDT) (envelope-from derek@computinginnovations.com) Message-Id: <6.0.0.22.2.20080901192043.02547628@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Mon, 01 Sep 2008 19:22:18 -0500 To: Tom Marchand , freebsd-questions@freebsd.org From: Derek Ragona In-Reply-To: <7A686BAC-2F03-4B18-8307-83DDAD949625@comcast.net> References: <7A686BAC-2F03-4B18-8307-83DDAD949625@comcast.net> Mime-Version: 1.0 X-Antivirus: avast! (VPS 080901-0, 09/01/2008), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: ClamAV 0.93.3/8132/Mon Sep 1 15:21:44 2008 on betty.computinginnovations.com X-Virus-Status: Clean X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m820MRDS013277 X-ComputingInnovations-MailScanner: Found to be clean X-ComputingInnovations-MailScanner-From: derek@computinginnovations.com X-Spam-Status: No Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: /etc/hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Sep 2008 00:22:43 -0000 At 06:52 PM 9/1/2008, Tom Marchand wrote: >Hi, > >I've got an issue where hosts defined in my /etc/hosts are not being >resolved. I've looked at resolv.conf, host.conf and nsswitch.conf and >everything looks ok. It's my understanding that with the below >configurations, /etc/hosts should be used first then DNS. Correct? >This is a 6.1 system. > >host# cat resolv.conf >local domain >nameserver x.x.x.x > >cat host.conf ># Auto-generated from nsswitch.conf, do not edit >hosts >dns > > >host# cat nsswitch.conf >group: compat >group_compat: nis >hosts: files dns >networks: files >passwd: compat >passwd_compat: nis >shells: files Check your /etc/rc.conf and look that the correct IP and hostname are set in there. You may have a typo. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.