DNS security

Do not want to expose domain name resolution process, to prevent capture can simply use the curl command as follows

curl "https://cloudflare-dns.com/dns-query?name=xiaokefang.com&type=A" -H "accept:application/dns-json"

Return follows

{"Status": 0,"TC": false,"RD": true, "RA": true, "AD": false,"CD": false,"Question":[{"name": "xiaokefang.com.", "type": 1}],"Answer":[{"name": "xiaokefang.com.", "type": 5, "TTL": 600, "data": "overdue.aliyun.com."},{"name": "overdue.aliyun.com.", "type": 1, "TTL": 166, "data": "47.91.169.15"}]}

 

Guess you like

Origin www.cnblogs.com/yuandaozhe/p/11335105.html