@
465456 #4 拿 doh 试了下,就不对了
```
#!/bin/bash
curl -H 'accept: application/dns-json' '
https://dns.google/resolve?name=www.google.com&type=A'echo ""
curl -H 'accept: application/dns-json' '
https://doh.360.cn/resolve?name=www.google.com&type=A'echo ""
curl -H 'accept: application/dns-json' 'https://120.53.53.53:443/dns-query?name=
www.google.com&type=A'
echo ""
curl -H 'accept: application/dns-json' 'https://1.12.12.12:443/dns-query?name=
www.google.com&type=A'
echo ""
curl -H 'accept: application/dns-json' 'https://223.5.5.5:443/resolve?name=
www.google.com&type=A'
echo ""
curl -H 'accept: application/dns-json' '
https://dns.alidns.com/resolve?name=www.google.com&type=A'echo ""
```
```
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"
www.google.com.","type":1}],"Answer":[{"name":"
www.google.com.","type":1,"TTL":133,"data":"142.250.188.228"}]}
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"
www.google.com.","type":1}],"Answer":[{"name":"
www.google.com.","type":1,"TTL":6,"data":"93.179.102.140"}]}
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"
www.google.com.","type":1}],"Answer":[{"name":"
www.google.com.","type":1,"TTL":182,"data":"108.160.167.158"}]}
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":[{"name":"
www.google.com.","type":1}],"Answer":[{"name":"
www.google.com.","type":1,"TTL":182,"data":"108.160.167.158"}]}
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":{"name":"
www.google.com.","type":1},"Answer":[{"name":"
www.google.com.","TTL":28,"type":1,"data":"69.162.134.178"}]}
{"Status":0,"TC":false,"RD":true,"RA":true,"AD":false,"CD":false,"Question":{"name":"
www.google.com.","type":1},"Answer":[{"name":"
www.google.com.","TTL":100,"type":1,"data":"31.13.96.195"}]}
```