Which DNS records is for Domain owner Contact information ? if there is no such record then how can i get the owner information in php ?
Asked
Active
Viewed 1,568 times
0
-
This question isn't even remotely on topic. – Dec 13 '12 at 05:00
-
1Use a whois service. I think this should be moved to SuperUser or a more relavent site, though. – jchapa Dec 13 '12 at 05:02
-
4The OP is asking how to get the information in PHP. That's programming related. – Drazisil Dec 13 '12 at 05:06
-
RFC 2142 mandates abuse@domain as the abuse handling contact. This is not universally supported, though. There is a database at abuse.net which you can query; http://www.abuse.net/contact.phtml – tripleee Dec 17 '12 at 08:00
2 Answers
5
For most domains, the WHOIS data will contain the information you are looking for. (Note, however, that some Top-Level Domains, such as .to
, don't require the owner to publish full whois records, and some users pay a company for "Private Registration" so they don't need to include their direct contact information.)
You can use any of a number of PHP libraries to look up WHOIS information.

Moshe Katz
- 15,992
- 7
- 69
- 116
-
Net_whois How this script get whois data , if from external source or API then I can't use it ? Do you know any free API service to get whois data and dns records ? I used NET_DNS2 to get dns records but i need domain owner contact information. – Ragni Munjal Dec 13 '12 at 05:09
-
2@RagniMunjal The same way that you need to provide the name of a DNS server to query, you need to provide the name of a WHOIS server to query. If you download phpWhois and look at the code, you will see the list of WHOIS servers that it uses. Most of them are the primary whois servers for each Top-Level Domain. – Moshe Katz Dec 13 '12 at 05:13
-
1Looking at the code is always good. Look at it enough it becomes clearer then English. Honestly the best advice ever. – JSON Dec 13 '12 at 06:27
1
Contact information isn't a DNS record, it's a WHOIS record.
You want to use something like http://www.phpwhois.org/

Drazisil
- 3,070
- 4
- 33
- 53