Can't login with https://ns1.example.top:10000

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Virtualmin version 7.7

I have a basic Linode machine
I bought a cheap .top tld domain from Porkbun

In Porkbun I set

Authorative nameservers to:

ns1.example.top
ns2.example.top

Glue records to

ns1.example.top
172.xxx.xx.xxx
ns2.example.top
172.xxx.xx.xxx

** Both to the same IP as Linode only has the one IP

On the Linode server I did the following:

Update packages
apt update && apt upgrade -y

Set hostname
hostnamectl set-hostname ns1.example.top

Set hosts

nano /etc/hosts
172.xxx.xx.xxx ns1.example.top ns1

Finally I installed Virtualmin with

wget https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh
chmod a+x virtualmin-install.sh
sh virtualmin-install.sh

Everything went smoothly without error, I can login with
https://172.xxx.xx.xxx:10000
but not
https://ns1.example.top:10000

The dash shows
System hostname ns1.example.top (172.xxx.xx.xxx)

Have I done something wrong?

That sounds right.

So, first make sure the glue records are working and right. Use dig with the +trace option to see what the top level servers think the name servers are and what IPs they resolve to.

e.g.

dig +trace +additional virtualmin.com NS

If those are right, then the only remaining possibility (short of propagation delay or some problem with your local DNS configuration) would be no zone or A record in the zone for that hostname. I don’t know exactly what all the default domain does (it’s supposed to be designed to work exactly with the steps you’ve outlined, though, as I understand it, so it should have done the things).

Check locally to make sure BIND has records:

host example.tld localhost

And for NS

host -t NS example.tld localhost

Sorry the long hiatus, but here I am returning to this issue now.

I’ve contacted Porkbun and they seem to think I have set the glue records correctly.

They say I need to have A records set-up on the server, but I’m not sure how to check that. On this FAQ page:
DNS Frequently Asked Questions – Virtualmin.
How do I setup nameservers for my server?
It says:

After registering your nameservers at your domain name registrar – you’ll want to log into Virtualmin, select your “example.com” domain, click Server Configuration → DNS Records, and create a new “A - IPv4 Address” record for ns1.example.com and ns2.example.com
but I can’t see how to do that?

On the dashboard I see:
System hostname - ns1.example.top (172.xxx.xx.xxx) when I click on that I see:

Hostname and DNS Client
Hostname - ns1.example.top — DNS servers 127.0.0.53

When I run this dig (suggested by Porkbun), I get this:

dig @172.xxx.xx.xxx ns1.example.top

; <<>> DiG 9.11.4-P2-RedHat-9.11.4-26.P2.el7_9.13 <<>> @172.xxx.xx.xxx ns1.example.top
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 47576

When I run this dig, I get:

dig +trace +additional example.top NS

snip....

couldn't get address for 'ns1.example.top': not found
couldn't get address for 'ns2.example.top': not found
dig: couldn't get address for 'ns1.example.top': no more

Running the host command…

root@ns1:~# host example.top localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Host example.top not found: 2(SERVFAIL)

…and running with the -t flag

root@ns1:~# host -t NS example.top localhost
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:

Host example.top not found: 2(SERVFAIL)

I’d appreciate more guidance…

example. com is your domain - this should translate from IP, and this is your main host
ns1. example. com is not a site in the classic meaning, is a nameserver.

Nameservers need time to work, as they need to propagate trough out internet to communicate with the other nameservers on the internet to know your example. com should point out to your IP address

Maybe this helps:
“A nameserver is a server in the DNS that translates domain names into IP addresses. Nameservers store and organize DNS records, each of which pairs a domain with one or more IP addresses. These servers act as the bridge between domain names, which we humans can remember, with IP addresses, which computers can process.”

Source: What Is a Nameserver? (And Why Does It Matter?).

*I had to put a space in example. com to be able to provide the source, cos I’m a newbie too and can’t post more than one link…

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