Skip to content

Conversation

maltris
Copy link
Contributor

@maltris maltris commented Jul 30, 2024

Supported since PowerDNS 4.4, this adds the HTTPS resource type to dns-ui

Supported since PowerDNS 4.4, this adds the HTTPS resource type to dns-ui
@maltris
Copy link
Contributor Author

maltris commented Jul 31, 2024

I even came up with a regex that pretty much can verify the integrity of the HTTPS record:

^\b(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])\b\h(\.|\b((?=.{1,255}$)(?:xn\-\-)?(?!-)(?!.*--)[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*\.?)\b)(?:\.)?(?!=)(\h(([a-z0-9-]{1,63})((\=\")[\x21\x23-\x27\x2A-\x3A\x3C-\x7E]{1,255}+(\"))?)?)*?$

If you cannot fully follow it, dont worry, because I cannot either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant