Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MS DNS] TXT records with more than 255 characters #164

Open
bogdankruszewski opened this issue Dec 8, 2023 · 3 comments
Open

[MS DNS] TXT records with more than 255 characters #164

bogdankruszewski opened this issue Dec 8, 2023 · 3 comments
Assignees
Labels
Software Limitation Issue with Software we cannot fix

Comments

@bogdankruszewski
Copy link

bogdankruszewski commented Dec 8, 2023

Describe the bug
With Microsoft DNS Server it's not possible to add TXT records with more than 255 characters. There is also no error show and the TXT record won't appear in the DNS. Probably this issue also exists with other DNS servers, too, but I have no other installed for testing.

To Reproduce
Steps to reproduce the behavior:

  1. Go in a hosting space to 'Domains'
  2. Click on a domain and then on the button "Edit DNS zone records"
  3. Try to add a new TXT record with more than 255 characters
  4. See NO error and no new TXT record

Expected behavior
According to https://kb.isc.org/docs/aa-00356 it's possible to split the TXT record into multiple lines, where one line doesn't exceed 255 characters (included the quotes ""). MS DNS server also supports this feature, but SolidCP can't handle it. It's neccessary for example for DKIM keys with key length > 1024. Therefore SolidCP should allow longer input for TXT records and split it before saving correctly to DNS. Also if something went wrong with saving a DNS record, there should be an error message shown in SolidCP portal.

SolidCP Info

  • SolidCP Version: 1.4.9 and previous

Additional information
Also if you add such a splitted record manually to MS DNS, only the first line is shown in SolidCP and you have no possibility to delete such record. There is also no error shown, if you try it.

@bogdankruszewski bogdankruszewski changed the title DNS TXT records with more than 255 characters [MS DNS] TXT records with more than 255 characters Dec 8, 2023
@FuseCP-TRobinson FuseCP-TRobinson added the Software Limitation Issue with Software we cannot fix label Nov 14, 2024
@FuseCP-TRobinson
Copy link
Member

We have checked and this is a limitation of the Microsoft DNS command Get-DnsServerResourceRecord with no workaround found for the max record data of 255 chars.

I have checked PowerDNS for example and this is not a issue so its not a limit on the txt record.

If anybody is able to come up with a solution then please let us know.

@FuseCP-TRobinson
Copy link
Member

I have found a possible solution which could be failing back to WMI as it shows the record runnning the following:

(Get-WmiObject -Namespace Root\MicrosoftDNS -Query "select * from MicrosoftDNS_TXTType Where OwnerName='dkimlong._domainkey.mdns001.local'").RecordData

image

@FuseCP-TRobinson
Copy link
Member

Having checked this further using native WMI (the MSDns Provider) or Powershell command Set-WMIInstance both result in the same issue where setting the record is limited to 255 chars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Software Limitation Issue with Software we cannot fix
Projects
None yet
Development

No branches or pull requests

2 participants