Hi everyone. I am trying to set up virtualmin on my ubuntu 18.04
I was going through the Post-installation Wizard DNS configuration and then an error appeared.
The error says Primary nameserver is not a valid DNS name
I downloaded and installed the install.sh script
I went through the setup carefully and then fro some reason when i enter in the Primary nameserver as https://example.com:10000
and i clicked next the error says Primary nameserver is not a valid DNS name
That’s not the name of a server. That’s a protocol (https://) a hostname (example.com) and a port (10000). And, the protocol is not even DNS (https is web) and the port is not DNS (10000 is Webmin/Virtualmin)
There’s essentially two ways to do DNS: host your own with BIND or host DNS elsewhere. If you search these forums or google “webmin virtualmin nameservers” there’s enough info and scenarios for putting a plan together. If you’re not comfortable with DNS you should probably use your domain registrar or a DNS service. In that case you would enter their first nameserver in Virtualmin’s wizard.
In addition to what @Joe and @ramin said, you should set up 5 domains in the following manner for the best installation experience with Virtualmin:
Create and set domain.tld and www.domain.tld to IP address of the server on which Virtualmin will be installed. These domains will become the first hosted domain that you will use under Virtualmin.
Create and set vps.domain.tld to IP address of the server on which Virtualmin will be installed. This will be the hostname that you will use for your Virtualmin server.
Create and set ns1.domain.tld and ns2.domain.tld to IP address of the server on which Virtualmin will be installed. You will set these to be the primary and secondary nameservers for your Virtualmin server in the Install Wizard.
With this simple pre-flight setup, your experience with the installation of Virtualmin and its future use will be a smooth one.
I wish this info were to be displayed in the Install Wizard. It will help many first time users prep their domain for a successful Virtualmin install and lead to a wider adoption of Virtualmin.