From owner-freebsd-questions Wed May 3 6:26:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kazoocmh.org (kcmh13.kazoocmh.org [206.31.240.158]) by hub.freebsd.org (Postfix) with SMTP id 5CB1C37BC31 for ; Wed, 3 May 2000 06:26:15 -0700 (PDT) (envelope-from johnholland@mindspring.com) Received: from tag1288.mindspring.com ([10.11.1.50]) by kazoocmh.org; Wed, 03 May 2000 09:25:48 -0400 Message-Id: <4.3.1.0.20000503091332.00a79d50@mail.mindspring.com> X-Sender: johnholland@mail.mindspring.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.1 Date: Wed, 03 May 2000 09:25:45 -0400 To: xvudpapc From: John Holland Subject: Re: Apache problem Cc: questions@FreeBSD.ORG In-Reply-To: <3908B478.9FB0E507@savba.sk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >I sent a question to you regarding apache error [alert] mod_unique_id: >unable to gethostbyname(""). > >I have Linux and I compared resolve.conf and host - they both look to be >equal on Linux and FreeBSD. But my apache doesn't work in FreeBSD. Is >there anything I can do. My resolve.conf contains "hosts" and host file >contains 127.0.0.1 localhost localdomain etc. The problem is this >warning, so I can't start httpd: [alert] mod_unique_id: unable to >gethostbyname("") Hi, I just tracked this exact problem down. For an example, my server is samwise.kazoocmh.org You should be able to ping the hostname successfully. In my case #ping samwise should work, and should show the network interface IP address. Here are the important entries in my config files: /etc/rc.conf contains the line hostname="samwise.kazoocmh.org" /etc/hosts contains 127.0.0.1 localhost localhost.kazoocmh.org samwise.kazoocmh.org /etc/resolv.conf contains the lines: domain kazoocmh.org and nameserver 10.11.1.3 The nameserver listed should be able to resolve your hostname. Or, you can let /etc/hosts handle the resolution by adding a line: 10.11.1.52 samwise samwise.kazoocmh.org Obviously, use your own hostnames and IP addresses. Good luck. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message