Personal DNS Server Problems

Operating system Ubuntu Linux 20.04.5
Webmin version 2.001
Virtualmin version 7.2-1 Pro
Kernel and CPU Linux 5.4.0-126-generic on x86_64

I have lost one of my subdomains! Everything was working fine then suddenly it dropped off the internet and now I cannot find it.

I have two subdomains, one was set up as a virtual server in its own right (ns1) the other was set up as a subserver (15rsb).

Ns1 has a Master Zone of its own in Bind but 15rsb shares a Master Zone with its parent zone xsxtc, all of which was generated automatically by virtualmin.

Everything I would expect to see in a master zone has been reproduced in the parent zone for 15rsb and as I say, it was working fine but suddenly has stopped.

I also have a second server running virtualmin on which is a single virtual server that is another subdomain of the same parent, ns2. No matter what I have tried, ns2 does not appear to work properly as a name server.

Ns1 and ns2 both show up properly on dnschecker.org referencing their correct IP addresses. 15rsb does not. However zonemaster.net manages to find all three and reports a string of errors for each.

The ns1 errors (3) are RCODE refusal and dnskey issues with ns2.

The ns2 errors (2) are SOA response and another RCODE issue but this time with ns1.

The 15rsb errors (9) are all listed below.

15rsb.xsxtc.uk

2022-10-01 15:13 GMT+02:00

BASIC ERROR Nameserver ns2.xsxtc.uk/212.227.198.34 did not return NS records. RCODE was REFUSED.

DELEGATION ERROR Child does not list enough (0) nameservers (). Lower limit set to 2.

DELEGATION ERROR Empty NOERROR response to SOA query was received from ns1.xsxtc.uk/77.68.100.23.

DELEGATION ERROR Parent has nameserver(s) not listed at the child (ns1.xsxtc.uk; ns2.xsxtc.uk).

DELEGATION ERROR None of the nameservers listed at the parent are listed at the child.

DNSSEC ERROR Nameserver ns1.xsxtc.uk/77.68.100.23 responded with no DNSKEY record(s).

DNSSEC ERROR Nameserver ns2.xsxtc.uk/212.227.198.34 responded with no DNSKEY record(s).

DNSSEC ERROR Nameserver ns1.xsxtc.uk/77.68.100.23 responded with no DNSKEY record(s).

DNSSEC ERROR Nameserver ns2.xsxtc.uk/212.227.198.34 responded with no DNSKEY record(s).

The delegation statements confuse me as all three subdomains have A records in the parent zone and both nameservers are listed against the parent and the subdomain 15rsb although no nameservers are listed for the ns1 or ns2 subdomains.

The master zone for ns1 lists both nameservers and A records (but not and A record for ns2).

The master zone for (the remote server) ns2 lists both nameservers and A records (including an A record for ns1).

Consequently the delegation statements seem not to be taking account of all the listings in the zones. They must be working as there are no other nameservers are linked to these domains and they are visible across the internet.

All the records have been autogenerated by Virtualmin.

Using the bind configuration checker I had to manually change some entries and also delete and reinstall the DNSSEC key on the parent zone to clear one of the errors. I think it might have been at this point that the subdomain 15rsb was lost although it is not easy to be sure as it takes time to propagate both success and failure on the DNS network.

The Bind config checking tool is now reporting the configuration as fine on both servers, the main and the remote. I have stopped and started Bind and also rebooted the servers all to no avail.

I am only a novice at DNS but everything looks OK. I have waited 48 hours before raising this post but the issues have not changed so now I am looking for help please. I have obviously done something foolish but just cannot see what it is.

Can someone offer advice? Do I need to post more information?

Geoff

This is really weird as every other subdomain (www, ftp. m, webmail, admin and mail) resolve to the correct IP.

dig @ns1 (from xsxtc.uk server) gives:

[root@electra ~]# dig @ns1.xsxtc.uk 15rsb.xsxtc.uk

; <<>> DiG 9.16.1-Ubuntu <<>> @ns1.xsxtc.uk 15rsb.xsxtc.uk
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 42578
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: ee89f50a98b5bbfa01000000633950a16bcb4f545e8c8587 (good)
;; QUESTION SECTION:
;15rsb.xsxtc.uk. IN A

;; Query time: 379 msec
;; SERVER: 77.68.100.23#53(77.68.100.23)
;; WHEN: Sun Oct 02 08:49:37 UTC 2022
;; MSG SIZE rcvd: 71

dig @ns1 (from home Mac) gives:

dig @ns1.xsxtc.uk 15rsb.xsxtc.uk

; <<>> DiG 9.10.6 <<>> @ns1.xsxtc.uk 15rsb.xsxtc.uk
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6307
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;15rsb.xsxtc.uk. IN A

;; AUTHORITY SECTION:
15rsb.xsxtc.uk. 360 IN NS ns2.xsxtc.uk.
15rsb.xsxtc.uk. 360 IN NS ns1.xsxtc.uk.
;; Query time: 151 msec
;; SERVER: 77.68.100.23#53(77.68.100.23)
;; WHEN: Sun Oct 02 10:47:44 CEST 2022
;; MSG SIZE rcvd: 79

dig @ns2 (from xsxtc.uk server) gives:

[root@electra ~]# dig @ns2.xsxtc.uk 15rsb.xsxtc.uk

; <<>> DiG 9.16.1-Ubuntu <<>> @ns2.xsxtc.uk 15rsb.xsxtc.uk
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 7579
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: f21cac27f4e8bf7901000000633951b9938882e45b1d1443 (good)
;; QUESTION SECTION:
;15rsb.xsxtc.uk. IN A

;; Query time: 19 msec
;; SERVER: 212.227.198.34#53(212.227.198.34)
;; WHEN: Sun Oct 02 08:54:17 UTC 2022
;; MSG SIZE rcvd: 71

dig @ns2 (from home Mac) gives:

dig @ns2.xsxtc.uk 15rsb.xsxtc.uk

; <<>> DiG 9.10.6 <<>> @ns2.xsxtc.uk 15rsb.xsxtc.uk
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 63903
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;15rsb.xsxtc.uk. IN A

;; Query time: 94 msec
;; SERVER: 212.227.198.34#53(212.227.198.34)
;; WHEN: Sun Oct 02 10:55:39 CEST 2022
;; MSG SIZE rcvd: 43

So the nameservers are being found (but may not be working properly) and no A record for 15rsb.xsxtc.uk is found at either as no ANSWER SECTION is given.
.

Similar commands for www.xsxtc.uk works OK on ns1 but no answer given from ns2 (Recursion request issue?). Results are the same from my Mac but with recursion issue flagged on both.

So it looks as if ns1 is working, ns2 is not working and there is an issue with 15rsb in the Bind setup?

G

Well no one came to help me so deleted the subserver and rebuilt it as a top level server and it worked virtually immediately.

The lesson is I guess, do not use the subserver route!

Actually, although the subdomain is now working, the dns issues remain. Zonemaster reports that the ns2 name server is not returning a DNSKEY record. Is this because there is no DS record in the parent zone?

When I generate a subdomain, DS records are automatically added to the parent zone but this is when both zones are on the same Bind server. My ns2 subdomain is on a separate server in Germany and there is no linkage between the two servers. Do I need to link them and how do I generate the required DS entries to the parent server if they are linked or are not linked?

Geoff

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