Solved

is there a fucntion to check if a domain is registered

Posted on 2007-12-06
3
628 Views
Last Modified: 2008-02-01
i want to check if a domain is registered, can php do this?
0
Comment
Question by:markmchugh
3 Comments
 
LVL 31

Expert Comment

by:Zoppo
ID: 20420454
Hi markmchugh,

you can try to get the IP address using 'gethostbyname' ...

hope that helps,

ZOPPO
0
 
LVL 24

Accepted Solution

by:
glcummins earned 500 total points
ID: 20420534
For the most complete results, you can use your PHP script to access a webpage such as http://www.whois.net/whois_new.cgi?d=zamuta&tld=com (Insert the desired domain in the place of 'zamuta' and 'com'. You can use cUrl or fopen to get the contents of the page. Then parse the results to determine if the domain is registered.

Zoppo's comment will be much easier to use. However, it will return inaccurate results if the domain is registered, but not yet listed in DNS.
0
 
LVL 82

Expert Comment

by:hielo
ID: 20420597
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses four methods for overlaying images in a container on a web page
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question