From owner-freebsd-questions Fri Oct 18 21:16:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4DB2A37B401 for ; Fri, 18 Oct 2002 21:16:56 -0700 (PDT) Received: from mail.gbronline.com (mail.gbronline.com [12.145.226.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90E6343EE1 for ; Fri, 18 Oct 2002 21:16:55 -0700 (PDT) (envelope-from daleco@daleco.biz) Received: from DaleCoportable [12.145.226.106] by mail.gbronline.com (SMTPD32-7.13) id A623A9B6024C; Fri, 18 Oct 2002 22:48:51 -0500 Message-ID: <043f01c27722$2adf0ed0$fa00a8c0@DaleCoportable> From: "DaleCo, S.P.---'the solutions people'" To: "Daniel Inzirillo" , "Freebsd-Questions" References: Subject: Re: Can't get to Internet - Tinker with /etc/hosts? Date: Fri, 18 Oct 2002 22:46:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: "Daniel Inzirillo" To: "Freebsd-Questions" Sent: Friday, October 18, 2002 9:59 PM Subject: Can't get to Internet - Tinker with /etc/hosts? > I have two machines connected to a router using DHCP. > One is a freshly installed FreeBSD 4.7, the other one runs Linux. > They can ping each other. > I can access the Internet from the Linux machine, but not from FreeBSD. > On starting up, Gnome gave me a message to the effect that it couldn't > resolve the host name, and may be to go edit /etc/hosts. > > Is it likely that I need to add anything to /etc/hosts to fix my problem? > What? Not as likely as some others, I think. What happens when you attempt to ping the router from the FBSD box? What was Gnome message, exactly? FBSD needs to have an interface with an configured IP, a gateway route, and name service to access the Internet. Here's a bit from one of my boxes: contents of /etc/resolv.conf: domain daleco.biz nameserver 192.168.11.1 <-----that's the IP of the router, which queries nameservers and gives the DNS info to the box partial contents of /etc/rc.conf: defaultrouter="192.168.11.1" hostname="ezekiel.daleco.biz" ifconfig_dc0="inet xxx.xxx.xxx.xxx netmask 255.255.255.0" As long as the router is connected and serves DNS info, and does NAT, you should be able to connect. If the router does DHCP, replace the quoted material after "ifconfig" with "DHCP" and watch it go. HTH, Kevin Kinsey DaleCo, S.P. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message