Control Web Panel

WebPanel => CentOS 9 Problems => Topic started by: Freespirits_GR_Host on December 20, 2025, 09:18:23 PM

Title: CWP7 Pro DNS Editor Bug: DMARC TXT Record Truncated at Semicolon
Post by: Freespirits_GR_Host on December 20, 2025, 09:18:23 PM
I’m reporting a DNS Editor issue in CWP7 Pro related to DMARC TXT
records.

Summary

When editing/adding a DMARC TXT record using the CWP GUI (User Panel DNS Functions), the record is silently truncated at the semicolon (;) when published, resulting in an invalid DMARC record.

Environment

Product: CWP7 Pro

OS: AlmaLinux 9

DNS service: BIND/named (CWP-managed zone)

Zone: skon.gr

Server: pieria (hostname shown on server shell)

Steps to Reproduce

Go to: User Panel → DNS Functions → (User Defined Records) → Edit TXT

Edit or add a TXT record with:

Record Name: _dmarc

TTL (Cache): 600 (or default)

Text record value: v=DMARC1; p=none

Click Save record

Verify the published DNS record:

Code: [Select]
dig +short TXT _dmarc.yourdomain
Actual Result

The published DMARC record becomes:

Code: [Select]
"v=DMARC1"
The p=none part is missing (and any content after ; is dropped). This
produces an invalid DMARC record.

Expected Result

The published record should contain the full DMARC value, for example:

Code: [Select]
"v=DMARC1; p=none"

(or split across strings but still containing p=none).

Additional Evidence

SPF TXT records appear to be published fine (even if shown split in dig
output, which is valid). Example output:

Code: [Select]
dig +short TXT yourdomain
"v=spf1" "ip4:xx.xxx.xxx.xx" "a" "mx" "~all"


So the issue seems specific to DMARC-style TXT values containing semicolons.
Title: Re: CWP7 Pro DNS Editor Bug: DMARC TXT Record Truncated at Semicolon
Post by: 6Sense on December 20, 2025, 11:38:15 PM
Are you using another DNS service in the interum as your current DMARC records show as fine in MXTools. I'm on ALMA 8 and don't seem to have this issue. Is it listed correctly in /var/named/your-domain.db

MXTools shows:

v=DMARC1; p=quarantine; rua=mailto:dmarc@skon.gr; fo=1
Title: Re: CWP7 Pro DNS Editor Bug: DMARC TXT Record Truncated at Semicolon
Post by: overseer on December 21, 2025, 03:41:22 PM
I am a bit wary of the config editors after having a few bugs crop up like this. So I tend to edit DNS zones (rarely) in the CLI with nano.
Also note that Starburst found a bug in the Code Editor, so you may want to check out this one based on Ace Editor:
https://forum.centos-webpanel.com/i-can-build-it/cwp-custom-codeeditor-based-on-ace-editor/