Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id C0A83221E40 for <~alpine/users@lists.alpinelinux.org>; Thu, 8 Oct 2026 10:22:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riseup.net; s=squak; t=1791454967; bh=f3tKPDJapSS8QkkbOc41vxgnETTCWMk8BfnbEG3Ebz0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=m3LxyW/7UoyjleHQCde/PJOMiO0rRInSm1G4Zr957xa6J9lYzvviXURshoYHx6HXp vfKU9NtpsPGzi3KAXKKsJkrnNGYVSEB/15c/lBxDPRqHgQ6DspGs4CdFhLE3E4qKe9 6zORgjGpMF5tki0OiQh4tYldIpg7LkinGPvRKl2s= Received: from fews03-sea.riseup.net (fews03-sea-pn.riseup.net [10.0.1.153]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4j0mK33n69zDr5B; Thu, 8 Oct 2026 10:22:47 +0000 (UTC) X-Riseup-User-ID: 5A8E6F17E515778642A017EEAF1E9106F25627CB9EB22AD35BDBC30549E94FCB Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews03-sea.riseup.net (Postfix) with ESMTPSA id 4j0mK11dpKz1yJD; Thu, 8 Oct 2026 10:22:43 +0000 (UTC) Message-ID: <3c46f224-bf98-4139-a3cc-5393af2e7ac3@riseup.net> Date: Thu, 8 Oct 2026 13:52:39 +0330 MIME-Version: 1.0 Subject: Re: A simple DNS caching daemon? To: Thomas Reid Cc: ~alpine/users@lists.alpinelinux.org References: <24174f3d-4c84-4b2f-ba74-8213bb82b60b@riseup.net> Content-Language: en-US From: Farooq Karimi Zadeh In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/8/26 13:33, Thomas Reid wrote: > Ahoy, > > I’d suggest looking at Unboundor dnsmasq. Both are lightweight, > available on Alpine and FreeBSD, and should do what you’re looking for. > > Unbound would be my preference, and I’ve set it up on a few Alpine > servers. It can operate as a full recursive resolver or simply cache > responses from upstream DNS servers. It also has a useful |serve- > expired| option, which allows it to return cached results when upstream > DNS is unavailable. > > * Alpine: https://wiki.alpinelinux.org/wiki/ > Setting_up_unbound_DNS_server Setting_up_unbound_DNS_server> > * Documentation: https://unbound.docs.nlnetlabs.nl/ unbound.docs.nlnetlabs.nl/> > > dnsmasq is a little simpler, particularly if all you want is a > forwarding cache. It also handles local DNS records and DHCP if you need > those. > > * https://thekelleys.org.uk/dnsmasq/doc.html thekelleys.org.uk/dnsmasq/doc.html> > > FreeBSD actually includes a local version of Unbound in the base system, > so that’s another reason I’d lean towards it. > > One thing worth checking is why DNS stops working in the first place. If > something is overwriting |/etc/resolv.conf|, adding a cache won’t > necessarily fix the problem. > > T > > > On Thu, Oct 8, 2026 at 10:56 Farooq Karimi Zadeh > wrote: > > Hello Hello. > > I have a computer running Alpine which I use as a personal computer > and also workstation and server. In here, DNS stops working from time to > time. I am looking for a small and simple solution for DNS caching. > > I also have FreeBSD servers and VMs. So if there is an option which > is available on both Operating Systems, it'll be very good. If not, > I won't have a problem learning two. > > So, bring up your recommendations! > > Thanks in advance, > Farooq. > The reason sometimes DNS stops working most likely is the connections in here. I'm based in Iran. So such these are the new normal. Thanks for your recommendation.