commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Huffnagle (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VALIDATOR-307) isValid checks if the given address is only IPV4 address and not IPV6
Date Thu, 24 Jan 2013 22:55:13 GMT

    [ https://issues.apache.org/jira/browse/VALIDATOR-307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13562090#comment-13562090
] 

Marc Huffnagle commented on VALIDATOR-307:
------------------------------------------

Right now, isValid does not do DNS name resolution.  The proposed solution (using InetAddress.getByName())
will attempt to resolve a hostname that is given to it.  For example:

InetAddress.getByName("www.example.com")

will be returned as a valid IPv6 address, and will have done a lookup of that hostname.
                
> isValid checks if the given address is only IPV4 address and not IPV6
> ---------------------------------------------------------------------
>
>                 Key: VALIDATOR-307
>                 URL: https://issues.apache.org/jira/browse/VALIDATOR-307
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Routines
>    Affects Versions: 1.4.0 Release
>            Reporter: Senthil Kumar
>              Labels: ipv6, validation
>             Fix For: 1.4.1
>
>
> function isValid(String inetAddress) checks if the given address is only IPV4 and not
IPV6. So the function returns false for a valid IPV6 address. Would it be possible to add
IPV6 validation as well?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message