<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 30/10/2024 14:46, A G via Pdns-users
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:15843673.23357.1730299577113@email.ionos.com">
<pre>I'm struggling to see where or how the upstream DNS server pDNS-Recursor
is looking up requests on....</pre>
</blockquote>
<p>It doesn't use an upstream DNS recursor (unless you explicitly
configure it to).</p>
<p>It finds and queries authoritative servers on the Internet,
starting with the root servers and working its way down by
following NS records (delegations). It uses root hints to make
initial contact with a root server, and refreshes its list of root
servers from that.</p>
<p>On Ubuntu, those root hints are in /usr/share/dns/root.hints from
the "dns-root-data" package. You don't touch them.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:15843673.23357.1730299577113@email.ionos.com">
<pre>If it's referring to what's in /etc/resolv.conf, maybe that's a big
problem if that entry was set via DHCP, and then DHCP is pointing to the
"local-address" parameter. A loop?
IE, the pdns is serving on: local-address=192.0.2.25, and DHCP is used
to configure the pdns server with DNS server...</pre>
</blockquote>
<p>/etc/resolv.conf is used by *applications* on the host to know
which resolver to use. It could point to pdns-recursor running on
localhost (which in fact would be normal), or it could point to a
remote machine.</p>
<p>pdns-recursor itself does not use /etc/resolv.conf, nor make
queries as normal application. It is therefore unaffected by
what's here.<br>
</p>
<p>If you *do* want pdns-recursor to send all queries to an upstream
recursive server (for example to make use of a third-party
filtered DNS service), then you can configure it do so. In the new
YAML-style config in pdns-recursor 5, you'd write</p>
<p>recursor:<br>
forward_zones_file: /etc/powerdns/forward.zones.yml</p>
<p>and in /etc/powerdns/forward.zones.yml you would put (for
example)<br>
</p>
<p>- zone: .<br>
forwarders:<br>
- 2620:fe::fe<br>
- 9.9.9.9<br>
recurse: true</p>
<p>HTH,</p>
<p>Brian.<br>
</p>
</body>
</html>