From owner-freebsd-questions@FreeBSD.ORG Sun May 28 05:21:55 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 A6B0D16B509 for ; Sun, 28 May 2006 05:14:40 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4E03643D46 for ; Sun, 28 May 2006 05:14:40 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.6+UW06.03/8.13.6+UW06.03) with ESMTP id k4S5EdXa031670 for ; Sat, 27 May 2006 22:14:39 -0700 X-Auth-Received: from [192.168.0.50] (dsl254-013-145.sea1.dsl.speakeasy.net [216.254.13.145]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.6+UW06.03/8.13.6+UW06.03) with ESMTP id k4S5EV17024644 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 27 May 2006 22:14:38 -0700 Message-ID: <447931BB.2090204@u.washington.edu> Date: Sat, 27 May 2006 22:14:35 -0700 From: Garrett Cooper User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200605281423.51666.thats@notyourhomework.net> In-Reply-To: <200605281423.51666.thats@notyourhomework.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0, __USER_AGENT 0' Subject: Re: Configuring local network for Apache22 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: Sun, 28 May 2006 05:22:01 -0000 Malcolm Fitzgerald wrote: > I'm running a small network behind an ADSL router and one of the machines runs > freeBSD 6.0-SECURITY. I'd like to configure it to run apache22. Apache fails > to start and gives this error. > > [Sat May 27 18:49:28 2006] [alert] (EAI 8)hostname nor servname provided, or > not known: mod_unique_id: unable to find IPv4 address of "bsd-box." > > How do I configure Web searches suggest three possibilities > > 1. that this is a problem with DNS, edit /etc/hosts > > I've got this line in /etc/hosts > 127.0.0.1 localhost localhost.home.net bsd-box.home.net bsd-box > > 2. Apache is listening to devices that don't exist - I don't know how to > explore that suggestion. > > 3. If your host doesn't have a registered DNS name, enter its IP address in > httpd.conf > > I have this line in httpd.conf > ServerName 127.0.0.1 > Simplest means of correcting this would be to add your static IP (if one existed) for your server box on the network to your /etc/hosts file and then change Servname to match bsd-box. The more complex (but probably better means), would be to setup a DNS server (look up bind9 for this) and then just make sure that Servname matches your machine's DNS assigned hostname. -Garrett