From owner-freebsd-questions@FreeBSD.ORG Thu Jan 19 14:36:16 2012 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 D9C5B106564A for ; Thu, 19 Jan 2012 14:36:16 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6AABD8FC16 for ; Thu, 19 Jan 2012 14:36:16 +0000 (UTC) Received: by wibhn14 with SMTP id hn14so132868wib.13 for ; Thu, 19 Jan 2012 06:36:15 -0800 (PST) Received: by 10.180.77.200 with SMTP id u8mr44461152wiw.18.1326983775300; Thu, 19 Jan 2012 06:36:15 -0800 (PST) Received: from dfleuriot.local (ip-100.net-82-216-199.nantes.rev.numericable.fr. [82.216.199.100]) by mx.google.com with ESMTPS id fv6sm66785174wib.8.2012.01.19.06.36.11 (version=SSLv3 cipher=OTHER); Thu, 19 Jan 2012 06:36:12 -0800 (PST) Message-ID: <4F182A5A.30202@my.gd> Date: Thu, 19 Jan 2012 15:36:10 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: changed ip-adress, DNS lookups don't work anymore 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, 19 Jan 2012 14:36:16 -0000 On 1/19/12 3:32 PM, n dhert wrote: > FreeBSD 8.2. system. > Gets is TCP/IP parameters (and DNS name-servers IPs) from a DHCP server, > with a fixed IP address > (the system always gets the same IP, based on its MAC address as specified > in the DHCP config file) > > Now I wanted the system to have a different IP address. > Changed the DHCP server config accordingly. > Reboot. OK, from $ ifconfig -a I can see it received the new IP. > > But DNS lookups don't work any longer .. > $ host xxx.yyy.zzz.com > ;; connection timed out; no servers could be reached > > The system is behind a firewall, but there are NO errors logged relating > to the (new) IP address. > Other FreeBSD-8.2 systems using the same DHCP server, configured in exactly > the same way, work perfectly well. > > I can SSH to the sytem, but it takes 20 or 30 seconds before the Password: > prompt appears (normally should > be immediate) > Once in the system, starting my alpine mail-client, it takes a minute or so > to display the messages (normally this should be immediate) > Also at boot of the system there is wait for a 2,5 minutes somewhere in the > series of Starting . > Probably these three phenomena have the same cause: DNS lookups don't work > > any idea what can be wrong ?? > I've looked and compared with other systems, can't find it ... > First, add "UseDNS no" to either /etc/ssh/sshd_config or /usr/local/etc/ssh/sshd_config That'll allow you to log in via SSH without the server performing DNS lookups, which are rather useless anyway. Second, you should run "tcpdump" on your DNS host to check if you're actually receiving requests from your freebsd box. Also, post your /etc/resolv.conf , "netstat -rn" and "ifconfig" I'd also be interested in the relevant parts of your firewalling config