Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DDFAFE4BC for ; Thu, 24 Jan 2013 22:55:15 +0000 (UTC) Received: (qmail 27296 invoked by uid 500); 24 Jan 2013 22:55:14 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 26884 invoked by uid 500); 24 Jan 2013 22:55:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 26777 invoked by uid 99); 24 Jan 2013 22:55:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 22:55:13 +0000 Date: Thu, 24 Jan 2013 22:55:13 +0000 (UTC) From: "Marc Huffnagle (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VALIDATOR-307) isValid checks if the given address is only IPV4 address and not IPV6 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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