<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 07/05/2021 11:35, Steven Garner
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJNrfiaoEiPz62BQFDf_Q+vFsBqaC6a88tjyJR9G9sKcGuz=6A@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"> I thought the best practice to ensure current
software on Ubuntu was to use apt, first to update and then to
install:<br>
<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">sudo apt update<br>
</font><font face="monospace">sudo apt install pdns-server
pdns-backend-mysql -y</font></blockquote>
<br>
</div>
</blockquote>
<p>That gives you some version which has probably percolated down
from the Debian repositories, and could be very old and stale. In
the case of Ubuntu 16.04 they published an alpha version
(4.0.0~alpha2) with significant bugs, and never updated it to the
release.</p>
<p>So you're much better off getting the packages from the powerdns
repo.<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAJNrfiaoEiPz62BQFDf_Q+vFsBqaC6a88tjyJR9G9sKcGuz=6A@mail.gmail.com">
<div dir="ltr"><br>
<br>
I understand from your referenced documentation (<a
href="https://repo.powerdns.com/" moz-do-not-send="true">https://repo.powerdns.com/</a>),
that the preferred installation method for "PowerDNS
Authoritative Server - master branch" on Ubuntu 20.04 "Focal
Fossa" is to:<br>
<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">Create the file
'/etc/apt/sources.list.d/pdns.list' with this content:</font><font
face="monospace"><br>
</font></blockquote>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">deb [arch=amd64] <a
href="http://repo.powerdns.com/ubuntu"
moz-do-not-send="true">http://repo.powerdns.com/ubuntu</a>
bionic-auth-master main<br>
<br>
</font></blockquote>
</blockquote>
</div>
</blockquote>
<p>Two problems with that.<br>
</p>
<p>1. The master branch is the development tip. Only use this if
you're participating in the development of the *next* release
(e.g. testing new features). Don't use it in production: you need
to choose the 44 branch.</p>
<p>2. Ubuntu 20.04 is "focal", not "bionic".</p>
<p>So the branch you want is focal-auth-44<br>
</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAJNrfiaoEiPz62BQFDf_Q+vFsBqaC6a88tjyJR9G9sKcGuz=6A@mail.gmail.com">
<div dir="ltr"><br>
There is nothing there about installing the preferred backend,
but would I be correct in assuming I could extend that last line
to read:<br>
<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">sudo apt install pdns-server
pdns-backend-mysql</font></blockquote>
</div>
</blockquote>
<p><br>
</p>
<p>Yes - the repo has the backend packages too.</p>
<p><br>
</p>
<blockquote type="cite"
cite="mid:CAJNrfiaoEiPz62BQFDf_Q+vFsBqaC6a88tjyJR9G9sKcGuz=6A@mail.gmail.com">
<div dir="ltr">I find the documentation on upgrading pdns (<a
href="https://doc.powerdns.com/authoritative/upgrading.html"
moz-do-not-send="true">https://doc.powerdns.com/authoritative/upgrading.html</a>)
to be highly contextual and difficult to follow, in that there
does not appear to be procedures set forth to actually upgrade
any distribution.<br>
<br>
So instead of upgrading, do I first uninstall, remove and purge
the old pdns 4.2.1 installation and then follow the installation
of the latest master branch above?<br>
<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">apt-get --purge autoremove pdns-server
pdns-backend-mysql </font></blockquote>
</div>
</blockquote>
<p>It doesn't really matter. After adding the new repo, a simple</p>
<p>apt-get update<br>
apt-get dist-upgrade</p>
<p>will install the newer packages. It will be up to you to ensure
the configs are valid for the new version, but they usually are
(and you can compare with the .dpkg-dist files to see what's new)<br>
</p>
<p>If you prefer to purge and reinstall, that's fine too.<br>
</p>
<blockquote type="cite"
cite="mid:CAJNrfiaoEiPz62BQFDf_Q+vFsBqaC6a88tjyJR9G9sKcGuz=6A@mail.gmail.com">
<div dir="ltr"><br>
I'm assuming as a backend, the apt-updated version of MySQL is
adequate:<br>
<br>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><font
face="monospace">mysql Ver 8.0.23-0ubuntu0.20.04.1 for
Linux on x86_64 ((Ubuntu))</font></blockquote>
<br>
... where all the domain and record information will persist.<br>
<br>
</div>
</blockquote>
<p>I don't use mysql with pdns, but I suggest you read the release
notes and look for provisos for Mysql 8, for example:</p>
<p><a class="moz-txt-link-freetext" href="https://doc.powerdns.com/authoritative/upgrading.html#mysql-character-set-detection">https://doc.powerdns.com/authoritative/upgrading.html#mysql-character-set-detection</a><br>
</p>
<p>Regards,</p>
<p>Brian.<br>
</p>
</body>
</html>