问题
I am working on a site where people will submit their domain, And I want to know how will they confirm/verify their domain by DNS records. My site is in PHP
回答1:
Look at the use of CNAME's. Getting users to create custom CNAME's on their DNS records, and having your site try to access these is one way of verifying the ownership of a domain.
Another would be a bit more work, but getting users to add a Meta tag to their site, and again have your page attempt to access and read this Meta information to prove that they have access to the page - Thus verifying ownership.
UPDATE:
dns-get-record
Please see HERE for PHP doccumentation on getting and checking the DNS records (CNAME being one of these)
来源:https://stackoverflow.com/questions/16634622/how-to-verify-domain-ownership