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

Restrict fqdn checks to an explicit list of TLDs #88

Open
rjsparks opened this issue Feb 27, 2025 · 0 comments
Open

Restrict fqdn checks to an explicit list of TLDs #88

rjsparks opened this issue Feb 27, 2025 · 0 comments

Comments

@rjsparks
Copy link
Member

Carrying this forward out of #75:

Restrict matches the way idnits2 does at

idnits/idnits

Lines 2729 to 2734 in 989e178

if ( fqdn !~ /([a-z0-9_-]+\.)+example(.(com|org|net))?$/ \
&& fqdn !~ /([a-z0-9_-]+\.)+(urn|uri|in-addr)\.arpa?$/ \
&& fqdn !~ /www.ietf.org/ \
&& fqdn !~ /[0-9]+\.[0-9]+\./ \
&& fqdn !~ /.\..\../ \
&& fqdn1!~ /.*@$/ ) {

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

No branches or pull requests

1 participant