Possible wrong validation for IPv4 on DomainNameUtil


#1

I was looking at the email validator and noticed an issue with the DomainNameUtil. The IP address validation pattern is set to “[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}”.This accepts IP address like 999.999.999.999, which is not a valid IP. A more valid version could be ((25[0-5]|2[0-4]\d|[01]?\d\d?).){3}((25[0-5]|2[0-4]\d|[01]?\d\d?)), but not sure if this is something that should be fixed or not.


#2

Yes, we are not very thorough in checking that because we think it does not have that much value.

Did you experience a real problem with it?