![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi guys, Is there a class/method that will check that a string is a legal FQDN without trying to look up the host? I want to allow an administrator to configure a destination to be either an IP address or FQDN. I can check for valid IP addresses using IPAddress.TryParse() but so far the only way to check for a FQDN is using regular expressions. Cheers for any help you can provide, Jason. |
#3
| |||
| |||
|
|
Is there a class/method that will check that a string is a legal FQDN without trying to look up the host? I want to allow an administrator to configure a destination to be either an IP address or FQDN. I can check for valid IP addresses using IPAddress.TryParse() but so far the only way to check for a FQDN is using regular expressions. |
#4
| |||
| |||
|
|
From: "Jason" <job2 (AT) nospam (DOT) nospam Subject: Validate FQDN Date: Wed, 2 Jan 2008 11:49:26 -0000 Hi guys, Is there a class/method that will check that a string is a legal FQDN without trying to look up the host? I want to allow an administrator to configure a destination to be either an IP address or FQDN. I can check for valid IP addresses using IPAddress.TryParse() but so far the only way to check for a FQDN is using regular expressions. Cheers for any help you can provide, Jason. |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |