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