DNS Server stopped working after update

I updated my mailinabox yesterday to:

Mail-in-a-Box Version:  v56

Everything seemed fine, accessed emails directly in roundcube etc.

Today noticed on my desktop client, connection to my emails on the mailinabox were disconnected so went to login to admin to check:

https://box.{domain}.email/admin

And got this no connection issue - like no dns…

So I checked on my domain and saw no dns for my domains using this servers NS responding…

I then checked on the Nameservers resolution and nothing…

I did check with ICANN and I can see that the NS for my domain are set correctly still…

And I double checked with my Domain registrar, still pointing and asked them to look into it…

They replied with:

Hello,

Thank you for contacting Namecheap Support!

Per our check, the XXX.email domain was pointed to the following nameservers correctly on our side:
ns1.box.XXX.email
ns2.box.XXX.email

You can check it using ICANN Whois tool at ICANN Lookup .

However, we cannot locate the host records set for the domain on these nameservers. Please contact your hosting-provider to investigate the issue further.

Should you have any other questions or require any further help, please do not hesitate to contact us anytime. We are here for you 24/7/365.

So it looks like the Name Server Daemon on the mailinabox might be screwed up…

I checked on the box, is running fine:

root@box:~# service nsd status
● nsd.service - Name Server Daemon
   Loaded: loaded (/lib/systemd/system/nsd.service; enabled; vendor preset: enabled)
   Active: active (running) since Wed 2022-03-30 18:48:21 CST; 16min ago
 Main PID: 871 (nsd)
    Tasks: 3 (limit: 2360)
   CGroup: /system.slice/nsd.service
           ├─ 871 /usr/sbin/nsd -d
           ├─ 893 /usr/sbin/nsd -d
           └─1027 /usr/sbin/nsd -d

Mar 30 18:48:21 box.xxxx.email systemd[1]: Started Name Server Daemon.

I checked NSD config files:

root@box:/etc/nsd# cat nsd.conf
# Do not edit. Overwritten by Mail-in-a-Box setup.
server:
  hide-version: yes
  logfile: "/var/log/nsd.log"

  # identify the server (CH TXT ID.SERVER entry).
  identity: ""

  # The directory for zonefile: files.
  zonesdir: "/etc/nsd/zones"

  # Allows NSD to bind to IP addresses that are not (yet) added to the
  # network interface. This allows nsd to start even if the network stack
  # isn't fully ready, which apparently happens in some cases.
  # See https://www.nlnetlabs.nl/projects/nsd/nsd.conf.5.html.
  ip-transparent: yes

  ip-address: XXXXXXXXXXXXXXX
include: /etc/nsd/nsd.conf.d/*.conf
root@box:/etc/nsd# ls -l /etc/nsd/nsd.conf.d/
total 0
root@box:/etc/nsd# ls /etc/nsd/zones
box.XXX.email.txt         XXX.email.txt         XXXXXX.com.txt
box.XXX.email.txt.ds      XXX.email.txt.ds      XXXXXX.com.txt.ds
box.XXX.email.txt.signed  XXX.email.txt.signed  XXXXXX.com.txt.signed

As far as I can tell in these files, everything looks good…

But it is not resolving domains…

Luckily it’s just my personal email I use this for, so I guess I can find time to spin up another box at some point or check something else out, but if anyone has any ideas before I go ahead and do that then I’m all ears?

Two things you can check:

Are you able to access the dashboard by navigating to https://<ip address>?

@KiekerJan @openletter

I am getting a 503 on the admin via IP.

Checked to see if PHP was up, it was, but found this in the logs:

2022/03/30 22:54:01 [error] 6225#6225: *136 connect() failed (111: Connection refused) while connecting to upstream, client: 104.223.87.12, server: box.XXX.email, request: "GET /admin HTTP/2.0", upstream: "http://127.0.0.1:10222/", host: "134.209.184.225"

I have also never had to set up custom nameservers with Namecheap… I don’t believe… it was 3 years or more ago I set this box up.

In the past I just had these set:

Also thanks for chipping in…

Without configuring the custom nameservers, MiaB cannot function as your name server because there is no way to discover the IP address of the DNS server.

What happens if you run sudo mailinabox?

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