FuseCP / SolidCP

Multi Server Control Panel for Windows based on C#
https://solidcp.com
Other
84 stars 73 forks source link

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

Open bogdankruszewski opened 9 months ago

bogdankruszewski commented 9 months ago

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

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.