From f42fd5611d122bd25736db2acb453aad297feb91 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Tue, 21 Mar 2006 19:35:35 +0000 Subject: [PATCH] Allow up to 6 character TLDs. .travel and .museum are 6 characters long, so increase our previous TLD limit from 4 to 6. git-archimport-id: noodles@earth.li--pie/autodns--mainline--1.0--patch-16 --- autodns.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autodns.pl b/autodns.pl index 67beb7a..fa4e09b 100755 --- a/autodns.pl +++ b/autodns.pl @@ -74,7 +74,7 @@ sub valid_domain($) { my $domain = shift; $domain = lc $domain; - if ($domain =~ /^(?:[a-z0-9-]+\.)+[a-z]{2,4}$/) { + if ($domain =~ /^(?:[a-z0-9-]+\.)+[a-z]{2,6}$/) { return 1; } elsif ($domain =~ /^(?:[0-9\/-]+\.)+in-addr.arpa$/) { return 1; -- 2.39.5