TXT Records Issue

nservices

Verified User
Joined
Dec 11, 2008
Messages
300
Hi,
in long txt records, for example: "k=rsa; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAKvJz5ye22PHdYTIuavCV0yjPh3rgdK9NFBH81uguQzlTPK9ADNDE3cTGQ/hcMIiPMJ4sYKmLBRUE+jGmm0QU84spQ/ZAqh86zh12Z9oN6NKADEPlzlwBO5D9rWcg5rILwIDAQAB"

it's brake the line on domain.db file and the record not working, it's happen to me few times, Please check and fix it.

Best Regards,
 
Note that named records or lines have a maximum length (I can't recall what the length is).. but lets say it's 128 characters.
If a value exceeds that, the zone won't be valid and will fail.
As such, named forces us to break long lines into multiple lines using:
( "multiple"
"quotes" )

which is valid, and required if you want named to run at all for oversized records.

The only catch is, the output is also chopped into strings, eg:
Code:
domain.com.                28800   IN      TXT     "k=rsa\; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhAKvJz5ye22PHdYTIuavCV0yjPh3rgdK9NFBH81uguQzlTPK9ADNDE3cTGQ/hcMIiPMJ4sYKmLBRUE+jGmm0QU84spQ/ZAqh86zh12Z9oN6NK" "ADEPlzlwBO5D9rWcg5rILwIDAQAB"
but that's also valid, according to the RFCs.

It's the job of the client reading those values to assemble the "multiple" "quotes" back into "multiplequotes".
My guess, is that whatever script is checking to see if that's valid.. or trying to use the value.. isn't doing so correctly.

This is the related change to DA:
http://www.directadmin.com/features.php?id=1387

John
 
Back
Top