Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Oct 2008 17:41:26 +0000
From:      Robin Becker <robin@reportlab.com>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: no reverse dns
Message-ID:  <4909F1C6.60207@chamonix.reportlab.co.uk>
In-Reply-To: <A03A24EE-0ACC-4255-9456-912D8D3A061E@mac.com>
References:  <4908A71C.9050104@chamonix.reportlab.co.uk> <A03A24EE-0ACC-4255-9456-912D8D3A061E@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4909F1C6.60207>