Why does my dns keep breaking and now I'm consistently running into http retcodes when submitting things

why.nixc.us will not show up for whatever reason in it’s current state.

Can you access your custom DNS page? If so, please provide a screen cap. (PM is fine if you prefer)

Also does the file /home/user-data/dns/custom.yaml have any contents? If so share that file as well. @Ruseen

it’s a pretty long list of things. one sec I’ll dm.

Yikes! It is. :slight_smile:

I do not see what I am looking for though. Oftentimes this type of issue is caused by someone improperly listing the root of a domain as a CNAME, but I do not see that here.

I am going to take a second look now though. Just in case.

Yeah I use the heck out of this badboy.

Sometimes there are entries in custom.yaml for which the domains are no longer managed by Mail-in-a-Box
Also, you might be able to get details on the error using the command sudo systemctl status mailinabox

we looked into custom.yaml and saw no glaring issues generated by the panel but this is also the first time I’ve had it recommended to use systemctl status mailinabox

Ah yeah, my bad. I meant sudo journalctl -u mailinabox

Jun 25 06:30:51 box.p.nixc.us start[598791]: Zone not read, error: Syntax error, could not parse the RR's rdata at /etc/nsd/zones/fansdb.xyz.txt line 22
Jun 25 12:56:08 box.p.nixc.us start[646672]: # localhost:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
Jun 25 12:56:08 box.p.nixc.us start[646672]: # localhost:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
Jun 25 12:56:08 box.p.nixc.us start[646672]: # localhost:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
Jun 25 12:56:08 box.p.nixc.us start[646672]: # localhost:22 SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.1
Jun 25 12:56:09 box.p.nixc.us start[646684]: Zone not read, error: Syntax error, could not parse the RR's rdata at /etc/nsd/zones/fansdb.xyz.txt line 22
Jun 25 12:56:09 box.p.nixc.us start[2214]: [2023-06-25 12:56:09,058] ERROR in app: Exception on /mail/aliases/add [POST]
Jun 25 12:56:09 box.p.nixc.us start[2214]: Traceback (most recent call last):
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app
Jun 25 12:56:09 box.p.nixc.us start[2214]:     response = self.full_dispatch_request()
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatc>
Jun 25 12:56:09 box.p.nixc.us start[2214]:     rv = self.handle_user_exception(e)
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatc>
Jun 25 12:56:09 box.p.nixc.us start[2214]:     rv = self.dispatch_request()
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/usr/local/lib/mailinabox/env/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_req>
Jun 25 12:56:09 box.p.nixc.us start[2214]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/root/mailinabox/management/daemon.py", line 75, in newview
Jun 25 12:56:09 box.p.nixc.us start[2214]:     return viewfunc(*args, **kwargs)
Jun 25 12:56:09 box.p.nixc.us start[2214]:   File "/root/mailinabox/management/daemon.py", line 243, in mail_aliases_add
Jun 25 12:56:09 box.p.nixc.us start[2214]:     return add_mail_alias(
lines 1-24

Is that the last line? Overhere it is not 25 of June anymore :wink:
Also, check line 22 of /etc/nsd/zones/fansdb.xyz.txt

Good eye I wonder why its so wrong. hmmmm


it shows that the time is correct.

What I meant was that the output of the journalctl does not seem complete. You can pagedown until the last line.


sorry I’m putting out fires on another project simultaneously. thanks for looking at this.

My problem is I only do these entries through the panel why is the panel generating bad data.

So there was a similar issue recently However, not sure if and how that got resolved. But let’s follow up on the stuff we saw there.

You can try to reconstruct the command that is shown on the last line. It will become something like /usr/bin/ldns-signzone -e 20230801 -n /etc/nsd/zones/fansdb.xyz.txt... (basically remove the , and the ' from the line, replacing them with spaces.)
Although judging from this line, it will probably complain about line 22 in the fansdb dns file (which you already posted earlier). So take a look at file /etc/nsd/zones/fansdb.xyz.txt and check what line 22 is. Take good care when counting, there are also empty lines which also count. My guess is that it will point at a custom dns entry.

I cleared the /tmp directory as it seemed a number of things were referencing that


however adding another cname record for test2.nixc.us and am still getting the 500.

Wiki    IN      CNAME   fansdb.xyz.
_dmarc  IN      TXT     "v=DMARC1; p=quarantine;"
default._domainkey      IN      MX      "v=DKIM1;k=rsa;p=M

I truncated the dkim obviously for security reasons.

To be clear _dmarc IN TXT "v=DMARC1; p=quarantine;" is the line in question.