[Mono-bugs] [Bug 392051] Validating "DNS" name using System.Net.Dns.GetHostByName

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 25 07:18:55 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=392051

User ssutapalli at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=392051#c5


Satyanarayana SVV <ssutapalli at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
             Status|RESOLVED                                        |REOPENED
         Resolution|INVALID                                         |




--- Comment #5 from Satyanarayana SVV <ssutapalli at novell.com>  2008-06-25 05:18:55 MDT ---
I tried to use it, but couldn't get reqired output.

 try
 {
   IPAddress ipr = IPAddress.Parse("164.99.100");
   Console.WriteLine(ipr.ToString());
 }
 catch(FormatException ex)
 {
    Console.WriteLine("Parse Exception {0}",ex.Message);
 }

 It's printing 164.99.0.100. It must through FormatException as the string I am
passing is invalid IP.



-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list