Domain name search
Moderator: General Moderators
A quick example:
Code: Select all
if (system("dig ".$domain." | grep 'ANSWER: 0,'") == "")
{
echo "Domain exists!";
}
else
{
echo "Domain doesn't exist!";
}
Last edited by VladSun on Mon Jul 05, 2010 7:07 am, edited 2 times in total.
There are 10 types of people in this world, those who understand binary and those who don't
Re: Domain name search
Hi all.
Now I faced the new problem on Domain name search.
for example the http://focalpoint.com/ is the site they already register but if i use shell_exec() or exec() functions, It shows the domain name not exists.
Can anyone provide suggestions or code to achieve the Domain name search function.
Thanks in Advance
Now I faced the new problem on Domain name search.
for example the http://focalpoint.com/ is the site they already register but if i use shell_exec() or exec() functions, It shows the domain name not exists.
Can anyone provide suggestions or code to achieve the Domain name search function.
Thanks in Advance
Re: Domain name search
No, it's not registered yet:
Code: Select all
dig http://focalpoint.com/
; <<>> DiG 9.3.4 <<>> http://focalpoint.com/
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 56257
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;http://focalpoint.com/. IN A
;; AUTHORITY SECTION:
. 10800 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2008070101 1800 900 604800 86400
;; Query time: 56 msec
;; SERVER: 212.72.193.50#53(212.72.193.50)
;; WHEN: Wed Jul 2 12:43:38 2008
;; MSG SIZE rcvd: 115
There are 10 types of people in this world, those who understand binary and those who don't
Re: Domain name search
Hi VladSun,
Thanks for your reply.
When I try to register the site http://focalpoint.com/, on media Temple.
It shows an error maessage "The domain name "focalpoint.com" is unavailable".
Thanks for your reply.
When I try to register the site http://focalpoint.com/, on media Temple.
It shows an error maessage "The domain name "focalpoint.com" is unavailable".
Re: Domain name search
Hi.
Currently I am using fsock() function for checking the domain name.
I am not sure, How it will work on all conditions.
Can anyone confirm this?
Thanks in advance
Currently I am using fsock() function for checking the domain name.
I am not sure, How it will work on all conditions.
Can anyone confirm this?
Thanks in advance