New install with EXTERNAL DNS

SYSTEM INFORMATION
Ubuntu Linux 22.04.2 REQUIRED
Webmin 2.021
Virtualmin version 7.7 REQUIRED

New install yesterday, all seemed to go ok
then added 4 virtualmin domains, all with NO to ‘DNS Domain Selected’

problem started when i needed to add some PHP extensions for opencart
sudo apt install php8.1-GD

for all mirrors, it could not resolve:
W: Failed to fetch http://mirror.a2hosting.com/ubuntu/dists/jammy/InRelease Temporary failure resolving ‘mirror.a2hosting.com
W: Failed to fetch http://mirror.a2hosting.com/ubuntu/dists/jammy-updates/InRelease Temporary failure resolving ‘mirror.a2hosting.com
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/jammy-security/InRelease Temporary failure resolving ‘security.ubuntu.com
W: Failed to fetch http://archive.canonical.com/ubuntu/dists/jammy/InRelease Temporary failure resolving ‘archive.canonical.com
W: Failed to fetch https://repo.virtuozzo.com/ctpreset/deb/InRelease Temporary failure resolving ‘repo.virtuozzo.com
W: Failed to fetch https://software.virtualmin.com/vm/7/gpl/apt/dists/virtualmin/InRelease Temporary failure resolving ‘software.virtualmin.com

i see from other blogs this is really about DNS
I am using an external DNS, which for each domain has all the A, MX, DKIM, etc records (as was set for the prior webmin install that was wiped yesterday)

so, WHY is there not an option in the virtualmin install to set an external DNS ?
my /etc/resolve.conf was:

nameserver 127.0.0.53
options edns0 trust-ad
search .

now set to:

search mydomain.com
nameserver 11.22.33.44 #note, changed to fake for this post
nameserver 11.22.33.45

my network interface on my vps seems to be named correctly, as venet0

and in the Webmin ‘BIND DNS SERVER’ - what records do i need here ?

I wish in the documentation for webmin/virtualmin there were simple steps here fro using an external DNS.

i did try the temp addition of the google NDS 8:8:8:8:

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

this created new errors, almost like it could not reach the external mirrors:

Err:16 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]

I can PING this IP ok

please help

anyone offering help?

If you are using external DNS create all needed records at your registrar pointed to your server’s IP. Use registrars nameservers. Uncheck DNS domain in Features and plugins. The registrar will be handling DNS not virtualmin.

yes, done that. I believe Virtualmin is correct
but apt-get update , has all the errors listed above

the resolve.conf had:

nameserver 127.0.0.53
options edns0 trust-ad
search .

which i believe is wrong for Webmin, and should list nameserver then a real external IP

not sure why the install script (sudo sh virtualmin-install.sh) doesn’t have an option here to use an external DNS, or what is wrong with the setup here in resolv.conf, or in the ‘networking configuration’ → ‘DNS Client Options’

I’m using registrars nameservers. Nothing is set up in bind.

i deleted the entry for server.myserver.com in BIND, and a reboot, but hasnt stopped the errors in apt-get
thinking of starting again here, ugh

that is default maybe set it back to that

can you post your resolve.conf ?

This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8).

Do not edit.

This file might be symlinked as /etc/resolv.conf. If you’re looking at

/etc/resolv.conf and seeing this text, you have followed the symlink.

This is a dynamic resolv.conf file for connecting local clients to the

internal DNS stub resolver of systemd-resolved. This file lists all

configured search domains.

Run “resolvectl status” to see details about the uplink DNS servers

currently in use.

Third party programs should typically not access this file directly, but only

through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a

different way, replace this symlink by a static file or a different symlink.

See man:systemd-resolved.service(8) for details about the supported modes of

operation for /etc/resolv.conf.

nameserver 127.0.0.53
options edns0 trust-ad
search .

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.2
Webmin version 2.021
Usermin version 1.861
Virtualmin version 7.7
Theme version 20.21
Package updates All installed packages are up to date

1 Like

thanks, mine is the same, but still the problem…
thinking of a fresh install, again

You have checked that your hostname resolves and it’s not one of the domains you added as virtual a server.

do you have a virtual server for your hostname ?
i.e server.abc.com ?
and what features are selected for that virtual server ? mine just had the DNS, which is odd as all the other real domains that is the option i have unchecked via ‘features’

yes and DNS records for it pointing at IP. I have a virtual server for it to make letsencrypt easy.

I think there is a general problem with the raw image for Ubuntu 22.04 LTS from a2hosting, because after a fresh install (I just wiped everything), i get the same error after apt-get update:

root@server:~# apt-get update
Hit:1 Index of /ubuntu jammy InRelease
Hit:2 Index of /ubuntu jammy-updates InRelease
Hit:3 Index of /ubuntu jammy InRelease
Hit:4 Index of /ubuntu jammy-security InRelease
Ign:5 Index of /ctpreset/deb/ InRelease
Hit:6 Index of /ctpreset/deb/ Release
Ign:7 Index of /ctpreset/deb/ Release.gpg
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Err:8 Index of /ctpreset/deb/ Translation-en
404 Not Found [IP: 151.139.128.10 443]
Ign:8 Index of /ctpreset/deb/ Translation-en
Reading package lists… Done

1 Like

Yeah, this has nothing to do with Virtualmin. No Virtualmin settings can have anything to do with DNS resolution of outside hosts. All the suggestions here for changes in Virtualmin are not relevant to your problem.

Either your DNS server(s) in /etc/resolv.conf aren’t working or that one host isn’t resolving for anyone. (Note you also have 127.0.0.53 in there which is a caching resolver, probably systemd-resolved, but Virtualmin has nothing to do with it…and the Webmin Network configuration module isn’t really aware of that stuff.)

I’m able to resolve that hostname ‘mirror.a2hosting.com’, so it’s presumably the resolver config on your system.

yeah, confirmed, a2hosting default ubuntu 22.04 image has bad links ! now fixed.

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