Name Servers host -t NS example. com.au outputs example. com.au name server example .com.au

SYSTEM INFORMATION
OS type and version AlmaLinux 9.5
Webmin version 2.202
Virtualmin version 7.20.2
Webserver version 2.4.62
Related packages SUGGESTED

Name Servers question, sorry being a new forum user, it wouldn’t allow more than 2 urls so spaced them out.

Set up a new (my first) top level server; let’s call it example.com

Wondering if I’ve made a mistake as

host -t NS example .com.au

I was expecting

example .com.au name server ns1. example.com.au.
example .com.au name server ns2. example.com.au.

but the output is

example .com.au name server example .com.au.

DNS has been set with

ns1.example .com.au
and
ns2.example .com.au

as per add ns1 and ns2 in virtualmin DNS records source:
virtualmin .com/docs/server-components/troubleshooting-dns/#

Any tips on how to fix please?

-------------------------------------- DNS records
$ttl 3600
example .com.au. IN SOA example .com.au. root.example .com.au. (
2024112601
3600
600
1209600
3600 )
@ IN NS example.com.au.
example .com.au. IN A 103.xx.xx.xxx
www.example .com.au. IN A 103.xx.xx.xxx
ftp.example .com.au. IN A 103.xx.xx.xxx
localhost.example .com.au. IN A 127.0.0.1
compers.example .com.au. IN A 103.xx.xx.xxx
webmail.example .com.au. IN A 103.xx.xx.xxx
admin.example .com.au. IN A 103.xx.xx.xxx
mail.example .com.au. IN A 103.xx.xx.xxx
example .com.au. IN MX 5 mail.example .com.au.
example .com.au. IN TXT “v=spf1 a mx a:example .com.au ip4:103.xx.xx.xxx ip4:103.xx.xx.xxx ?all”
202410._domainkey.example .com.au. IN TXT ( “v=DKIM1; k=rsa; t=s; p=” )
@ IN CAA 0 issuewild letsencrypt .org
ns1.example .com.au. IN A 103.xx.xx.xxx
ns2.example .com.au. IN A 103.xx.xx.xxx

I think you need to add
@ IN NS ns1.example.com.au.
@ IN NS ns2.example.com.au.
and remove
@ IN NS example.com.au.

Thanks. If that’s the case, maybe the documentation referenced in the fist post needs correctiing.

Virtualmin will create them for you from the template setup.

If they external DNS then you will need to do it manually.

There is currently a bug where nameserver entries are not always created.

This should be fixed in the next release of virtualmin. I can’t remember exactly when they are not created but search virtualmin GitHub under my username and you will find it.

This might not be the issue you are having but I thought I would mention it.

Thanks, I have no idea if that’s the issue either. I’d edit the DNS manually but concerned I’ll lock myself out!

My procedure was:

  • install Webmin
  • install Virtualmin
  • install first virtual server
  • followed add ns1 and ns2 in virtualmin DNS records as per source:
    virtualmin .com/docs/server-components/troubleshooting-dns/#

So perhaps the doco is incorrect or the Virtualmin virtual server install didn’t do as expected. Either way, my DNS record doesn’t report as correct. I suppose I could look at my cPanel equivalent to see what it should be and manually edit it but it kinda sucks :slight_smile:

If you wrap them in backticks, they will be code and not URLs and there will be no limit. It’s also good practice to wrap all config files and command line samples in either backticks (`) or triple backticks (```), so they will appear as preformatted text.

1 Like

That’s the wrong way.

The one step is:

Install Virtualmin according to our documentation.

Preinstalling any software, including Webmin, is unnecessary, and potentially destructive for the installation of Virtualmin. The Webmin package from Webmin.com probably won’t cause any problems, but the safest option is to follow our documentation.

1 Like

Ah, thanks. Thought I read Virtualmin was a module of Webmin so assumed had to have Webmin first.

It is a bunch of modules of Webmin, but the Virtualmin installer installs everything in the right way, if given a freshly installed supported OS. It’s probably fine as long as you used the appropriate package for your OS (i.e. not a tarball with the Webmin setup script), and you didn’t do anything else before installing Virtualmin.

But, of course, that has nothing to do with DNS issues. I just wanted to make sure anyone stumbling on this thread in the future wouldn’t think that was the right way to install Virtualmin.

1 Like

Thanks Joe. Reinstalled the ISO, didn’t do any updates then SSH into server; unfortunately got two errors. Will post them in another topic/thread.

Have to wait 47 minutes as forum claims I’m too enthusiastic. Need AI so you know I’m not a spammer.

I have seen two errors in the install. Will post in a new topic when allowed.

Phase 2 of 4: Setup

error: package is not installed

Phase 4 of 4: Configuration

[21/21] Configuring Virtualmin
[28/Nov/2024:04:15:45 +0000] Failed to work out externally visible IP address virtual-server/virtual-server-lib-funcs.pl (line 18774)
Error

Failed to work out externally visible IP address virtual-server/virtual-server-lib-funcs.pl (line 18774)
----- Cleaning up

Weird,

whois shows correct

Name Server: ns1.example.com.au
Name Server IP: 103.xx.xx.xxx
Name Server: ns2.example.com.au
Name Server IP: 103.xx.xx.xxx

host -t NS shows incorrect.
example.com.au name server hostname.example.com.au.