So i just installed virtualmin fresh in a new VPS. I then migrated a cpanel backup in. it setup all the domain/subdomains. i use godaddy for registrar and have it set as nameserver ns1.mydomain.comns2.mydomain.com. i then added ns1 and ns2 under the hostnames for it for the new server. i updated virtualmin with the new ips for the domain/ns. main domains are working fine and showing correctly. however subdomains are not working at all gives a DNS_PROBE_FINISHED_NXDOMAIN in browser when I try and access it. The subdomains are showing as Virtual Sub-Domain which from what I read is correct. dns for the subdomains show the correct A record for the new IP. Not sure what else I can do. if anyone has any ideas. i even tried making a brand new subdomain but that didn’t work either
That’s a delegation problem of some sort, or simply lack of records.
It’s not clear where you’re hosting your DNS. If in Virtualmin, I believe it defaults to creating a new zone for subservers even if they have a name within the parent domain, but that’s only relevant if Virtualmin is managing DNS.
We could probably be more helpful if you told us your actual domain and subdomain names, so we could dig into the DNS records and see what’s going wrong and where.
My apologies. Godaddy is strictly just managing the ns. Virtualmin is what is hosting the the dns. I haven’t touched godaddy from moving from cpanel besides just changing the ip. Everything worked fine on cpanel with it managing the dns. My domain is rocketmyrr.com with the ns under that. The subdomain I’m trying to get to work is re.rocketmyrr.com. I’m not 100% that I set the dns the correct way. I didn’t change anything from managing with cpanel. Just updating the ip of the ns under a record
mit@~:ping re.rocketmyrr.com ping: re.rocketmyrr.com: Name or service not known
This points to a DNS problem. As you stated, I got to the main site fine. Can you screen shot this. It is a little safer than a cut and paste in terms of bots I guess. Not sure about that anymore. But most of this stuff is public info since it is DNS. You can delete it soon enough regardless.
In this case, forum.brewforge is a sub server of brewforge. Subdomain in cPanel speak.
Ns2 is set as the same ip as ns1. I can’t add the ns2 in the virtualmin under dns for domain settings/server template as it says it doesn’t existeven though the registrar has it set as the same ip
Using the dns propagation tool to check seems only Mexico and Russia have the correct ip or can see it
I’ve taken this as far as I can. I don’t know what happens when you don’t have a ‘proper’ second DNS server. I don’t want to start guessing. We do know that NS2 is not working though. I don’t know why you can’t add it in Virtualmin or if your registrar will let you get by with one entry.
Probably not. My experience is that when a few odd sites pick it up and others don’t, it will not improve. DNS is pretty quick now days.
Note lines 8/9 in my screen shot. I’m not going to suggest you do any manual editing of the files. The fact VM won’t add it because it doesn’t see it troubles me a bit.
Just because your registrar allowed you to enter the same address for both doesn’t mean they are handling it the way you/we expect under the hood. Again though, at this point, I’m just guessing which isn’t all that helpful. I mean why does the main site work 100% and the sub servers not work 100% of the time?
Also, even though I see ns2 in the screen shot above, I can’t even do a dig of it at ns1. Kinda makes me think the glue records are borked.
; <<>> DiG 9.18.33-1~deb12u2-Debian <<>> @NS1.ROCKETMYRR.COM NS2.ROCKETMYRR.COM
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 63984
;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
;; WARNING: recursion requested but not available
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
; COOKIE: a3acc9ac447350fd0100000067cc6b313f5cccbc668cfbd5 (good)
;; QUESTION SECTION:
;NS2.ROCKETMYRR.COM. IN A
;; AUTHORITY SECTION:
rocketmyrr.com. 3600 IN SOA ns1.rocketmyrr.com. root.ns1.rocketmyrr.com. 2025030701 3600 600 1209600 3600
;; Query time: 143 msec
;; SERVER: 5.75.128.58#53(NS1.ROCKETMYRR.COM) (UDP)
;; WHEN: Sat Mar 08 11:07:13 EST 2025
;; MSG SIZE rcvd: 134
Apparently something was messed up in my DNS records I did a reset records and everything started working again including the ns2. Thank you for the help