From owner-freebsd-questions@FreeBSD.ORG Thu Apr 9 11:50:36 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 131E6941 for ; Thu, 9 Apr 2015 11:50:36 +0000 (UTC) Received: from smtp1.hushmail.com (smtp1.hushmail.com [65.39.178.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.hushmail.com", Issuer "smtp.hushmail.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EA95EA5F for ; Thu, 9 Apr 2015 11:50:35 +0000 (UTC) Received: from smtp1.hushmail.com (localhost [127.0.0.1]) by smtp1.hushmail.com (Postfix) with SMTP id 5CD99401DC for ; Thu, 9 Apr 2015 11:50:34 +0000 (UTC) Received: from smtp.hushmail.com (w7.hushmail.com [65.39.178.32]) by smtp1.hushmail.com (Postfix) with ESMTP; Thu, 9 Apr 2015 11:50:33 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 450C7401E3; Thu, 9 Apr 2015 11:50:33 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 09 Apr 2015 11:50:33 +0000 To: "Jon Radel" , freebsd-questions@freebsd.org, terje@elde.net Subject: Re: Initial request to server extremely slow after longer periods of inactivity From: opendaddy@hushmail.com In-Reply-To: <55261B15.7040102@radel.com> References: <20150409034121.7D7C720395@smtp.hushmail.com> <55261B15.7040102@radel.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20150409115033.450C7401E3@smtp.hushmail.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Apr 2015 11:50:36 -0000 On 9. april 2015 at 6:23 AM, "Jon Radel" wrote: > >Something has gone semi-wrong with DNS and it works quickly when >in a local cache and takes a long time to fetch when expired from the >cache? >Assuming you're using names for the connections..... Yep, using names. I recently fixed my reverse DNS but to no avail. I'm using NSD: # cat nsd.conf server: ip4-only: yes hide-version: yes logfile: "/var/log/nsd.log" zone: name: "mydomain.com" zonefile: "/usr/local/etc/nsd/mydomain.com" notify: $FRIENDS_IP NOKEY provide-xfr: $FRIENDS_IP NOKEY # cat mydomain.com $ORIGIN mydomain.com. $TTL 3m @ IN SOA ns.mydomain.com. od.mydomain.com. ( 2013070501 1h 15m 1w 3m ) @ NS ns.mydomain.com. @ NS ns.friendsdomain.com. @ MX 10 mail.mydomain.com. @ A $MY_IP ns IN A $MY_IP mail IN A $MY_IP somename IN A $MY_IP www IN CNAME mydomain.com. Thanks! O.D. cc Terje Elde > >--Jon Radel >jon@radel.com