From owner-freebsd-questions@FreeBSD.ORG Thu Oct 30 17:41:30 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 216EE1065673 for ; Thu, 30 Oct 2008 17:41:30 +0000 (UTC) (envelope-from robin@reportlab.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id AE5F78FC29 for ; Thu, 30 Oct 2008 17:41:29 +0000 (UTC) (envelope-from robin@reportlab.com) Received: by ey-out-2122.google.com with SMTP id 6so268290eyi.7 for ; Thu, 30 Oct 2008 10:41:28 -0700 (PDT) Received: by 10.210.56.7 with SMTP id e7mr12002162eba.165.1225388487354; Thu, 30 Oct 2008 10:41:27 -0700 (PDT) Received: from ?192.168.0.3? (host-82-44-127-245.static.telewest.net [82.44.127.245]) by mx.google.com with ESMTPS id p10sm3085501gvf.7.2008.10.30.10.41.26 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Oct 2008 10:41:26 -0700 (PDT) Message-ID: <4909F1C6.60207@chamonix.reportlab.co.uk> Date: Thu, 30 Oct 2008 17:41:26 +0000 From: Robin Becker User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <4908A71C.9050104@chamonix.reportlab.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: no reverse dns 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: Thu, 30 Oct 2008 17:41:30 -0000 Chuck Swiger wrote: > On Oct 29, 2008, at 11:10 AM, Robin Becker wrote: >> We have just moved offices and our freebsd machine has started >> complaining in the following terms >> >> Oct 29 17:14:39 int kernel: arplookup ww.xx.yy.zz failed: host is not >> on local network >> >> We have an external router connected as a dhcp server at 192.168.0.2 >> which apparently has external address ww.xx.yy.zz. I am using a fixed >> ip address ie >> >> 192.168.0.6 >> >> I have this in my rc.conf >> >> defaultrouter="192.168.0.2" >> hostname="int.myoffice.com" >> ifconfig_em0="inet 192.168.0.6 netmask 255.255.255.0" >> >> and have dns mapping int.myoffice.com --> ww.xx.yy.zz, > > If you tell the machine that it is int.myoffice.com and you set up DNS > which claims that hostname has an external IP, it will be sad because it > doesn't know how to reach that IP. You can use DNS split-horizon / > views to return the internal IP when the machine asks, or simply keep > your external and internal names separate. Ie, set up DNS like: > > int.myoffice.com A 192.168.0.6 > ext.myoffice.com A ww.xx.yy.zz > > Regards, On the machine I have set the local names to point to 192.168.0.6 in the hosts file. I have not set up any dns except externally. I suppose that packets are arriving and being routed via NAT into the internal server which claim to be addressed to the router's external address. Can I add some simple route that fixes this? -- Robin Becker