Replies: 3 comments 10 replies
-
Hi @xsu734, thanks for asking ... however, the answer might not be entirely to your liking :-) Validating RR names is (not extremely, but resonably) easy. There are some special cases, and there is some stuff that is ... let me say, not very well defined (speak about underscores in host names, which are kind of allowed in special places, but not on all server implementations are they allowed everywhere - don't get me started). But eventually we have a sufficiently usable solution, considerung some feature flags that may be set or not. With values it's another story. There are almost a hundred different RR types, some of which have variants with entirely different syntaxes. Doing this by hand is almost impossible, at least it's not something anyone would want to maintain as a side-project. For this reason, there is some validation in place, but only to the extent that As for your CNAME example - what is a domain name?
Can you figure out why? Multiply that by a hundred. And yes, I tried ... |
Beta Was this translation helpful? Give feedback.
-
... and I will have another look at ways to provide a bit more validation of values. No promises, though - it's not the first attempt. |
Beta Was this translation helpful? Give feedback.
-
I implemented a mild form of validation for domain names in values in #256. This tries to avoid the problems outlined above (though it won't catch everything as a consequence) and will definitely disallow values like the 'RR values of death' from your examples. Fortunately I could only find 15 RR types that can contain domain names in their values - not all of them in the same form, though. I hope I didn't introduce too many restrictions (all tests are working, but there are never enough to be sure). |
Beta Was this translation helpful? Give feedback.
-
Hello,
since the Name field already has a check for domain name validity, I wanted to ask, why this check is not implemented in the Value field as well. For example, the value of a CNAME record should always be a domain name. Same goes for the second part of MX record value. Maybe I am missing some obvious reason, I'm still pretty new to DNS.
Thank you for your time and all the work on this plugin
Beta Was this translation helpful? Give feedback.
All reactions