• C

domain name

How can I check a domain name is valid or not ?

Andrew
andrewyuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RONSLOWCommented:
do you mean valid syntax, or if it is the name of an actual domain?

0
OMCommented:
If you're asking for "how to check the existence of a domain name", there is no trivial answer : raise the number of points
to 100 or higher because you need ans answer with piece of code.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RONSLOWCommented:
that is hardly an answer
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

OMCommented:
I'am really sorry, I mis-checked the Answer box.
Andrew, please, reject the answer. And update the
number of points if you really want an answer.

0
RONSLOWCommented:
andrewyu ... are you still out there ?

0
andrewyuAuthor Commented:
Sorry, I don't have any more point !!!!!!
0
RONSLOWCommented:
BUT .. you havne't answered OUR questions.

Do you want to check the syntax of a domain name (ie. does this string look like a legal domain name) or to check that it is actually an existing domain name (is there a domain with this name)??
0
andrewyuAuthor Commented:
I want to write a program to check whether a domain name is reserved or not ?

Andrew
0
RONSLOWCommented:
aha .. that probably means getting at the databases of reserved names.  A domain name could be reserved without a server actually using it at any given time.  But unfortunately this is not my area of expertise ... OM ??

0
OMCommented:
As far as I know "reserved" name means "used". This is not
completely exact, since there are delay of propagation which
could entrain some wrong answer.
As I said before, this is not so trivial to ask for domain
name since you have to query a NS.
In an approximate way you should test for the existence (i.e.
registering) of a machine called www.domain.name, with
a gethostbyname() call.

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.