Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274012

Re: DNS on minimal new installation

From Joe <joe@jretrading.com>
Newsgroups linux.debian.user
Subject Re: DNS on minimal new installation
Date 2024-10-24 22:30 +0200
Message-ID <JBcCZ-3Yuc-3@gated-at.bofh.it> (permalink)
References <JBbxf-3XSn-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, 24 Oct 2024 20:16:30 +0100
Chris Green <cl@isbd.net> wrote:

> I have just installed Debian Bookworm on my backup server which is a
> Fujitsu Esprimo Q556 with an 8TB external USB drive for backup.  I was
> previously running xubuntu there.
> 
> It has all gone very straightforwrdly, the actual installation only
> took half an hour or so and configuring things not much more. I've
> already run a backup from one of my smaller systems and it ran fine.
> 
> On xubuntu I have made a habit of removing systemd-resolved.service
> and installing dnsmasq.  (I know they're not quite the same thing, but
> the result works OK) 
> 
> Thus dnsmasq provides a local caching DNS service and it passes DNS
> queries that it can't answer on to my main LAN DNS server.  It uses
> the file /run/NetworkManager/no-stub-resolv.conf to tell it where
> the upstream DNS server is.
> 
> However my backup system is headless so doesn't have Network Manager
> installed. (No desktop installed, just basic utilities and ssh)
> It doesn't appear to have systemd-resolved.service installed either.
> 
> It works fine though.  The /etc/resolv.conf is:-
> 
>     domain zbmc.eu
>     search zbmc.eu
>     nameserver 192.168.1.1
> 
> which simply means all DNS gets passed to my LAN's DNS server. Is that
> what one gets on a minimal installation, no explicit DNS server or
> resolv management?  I'm very happy with this, it's very simple and the
> backup system isn't going to make a lot of DNS queries such that it
> needs a DNS cache.  Have I understood this OK?
> 

I would not expect a DNS server as part of a minimal installation, the
default assumption will be to pick up the network DNS server and gateway
from DHCP, and in many networks they will be the same device anyway.

In an installation not using a DHCP client, you would be expected to
make your own DNS and gateway arrangements along with the IP address. If
you're not running Network Manager nor a resolver application, nothing
will touch /etc/resolv.conf, so the nameserver would normally go there,
as you have done.

I'm just setting up a Raspberry Pi headless server, and it does run
bind9, but before I had installed that I had set things up in the way
described. Does dnsmasq not have a forwarders configuration? I've never
used it, but I would have thought it did, as it doesn't use root hints.
If so, that's the right place to put the nameserver(s) it will relay
queries to.

-- 
Joe

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

DNS on minimal new installation Chris Green <cl@isbd.net> - 2024-10-24 21:20 +0200
  Re: DNS on minimal new installation Greg Wooledge <greg@wooledge.org> - 2024-10-24 21:40 +0200
    Re: DNS on minimal new installation Chris Green <cl@isbd.net> - 2024-10-24 23:00 +0200
  Re: DNS on minimal new installation Joe <joe@jretrading.com> - 2024-10-24 22:30 +0200
    Re: DNS on minimal new installation Greg Wooledge <greg@wooledge.org> - 2024-10-24 22:40 +0200
      Re: DNS on minimal new installation <tomas@tuxteam.de> - 2024-10-25 07:20 +0200
        Re: DNS on minimal new installation Chris Green <cl@isbd.net> - 2024-10-25 09:30 +0200
          Re: DNS on minimal new installation Joe <joe@jretrading.com> - 2024-10-25 10:40 +0200
            Re: DNS on minimal new installation <tomas@tuxteam.de> - 2024-10-25 11:40 +0200
      Re: DNS on minimal new installation Chris Green <cl@isbd.net> - 2024-10-25 09:20 +0200
      Re: DNS on minimal new installation Joe <joe@jretrading.com> - 2024-10-25 10:40 +0200
        Re: DNS on minimal new installation Greg Wooledge <greg@wooledge.org> - 2024-10-25 13:40 +0200
          Re: DNS on minimal new installation eben@gmx.us - 2024-10-25 17:50 +0200

csiph-web