[Ubuntu 22.04] Setup fails at installing nsd due to resolv.conf or DNS issues

Hey,

I had a box at onyxhosting.de which was running fine on Ubuntu 18.04. Unfortunately this provider doesn’t offer Ubuntu 22.04, so I created backups, saved them on my PC, reinstalled the VPS and upgraded manually. But i couldn’t install MIAB because I ran into issues with iptables/ufw that i couldn’t solve.

As a result i decided to move to a completely new hosting provider (A2 Hosting). I chose Ubuntu 22.04, set up reverse DNS and tried installing MIAB. But every time the script gets to “Installing nsd (DNS server) …”, it seems like an apt-get update is performed, which fails because the domain names of the repositories can’t be resolved:

Installing nsd (DNS server)...

FAILED: apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install nsd ldnsutils openssh-client
-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
openssh-client is already the newest version (1:8.9p1-3ubuntu0.1).
The following additional packages will be installed:
  libfstrm0 libldns3 libprotobuf-c1
The following NEW packages will be installed:
  ldnsutils libfstrm0 libldns3 libprotobuf-c1 nsd
0 upgraded, 5 newly installed, 0 to remove and 4 not upgraded.
Need to get 802 kB of archives.
After this operation, 2,658 kB of additional disk space will be used.
Ign:1 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libfstrm0 amd64 0.6.1-1
Ign:2 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2.1
Ign:3 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 nsd amd64 4.3.9-1
Ign:4 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libldns3 amd64 1.7.1-2ubuntu4
Ign:5 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 ldnsutils amd64 1.7.1-2ubuntu4
Ign:1 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libfstrm0 amd64 0.6.1-1
Ign:2 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2.1
Ign:3 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 nsd amd64 4.3.9-1
Ign:4 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libldns3 amd64 1.7.1-2ubuntu4
Ign:5 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 ldnsutils amd64 1.7.1-2ubuntu4
Ign:1 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libfstrm0 amd64 0.6.1-1
Ign:2 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2.1
Ign:3 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 nsd amd64 4.3.9-1
Ign:4 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libldns3 amd64 1.7.1-2ubuntu4
Ign:5 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 ldnsutils amd64 1.7.1-2ubuntu4
Err:1 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libfstrm0 amd64 0.6.1-1
  Temporary failure resolving 'mirror.a2hosting.com'
Ign:2 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2.1
Err:3 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 nsd amd64 4.3.9-1
  Temporary failure resolving 'mirror.a2hosting.com'
Err:4 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libldns3 amd64 1.7.1-2ubuntu4
  Temporary failure resolving 'mirror.a2hosting.com'
Err:5 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 ldnsutils amd64 1.7.1-2ubuntu4
  Temporary failure resolving 'mirror.a2hosting.com'
Err:2 http://security.ubuntu.com/ubuntu jammy-updates/main amd64 libprotobuf-c1 amd64 1.3.3-1ubuntu2.1
  Temporary failure resolving 'mirror.a2hosting.com'
E: Failed to fetch http://mirror.a2hosting.com/ubuntu/pool/universe/f/fstrm/libfstrm0_0.6.1-1_amd64.deb  Temporary failure resolving 'mirror.a2hosting.com'
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/p/protobuf-c/libprotobuf-c1_1.3.3-1ubuntu2.1_amd64.deb  Temporary failure resolving 'mirror.a2hosting.com'
E: Failed to fetch http://mirror.a2hosting.com/ubuntu/pool/universe/n/nsd/nsd_4.3.9-1_amd64.deb  Temporary failure resolving 'mirror.a2hosting.com'
E: Failed to fetch http://mirror.a2hosting.com/ubuntu/pool/universe/l/ldns/libldns3_1.7.1-2ubuntu4_amd64.deb  Temporary failure resolving 'mirror.a2hosting.com'
E: Failed to fetch http://mirror.a2hosting.com/ubuntu/pool/universe/l/ldns/ldnsutils_1.7.1-2ubuntu4_amd64.deb  Temporary failure resolving 'mirror.a2hosting.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
-----------------------------------------

Before running curl -s https://mailinabox.email/setup.sh | sudo -E bash, the content of /etc/resolv.conf was the IP address of a functioning nameserver (I don’t remember the IP). Afterwards, its just 127.0.0.1. Adding something like 8.8.8.8 (Googles nameserver) does enable me to run apt-get update manually, but rerunning the MIAB script changes it back to 127.0.0.1, with the same errors.

