From owner-freebsd-questions@freebsd.org Wed Jun 15 16:35:23 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4193FA45997 for ; Wed, 15 Jun 2016 16:35:23 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.117.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CA4AD1DE4 for ; Wed, 15 Jun 2016 16:35:22 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from ox-dell39.ox.adestra.com (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 7B2414F63 for ; Wed, 15 Jun 2016 16:35:12 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/7B2414F63; dkim=none; dkim-atps=neutral Subject: Re: How to flush/clear dns cache? To: freebsd-questions@freebsd.org References: <7912A649-58D5-47A9-8FD5-816E5CE5F3C8@gmail.com> From: Matthew Seaman Message-ID: Date: Wed, 15 Jun 2016 17:35:11 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <7912A649-58D5-47A9-8FD5-816E5CE5F3C8@gmail.com> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="NNRvwGKr7vbe0D22de0HMgihgjOj0UKks" X-Virus-Scanned: clamav-milter 0.99.2 at smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 16:35:23 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --NNRvwGKr7vbe0D22de0HMgihgjOj0UKks Content-Type: multipart/mixed; boundary="O6axGjH2VT7bgr5FoJ08WuHxhsEg5KB3E" From: Matthew Seaman To: freebsd-questions@freebsd.org Message-ID: Subject: Re: How to flush/clear dns cache? References: <7912A649-58D5-47A9-8FD5-816E5CE5F3C8@gmail.com> In-Reply-To: <7912A649-58D5-47A9-8FD5-816E5CE5F3C8@gmail.com> --O6axGjH2VT7bgr5FoJ08WuHxhsEg5KB3E Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 06/15/16 17:14, Bobb Shires wrote: > What is the FreeBSD equivalent of the windows command =E2=80=98ipconfig= /flushdns=E2=80=99? It depends. If you're running the local_unbound service[*], then you can achieve a similar effect by: # service local_unbound restart Otherwise: nothing. Unless you run some additional software specifically for this purpose, FreeBSD doesn't keep a local cache of DNS lookups, so there's nothing to do. Unless you want to start chasing the operators of the recursive resolvers you're using and ask them to flush their caches. (Hint: the answer will be 'no' unless you can show a good reason, like their caches having been poisoned or old data affecting a service that a lot of people use.) Cheers, Matthew [*] local_unbound is what is commonly used as it comes with the system but there's a number of alternatives you could use from ports. --O6axGjH2VT7bgr5FoJ08WuHxhsEg5KB3E-- --NNRvwGKr7vbe0D22de0HMgihgjOj0UKks Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJXYYPAAAoJEABRPxDgqeTnzsIP/iX+cBG5DUzXvEv2AJ2ur4b3 HCCQ93k+V07r+nBjjClXv93zZe/iRXFY0Ypo2MEbM3+dl2iMI094xvqiJmS9L7ka vc47XScecZjC4orcTSsjzvJ815gaY5td9VYilcmNu7MHQ20s+hM6pWrf9dpnlysL lRScUcdyheVNatW32zNhRRtX7S80uCK9ZmT21wy+96ZPIjO+q1A6sVknW73jqxct RigA+nMtbGCYa4pzhNG8+Pdhu1NV43iJUaC0XTIJdPOFVn1fE+EyYdCGFRm9GIaF l7aIaWE21eXcfVmznStIOOig8IBonBHSL95nUHWBJ7yaAnR+aZyjl6wARpWKpw1n awEQakuO8Ci007PbdeuvNnSpBAoY/HDx29y01gGoPWQrV2ywEXDhsHmm6TQ2jlYu Twev3af8vS3nfs8FwqVwyESJZzhJ0mcY9ZjAgmbDczbI1Rji5LdYFLcadyYXBKSs iSv69ePJSSVLydv4FFmrq5ag3YIn0Gd63hIAp+jXpFKY0RIjVEgAnCc94+Pl8ugW Foub/5DU86TDj3f3q5Lq2nQvSk4lF6tB+K6uzyd3QNkn3inG8dO70iIGOgiePNi/ ulVzV4C4p1FSkvsqI2DHExiUrcxrGNuoQ/Jhc6Co8diZzIMfzVHtf8FTqXUDCAtE g8SSiqSAUCNYLGyP/C+5 =0UZU -----END PGP SIGNATURE----- --NNRvwGKr7vbe0D22de0HMgihgjOj0UKks--