From owner-freebsd-questions@FreeBSD.ORG Wed Mar 15 20:59:07 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 009A416A559 for ; Wed, 15 Mar 2006 20:59:06 +0000 (UTC) (envelope-from derek@computinginnovations.com) Received: from betty.computinginnovations.com (dsl081-142-072.chi1.dsl.speakeasy.net [64.81.142.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5F4E43D66 for ; Wed, 15 Mar 2006 20:58:55 +0000 (GMT) (envelope-from derek@computinginnovations.com) Received: from p17.computinginnovations.com (dhcp-10-20-30-100.computinginnovations.com [10.20.30.100]) (authenticated bits=0) by betty.computinginnovations.com (8.13.5/8.12.11) with ESMTP id k2FKwdKB055216; Wed, 15 Mar 2006 14:58:40 -0600 (CST) Message-Id: <6.0.0.22.2.20060315145442.02822a10@mail.computinginnovations.com> X-Sender: derek@mail.computinginnovations.com X-Mailer: QUALCOMM Windows Eudora Version 6.0.0.22 Date: Wed, 15 Mar 2006 14:58:32 -0600 To: eoghan From: Derek Ragona In-Reply-To: <44187DB1.6030402@redry.net> References: <44186E94.2040901@redry.net> <6.0.0.22.2.20060315134908.028296a8@mail.computinginnovations.com> <44187189.300@redry.net> <6.0.0.22.2.20060315135915.0284c350@mail.computinginnovations.com> <441875AE.9070601@redry.net> <6.0.0.22.2.20060315141853.0282e1c0@mail.computinginnovations.com> <44187AF1.8020505@redry.net> <6.0.0.22.2.20060315143900.02843ea8@mail.computinginnovations.com> <44187DB1.6030402@redry.net> Mime-Version: 1.0 X-ComputingInnovations-MailScanner-Information: Please contact the ISP for more information X-ComputingInnovations-MailScanner: Found to be clean X-MailScanner-From: derek@computinginnovations.com Content-Type: text/plain; charset="us-ascii"; format=flowed X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Steve Bertrand , freebsd-questions@freebsd.org Subject: Re: hosts file 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: Wed, 15 Mar 2006 20:59:07 -0000 You have no address on the loopback. You should have: ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. in /etc/rc.conf or /etc/defaults/rc.conf Add one of these, and reboot to make sure the problem doesn't recur. You can manually do an ifconfig: ifconfig lo0 inet 127.0.0.1 netmask 0xff000000 -Derek At 02:48 PM 3/15/2006, eoghan wrote: >Derek Ragona wrote: >>It sounds like the tcp stack is not even running. What does: >>ifconfig -a >>show? Do you have any valid IP address on this computer? >> -Derek > >Yep, I can get to my www files when apachee is started via my assigned ip. >Here is the output of ifconfig: > >nathaniel# ifconfig -a >fwe0: >flags=108943 >mtu 1500 > options=8 > inet6 fe80::11:6ff:fe99:d9eb%fwe0 prefixlen 64 scopeid 0x1 > ether 02:11:06:99:d9:eb > ch 1 dma 0 >xl0: flags=8843 mtu 1500 > options=9 > inet6 fe80::2b0:d0ff:fee7:e97d%xl0 prefixlen 64 scopeid 0x2 > inet 192.168.1.34 netmask 0xffffff00 broadcast 192.168.1.255 > ether 00:b0:d0:e7:e9:7d > media: Ethernet autoselect (100baseTX ) > status: active >plip0: flags=108810 mtu 1500 >lo0: flags=8008 mtu 16384 > > >>At 02:37 PM 3/15/2006, eoghan wrote: >>>Derek Ragona wrote: >>> > Well, your resolv.conf points to 192.168.1.1, what is at that address? >>> > Do you have any other DNS issues? >>> > >>> > Can you ping localhost, or 127.0.0.1? >>> > >>> > Is named running? >>> > >>> > -Derek >>> >>>Hi >>>192.168.1.1 is my router address. >>>How can i check if named is running? >>>There is no reference to named_enable in my rc.conf >>>When i try ping 127.0.0.1 i get: >>>ping: sendto: Can't assign requested address >>>Thanks >>> >>> > At 02:14 PM 3/15/2006, eoghan wrote: >>> >> Derek Ragona wrote: >>> >>> Sorry, my mistake. Check: >>> >>> /etc/nsswitch.conf >>> >>> You should the line: >>> >>> hosts: files dns >>> >>> With the files listed first >>> >>> -Derek >>> >> >>> >> Hi >>> >> yes that is in my nsswitch.conf: >>> >> hosts: files dns >>> >> any other ideas? >>> >> >>> >>> At 01:56 PM 3/15/2006, eoghan wrote: >>> >>>> Derek Ragona wrote: >>> >>>>> Check your resolv.conf, should have files first. >>> >>>>> -Derek >>> >>>> >>> >>>> resolve.conf reads >>> >>>> nameserver 192.168.1.1 >>> >>>> >>> >>>> >>> >>>>> At 01:44 PM 3/15/2006, eoghan wrote: >>> >>>>>> Steve Bertrand wrote: >>> >>>>>>>> Yes, mine reads: >>> >>>>>>>> ::1 localhost nathaniel >>> >>>>>>>> 127.0.0.1 localhost nathaniel >>> >>>>>>>> Upon starting apache, i can only get to it by using the ip. >>> >>>>>>>> 127.0.0.1 wont work either. I just get the unable to connect >>> >>>>>>>> message from the browser. Any ideas? >>> >>>>>>> Under the Listen directive in your httpd.conf file, are you binding >>> >>>>>>> Apache to a single IP? >>> >>>>>>> Mine reads: >>> >>>>>>> Listen 80 >>> >>>>>>> Which means listen on port 80 on all IP's. If you have an entry >>> >>>>>>> as such: >>> >>>>>>> Listen 123.456.789.111:80 >>> >>>>>>> It will listen on port 80 on ONLY that IP, and ignore all other >>> >>>>>>> requests, including localhost/127.0.0.1. >>> >>>>>>> Regards, >>> >>>>>>> Steve >>> >>>>>> >>> >>>>>> Hi >>> >>>>>> Yep, its: >>> >>>>>> Listen 80 >>> >>>>>> and >>> >>>>>> ServerName localhost >>> >>>>>> Where do i get the text from the boot? Im getting some weird >>> >>>>>> Network is unreachable messages in here that may have something to >>> >>>>>> do with it? >>> >>>>>> Eoghan >