Then I remembered that the glue records of my domain were still pointing to the old box (which was not running). After all, the box can only handle DNS if it is recognized as the nameserver for my domain. So I changed the records (called “Private DNS Server” at Namecheap) to the new IP. More than 48 hours later, the records had still not propagated or only at a few locations (depending on tool - mxtoolbox showed nothing at all). Upon request, Namecheap support sent me the following answer:

Per our check, you’ve successfully created the following glue records (registered nameservers):

ns2.box.mydomain.tld [My new IPv4]
ns1.box.mydomain.tld [My new IPv4]

However, the DNS service is inaccessible on your server IP. As a result, retrieving the A records for your nameservers is impossible, and the nameservers are not operational. Hence the issue.

It will be worth checking if port 53 is opened on My new IPv4. Please get in touch with your hosting provider in this regard.

Once the issues with the DNS service are resolved, please make sure that A records for your nameservers are indeed created. […]

Maybe I’m still not getting the concept of glue records. As far as i understood, the registrar must set A records for my own nameservers (= glue records). How else should the public know how to reach these nameservers?

Right now i did the whole installation again and got the same results.

I’m really confused at this point. Am i missing something? During the SSH connection I’m just installing Ubuntu, allowing the mounted /tmp directory to execute stuff (otherwise I get an error message but I don’t think this has anything to to with my current problem) and running the MIAB installation command.

Thanks already for anyone who’s got something to say.
I really want my mailinabox back :frowning:

No. You set the A record on your name server. The Glue record tells the internet at which IP to find a name server for your domain. (Overly simplified explanation)

But, let me reread this all a few times to let it sink in as you have a lot going on. In the meantime, it’d be really helpful to know your MiaB hostname. You can PM it to me if you prefer. Include the IP addresses of both the old and new MiaB installs, so I can tell them apart.

1 Like

I hate providers who have their own repo mirrors … sure, the idea is nice, but it generally leads to issues such as this. But reading on, it seems that you got past this …

1 Like

Which is what exactly? Since you seemed to have gotten past the resolution of the mirrors, I would think that the MiaB completed the installation fully … though you really don’t say if this is the case or not.

1 Like

I have only gotten past the resolution of the mirrors in terms of running sudo apt update manually after adding Googles nameserver to resolv.conf. The MiaB installation fails at installing nsd every time i rerun the script, no matter the content of resolv.conf. I get the same errors I included in my original post.

Maybe i have not expressed myself clearly. As far as I know the MiaB nameserver sets the A record (alongside other records) for domain.tld. But the records pointing ns1.box.domain.tld and ns2.box.domain.tld to the corresponding IP are called glue records and set by the registrar? Now I don’t understand why the nameserver has to set additional A records doing the same thing. Or is a valid A record for domain.tld necessary to enable the glue records to propagate?

This is just a quirk of DNS: The nameserver name has an A record served by both the TLD’s DNS servers (the glue record, which is how everyone finds your DNS server in the first place) and your own DNS server. In practice your domains may work with only the one at the TLD, but it’s not something you want to try. The records that your DNS server serves are considered authoritative, and a missing record could override the information gotten from the TLD in weird cases.

1 Like

Ok, so the issue boils down to the provider is forcing you to use their mirrors rather than the Ubuntu repository. So let’s take this back into our own hands for the purpose of getting MiaB installed.
Edit the file /etc/hosts with your choice of text editor and add the line (near the top in the IPv4 section):
216.119.143.24 mirror.a2hosting.com

Then run the install … any better?

1 Like

I believe nameserver 127.0.0.1 is correct for resolv.conf after nsd is installed.

What does systemctl status nsd show? If not active (running) try:
systemctl enable nsd
systemctl start nsd

Thanks everyone for answering!

It is active already.

Yes, now i get past installing nsd. But I get stuck at installing OpenDKIM/OpenDMARC:

Updating system packages...
Installing system packages...
Initializing system random number generator...
Opening alternate SSH port 7822.
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)...
Generating DNSSEC signing keys...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Creating new user database: /home/user-data/mail/users.sqlite
Installing OpenDKIM/OpenDMARC...

