Mmmmmm...
we have a complex environment..servers come and go quite often..all i want to check is
For ex:
If the input is 23bck.demo.tes.com--it should be rejected
2s39.demo.test.com--it should be rejected..
and
If the input is abcd123.efgh.ijk.com--it should be accepted.
Just wanted to check the input is entered in proper format or not...Thanks Tony..
---------- Post updated at 05:08 PM ---------- Previous update was at 04:25 PM ----------
Bingo..It worked...I used "nslookup" instead of ping...Have to say thanks to Tony..for throwing some light on this one..