FAILED: apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install opendkim opendkim-tools opendmarc
-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dbconfig-common dbconfig-mysql default-mysql-client libcommon-sense-perl
  libdbd-mysql-perl libdbi-perl libhashkit2 libjson-perl libjson-xs-perl
  libmemcached11 libmilter1.0.1 libmysqlclient21 libopendbx1 libopendbx1-mysql
  libopendbx1-sqlite3 libopendkim11 libopendmarc2 librbl1 libspf2-2
  libswitch-perl libtypes-serialiser-perl libvbr2 mysql-client-8.0
  mysql-client-core-8.0 mysql-common publicsuffix
Suggested packages:
  default-mysql-server | virtual-mysql-server libmldbm-perl libnet-daemon-perl
  libsql-statement-perl python python-mysqldb libxml-simple-perl
  libmime-tools-perl
The following NEW packages will be installed:
  dbconfig-common dbconfig-mysql default-mysql-client libcommon-sense-perl
  libdbd-mysql-perl libdbi-perl libhashkit2 libjson-perl libjson-xs-perl
  libmemcached11 libmilter1.0.1 libmysqlclient21 libopendbx1 libopendbx1-mysql
  libopendbx1-sqlite3 libopendkim11 libopendmarc2 librbl1 libspf2-2
  libswitch-perl libtypes-serialiser-perl libvbr2 mysql-client-8.0
  mysql-client-core-8.0 mysql-common opendkim opendkim-tools opendmarc
  publicsuffix
0 upgraded, 29 newly installed, 0 to remove and 1 not upgraded.
Need to get 6,632 kB of archives.
After this operation, 76.4 MB of additional disk space will be used.
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Get:3 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libopendkim11 amd64 2.11.0~beta2-6 [62.1 kB]
Get:4 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libmilter1.0.1 amd64 8.15.2-22ubuntu3 [39.9 kB]
Get:5 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libopendbx1 amd64 1.4.6-16 [27.8 kB]
Get:6 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 librbl1 amd64 2.11.0~beta2-6 [13.3 kB]
Get:7 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libvbr2 amd64 2.11.0~beta2-6 [14.8 kB]
Get:8 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 opendkim amd64 2.11.0~beta2-6 [178 kB]
Get:9 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libspf2-2 amd64 1.2.10-7.1ubuntu1 [53.4 kB]
Get:10 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libopendmarc2 amd64 1.4.2-1 [28.2 kB]
Get:11 http://mirror.a2hosting.com/ubuntu jammy/main amd64 publicsuffix all 20211207.1025-1 [129 kB]
Get:12 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 dbconfig-common all 2.0.21 [597 kB]
Get:13 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 mysql-client-core-8.0 amd64 8.0.33-0ubuntu0.22.04.2 [2,802 kB]
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Get:14 http://mirror.a2hosting.com/ubuntu jammy/main amd64 mysql-common all 5.8+1.0.8 [7,212 B]
Get:15 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 mysql-client-8.0 amd64 8.0.33-0ubuntu0.22.04.2 [22.7 kB]
Get:16 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 default-mysql-client all 1.0.8 [3,362 B]
Get:17 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 dbconfig-mysql all 2.0.21 [938 B]
Get:18 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 opendmarc amd64 1.4.2-1 [98.3 kB]
Get:19 http://mirror.a2hosting.com/ubuntu jammy/main amd64 libcommon-sense-perl amd64 3.75-2build1 [21.1 kB]
Get:20 http://mirror.a2hosting.com/ubuntu jammy/main amd64 libdbi-perl amd64 1.643-3build3 [741 kB]
Get:21 http://mirror.a2hosting.com/ubuntu jammy-updates/main amd64 libmysqlclient21 amd64 8.0.33-0ubuntu0.22.04.2 [1,299 kB]
Get:22 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libdbd-mysql-perl amd64 4.050-5 [87.6 kB]
Get:23 http://mirror.a2hosting.com/ubuntu jammy/main amd64 libjson-perl all 4.04000-1 [81.8 kB]
Get:24 http://mirror.a2hosting.com/ubuntu jammy/main amd64 libtypes-serialiser-perl all 1.01-1 [11.6 kB]
Get:25 http://mirror.a2hosting.com/ubuntu jammy/main amd64 libjson-xs-perl amd64 4.030-1build3 [87.2 kB]
Get:26 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libopendbx1-mysql amd64 1.4.6-16 [5,550 B]
Get:27 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libopendbx1-sqlite3 amd64 1.4.6-16 [5,384 B]
Get:28 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 libswitch-perl all 2.17-2.1 [18.3 kB]
Get:29 http://mirror.a2hosting.com/ubuntu jammy/universe amd64 opendkim-tools amd64 2.11.0~beta2-6 [84.8 kB]
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Err:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
  Temporary failure resolving 'ppa.launchpadcontent.net'
Err:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
  Temporary failure resolving 'ppa.launchpadcontent.net'
Fetched 6,522 kB in 7s (929 kB/s)
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/libm/libmemcached/libhashkit2_1.1.3-1%2bubuntu22.04.1%2bdeb.sury.org%2b1_amd64.deb  Temporary failure resolving 'ppa.launchpadcontent.net'
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/libm/libmemcached/libmemcached11_1.1.3-1%2bubuntu22.04.1%2bdeb.sury.org%2b1_amd64.deb  Temporary failure resolving 'ppa.launchpadcontent.net'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
-----------------------------------------

My actions prior to running the MiaB script were:

  • Modifying the hosts file as you suggested. It now looks like this:
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

216.119.143.24 mirror.a2hosting.com
[my ipv4] box.mydomain.tld box
  • adding 8.8.8.8 to resolv.conf
  • sudo apt update and sudo apt upgrade.
    There seem to be some issues with the repositories which i don’t think have something to do with my main problem:
root@box:~# sudo apt update
Get:1 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Hit:2 http://archive.canonical.com/ubuntu jammy InRelease
Hit:3 https://ppa.launchpadcontent.net/duplicity-team/duplicity-release-git/ubuntu jammy InRelease
Get:4 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy InRelease [23.9 kB]
Ign:5 https://repo.virtuozzo.com/ctpreset/deb  InRelease
Hit:6 https://repo.virtuozzo.com/ctpreset/deb  Release
Ign:7 https://repo.virtuozzo.com/ctpreset/deb  Release.gpg
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Hit:9 http://mirror.a2hosting.com/ubuntu jammy InRelease
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Hit:11 http://mirror.a2hosting.com/ubuntu jammy-updates InRelease
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Ign:8 https://repo.virtuozzo.com/ctpreset/deb  Translation-en_US
Ign:10 https://repo.virtuozzo.com/ctpreset/deb  Translation-en
Fetched 134 kB in 1s (107 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: Skipping acquire of configured file 'universe/binary-amd64/Packages' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
W: Skipping acquire of configured file 'universe/i18n/Translation-en_US' as repository 'http://archive.canonical.com/ubuntu jammy InRelease' doesn't have the component 'universe' (component misspelt in sources.list?)
  • Rebooting
  • Now, strangely, there completely different nameservers in resolv.conf:
nameserver 75.98.161.224
nameserver 69.39.86.5

Which are IP adresses of 75.98.161.224.static.a2webhosting.com and smtp.hthackney.com .

  • Once again i added 8.8.8.8

Then I ran the setup script and got the errors i wrote above.

I repeated the same procedure and got more or less the same result (Differences can be seen here):

Updating system packages...
Installing system packages...
Initializing system random number generator...
Opening alternate SSH port 7822.
Firewall is active and enabled on system startup
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Installing nsd (DNS server)...
Installing Postfix (SMTP server)...
Installing Dovecot (IMAP server)...
Installing OpenDKIM/OpenDMARC...

FAILED: apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confnew install opendkim opendkim-tools opendmarc
-----------------------------------------
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dbconfig-common dbconfig-mysql default-mysql-client libcommon-sense-perl
  libdbd-mysql-perl libdbi-perl libhashkit2 libjson-perl libjson-xs-perl
  libmemcached11 libmilter1.0.1 libmysqlclient21 libopendbx1 libopendbx1-mysql
  libopendbx1-sqlite3 libopendkim11 libopendmarc2 librbl1 libspf2-2
  libswitch-perl libtypes-serialiser-perl libvbr2 mysql-client-8.0
  mysql-client-core-8.0 mysql-common publicsuffix
Suggested packages:
  default-mysql-server | virtual-mysql-server libmldbm-perl libnet-daemon-perl
  libsql-statement-perl python python-mysqldb libxml-simple-perl
  libmime-tools-perl
The following NEW packages will be installed:
  dbconfig-common dbconfig-mysql default-mysql-client libcommon-sense-perl
  libdbd-mysql-perl libdbi-perl libhashkit2 libjson-perl libjson-xs-perl
  libmemcached11 libmilter1.0.1 libmysqlclient21 libopendbx1 libopendbx1-mysql
  libopendbx1-sqlite3 libopendkim11 libopendmarc2 librbl1 libspf2-2
  libswitch-perl libtypes-serialiser-perl libvbr2 mysql-client-8.0
  mysql-client-core-8.0 mysql-common opendkim opendkim-tools opendmarc
  publicsuffix
0 upgraded, 29 newly installed, 0 to remove and 0 not upgraded.
Need to get 111 kB/6,632 kB of archives.
After this operation, 76.4 MB of additional disk space will be used.
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Ign:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
Err:1 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libhashkit2 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
  Temporary failure resolving 'ppa.launchpadcontent.net'
Err:2 https://ppa.launchpadcontent.net/ondrej/php/ubuntu jammy/main amd64 libmemcached11 amd64 1.1.3-1+ubuntu22.04.1+deb.sury.org+1
  Temporary failure resolving 'ppa.launchpadcontent.net'
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/libm/libmemcached/libhashkit2_1.1.3-1%2bubuntu22.04.1%2bdeb.sury.org%2b1_amd64.deb  Temporary failure resolving 'ppa.launchpadcontent.net'
E: Failed to fetch https://ppa.launchpadcontent.net/ondrej/php/ubuntu/pool/main/libm/libmemcached/libmemcached11_1.1.3-1%2bubuntu22.04.1%2bdeb.sury.org%2b1_amd64.deb  Temporary failure resolving 'ppa.launchpadcontent.net'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
-----------------------------------------

I tried all of this without reinstalling Ubuntu as I was thinking that if its just DNS propagation issues, i might need to give the nameserver some time to propagate its records before it is able to work. Would you recommend or advise against reinstalling Ubuntu in my case? The only “disadvantage” i know of is having to ask for reverse DNS records every time.

Also, I think I did not yet set up rDNS for the current Ubuntu installation. Might that be an issue?

Ya know … maybe A2Hosting is just not a good provider to be used for hosting MiaB? It happens.

Some insight here. Because of the way A2 has configured their networking, DNS lookups are failing during the installation of MiaB. I got you around the failure that was apparent by adding the IP for the lookup that was failing … when you moved on, you came across the same situation, so you need to add another IP to your hosts file. Add this line as well.
185.125.190.52 ppa.launchpadcontent.net

One note … IPv4 is supposed to be at the top of the hosts file and IPv6 at the bottom, so your hosts file should actually look like:

127.0.0.1       localhost
216.119.143.24 mirror.a2hosting.com
185.125.190.52      ppa.launchpadcontent.net
[my ipv4] box.mydomain.tld box

::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

Actually, your main problem is causing this issue. ETA: Oh geez … actually your provider is causing all of this grief as their listing of repo’s has errors in it. Please consider using a different provider, for your own sanity.

Your host is forcing those servers, hence why we are here. :frowning:

It is not propagation at all … it is the fact that your resolver doesn’t resolve because MiaB wants to use it’s internal resolver and your host wants to use theirs. It is standard that the provider mind their own business, which this one is apparently not doing.

1 Like

Thanks for everything.

As I was moving forward with the installation, I had many more addresses that could only be resolved by adding them to the hosts file. After doing this like 5 times and the installation was still not done, I gave up and decided to try another provider, as I had a feeling there were more problems waiting for me with A2.

Now I’m with Contabo which almost installed perfectly but nsd is not running, which causes new headache. But I think I’ll this will be a new topic.

And a super easy one to fix. Let me find it for you…

2 Likes

Worked. Let’s hope everything goes well with restoring the backups :slight_smile:

1.nano /etc/hosts
2.sysctl -w net.ipv6.conf.all.disable_ipv6=0
3.sysctl -w net.ipv6.conf.default.disable_ipv6=0
4.systemctl restart nsd

or edit: /etc/sysctl.conf

Contabo must have this

it remains an open question why disabling IPv6 prevents nsd4 from starting)

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.