Smartdns debug log analysis

SHOYUF

```log /etc/smartdns # smartdns -f -x [2022-10-17 14:59:43,042][NOTICE][ smartdns.c:359 ] smartdns starting...(Copyright (C) Nick Peng, build: Oct 17 2022 14:24:34)

[2022-10-17 14:59:43,045][ INFO][ dns_server.c:5229] auto enable cache persist.

[2022-10-17 14:59:43,045][ INFO][ dns_cache.c:782 ] load cache file /tmp/smartdns.cache, total 8 records
[2022-10-17 14:59:43,046][DEBUG][ fast_ping.c:1112] ping 2001::, id = 1
[2022-10-17 14:59:43,046][DEBUG][ fast_ping.c:890 ] from 2001::: error is Address not available
[2022-10-17 14:59:43,046][DEBUG][ fast_ping.c:394 ] ping 2001:: end, id 1
[2022-10-17 14:59:43,046][ INFO][ dns_server.c:5315] IPV6 is not ready, disable IPV6 features
[2022-10-17 14:59:43,047][ INFO][ dns_client.c:1103] add server 172.17.0.53:53, type: udp
[2022-10-17 14:59:43,047][ INFO][ dns_client.c:1103] add server 116.116.116.116:53, type: udp
[2022-10-17 14:59:43,047][ INFO][ dns_client.c:1103] add server [ChinaUnicom.com]:53, type: udp
[2022-10-17 14:59:43,047][ INFO][ dns_client.c:1338] add pending server cloudflare-dns.com
[2022-10-17 14:59:43,048][ WARN][ dns_client.c:909 ] load certificate from /etc/ssl/certs/ca-certificates.crt:/etc/ssl/certs failed.
[2022-10-17 14:59:43,048][ INFO][ dns_client.c:1103] add server [doh.pub]:443, type: https
[2022-10-17 14:59:43,048][ INFO][ dns_client.c:1338] add pending server rubyfish.cn
[2022-10-17 14:59:43,048][ INFO][ dns_client.c:1338] add pending server dns.nextdns.io
[2022-10-17 14:59:43,048][ INFO][ dns_client.c:1103] add server 100.88.88.88:53, type: udp
[2022-10-17 14:59:45,949][DEBUG][ dns_server.c:2726] name: dns.nextdns.io ttl: 0 cname: steering.nextdns.io
[2022-10-17 14:59:45,949][ INFO][ dns_client.c:1103] add server [nextdns.io]:443, type: https
[2022-10-17 14:59:45,949][ INFO][ dns_client.c:1103] add server [rubyfish.com]:443, type: https
[2022-10-17 14:59:45,950][ INFO][ dns_client.c:1103] add server [cloudflare.com]:443, type: https

[nextdns.io] nextdns
[rubyfish.com] rubyfish
[cloudflare.com] cloudflare

[2022-10-17 14:59:52,342][DEBUG][ dns_server.c:4213] recv query packet from 10.10.99.1, len = 39, type = 0
[2022-10-17 14:59:52,342][DEBUG][ dns_server.c:4225] request qdcount = 1, ancount = 0, nscount = 0, nrcount = 0, len = 39, id = 22693, tc = 0, rd = 1, ra = 0, rcode = 0

[2022-10-17 14:59:52,342][ INFO][ dns_server.c:4243] query server shoyuf.top from 10.10.99.1, qtype = 1

[2022-10-17 14:59:52,343][DEBUG][ dns_client.c:533 ] send query to group default
[2022-10-17 14:59:52,343][DEBUG][ dns_client.c:2845] send query to server [cloudflare.com]
[2022-10-17 14:59:52,343][DEBUG][ dns_client.c:1868] tls server [cloudflare.com] connecting.
[2022-10-17 14:59:52,343][DEBUG][ dns_client.c:2845] send query to server [rubyfish.com]
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:1868] tls server [rubyfish.com] connecting.
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:2845] send query to server [nextdns.io]
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:1868] tls server [nextdns.io] connecting.
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:2845] send query to server [doh.pub]
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:1868] tls server [doh.pub] connecting.
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:2845] send query to server [ChinaUnicom.com]
[2022-10-17 14:59:52,344][DEBUG][ dns_client.c:2845] send query to server 116.116.116.116

[2022-10-17 14:59:52,345][ INFO][ dns_client.c:3135] send request shoyuf.top, qtype 1, id 1

[2022-10-17 14:59:52,357][DEBUG][ dns_client.c:1966] recv udp packet from [ChinaUnicom.com], len: 44, ttl: 37
[2022-10-17 14:59:52,357][DEBUG][ dns_client.c:1605] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 44, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 0
[2022-10-17 14:59:52,357][DEBUG][ dns_client.c:1616] domain: shoyuf.top qtype: 1 qclass: 1
[2022-10-17 14:59:52,357][DEBUG][ dns_server.c:2855] query result from server [ChinaUnicom.com]: 53, type: 0
[2022-10-17 14:59:52,357][DEBUG][ dns_server.c:2300] domain: shoyuf.top TTL: 3 IP: 8.130.163.93
[2022-10-17 14:59:52,357][DEBUG][ dns_server.c:2180] ping 8.130.163.93 with icmp, order: 0, timeout: 935
[2022-10-17 14:59:52,358][DEBUG][ fast_ping.c:1112] ping 8.130.163.93, id = 2

[2022-10-17 14:59:52,358][DEBUG][ dns_client.c:1966] recv udp packet from 116.116.116.116, len: 44, ttl: 37
[2022-10-17 14:59:52,358][DEBUG][ dns_client.c:1605] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 44, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 0
[2022-10-17 14:59:52,358][DEBUG][ dns_client.c:1616] domain: shoyuf.top qtype: 1 qclass: 1
[2022-10-17 14:59:52,358][DEBUG][ dns_server.c:2855] query result from server 116.116.116.116: 53, type: 0
[2022-10-17 14:59:52,358][DEBUG][ dns_server.c:2300] domain: shoyuf.top TTL: 3 IP: 8.130.163.93
[2022-10-17 14:59:52,413][DEBUG][ dns_server.c:2037] from 8.130.163.93: seq=1 time=544, lasttime=-1 id=0
[2022-10-17 14:59:52,413][DEBUG][ fast_ping.c:394 ] ping 8.130.163.93 end, id 2

[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2578] tls server [doh.pub] connected.
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2583] new session
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2453] peer CN: [doh.pub]
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2504] cert SPKI pin(sha256): 53:83:58:2F:A0:BB:A5:0F:9C:7C:DD:95:94:46:88:80:74:C7:19:53:8A:C5:B2:C1:21:27:68:DF:9D:76:4D:AC

[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2578] tls server [rubyfish.com] connected.
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2583] new session
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2453] peer CN: dns.rubyfish.cn
[2022-10-17 14:59:52,508][DEBUG][ dns_client.c:2504] cert SPKI pin(sha256): 0C:10:E2:82:DC:B7:CC:34:BB:4C:DF:F3:6D:03:A6:9E:36:74:A9:6F:AA:6D:15:73:96:C0:CA:4A:C4:F0:4B:1A
[2022-10-17 14:59:52,549][ WARN][ dns_client.c:2172] http server query from [rubyfish.com]:443 failed, server return http code : 503, Service Unavailable
[2022-10-17 14:59:52,549][DEBUG][ dns_client.c:1148] server [rubyfish.com] closed.

[2022-10-17 14:59:52,560][DEBUG][ dns_client.c:2578] tls server [cloudflare.com] connected.
[2022-10-17 14:59:52,560][DEBUG][ dns_client.c:2583] new session
[2022-10-17 14:59:52,560][DEBUG][ dns_client.c:2453] peer CN: cloudflare-dns.com
[2022-10-17 14:59:52,560][DEBUG][ dns_client.c:2504] cert SPKI pin(sha256): 32:72:DD:1A:2A:94:19:88:6D:CA:29:E5:AC:64:C2:E0:56:5D:0F:20:D7:BF:83:4E:58:51:A7:5D:6D:EE:AF:5E

[2022-10-17 14:59:52,609][DEBUG][ dns_client.c:2202] recv tcp packet from [doh.pub], len = 623
[2022-10-17 14:59:52,609][DEBUG][ dns.c:1631] opt type 12
[2022-10-17 14:59:52,609][DEBUG][ dns.c:1657] DNS opt type = 12 not supported
[2022-10-17 14:59:52,609][DEBUG][ dns_client.c:1605] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 468, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 4096
[2022-10-17 14:59:52,609][DEBUG][ dns_client.c:1616] domain: shoyuf.top qtype: 1 qclass: 1
[2022-10-17 14:59:52,609][DEBUG][ dns_server.c:2855] query result from server [doh.pub]: 443, type: 3
[2022-10-17 14:59:52,609][DEBUG][ dns_server.c:2300] domain: shoyuf.top TTL: 250 IP: 8.130.163.93

[2022-10-17 14:59:52,711][DEBUG][ dns_client.c:2578] tls server [nextdns.io] connected.
[2022-10-17 14:59:52,711][DEBUG][ dns_client.c:2583] new session
[2022-10-17 14:59:52,711][DEBUG][ dns_client.c:2453] peer CN: dns.nextdns.io
[2022-10-17 14:59:52,711][DEBUG][ dns_client.c:2504] cert SPKI pin(sha256): E6:55:3C:56:F0:B7:97:6E:23:61:21:2B:D9:8C:68:97:D4:DF:5E:D2:4C:96:5C:8A:6B:CF:AF:14:F5:6E:D3:63

[2022-10-17 14:59:52,840][DEBUG][ dns_client.c:2202] recv tcp packet from [nextdns.io], len = 243
[2022-10-17 14:59:52,840][DEBUG][ dns_client.c:1605] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 55, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2022-10-17 14:59:52,840][DEBUG][ dns_client.c:1616] domain: shoyuf.top qtype: 1 qclass: 1
[2022-10-17 14:59:52,840][DEBUG][ dns_server.c:2855] query result from server [nextdns.io]: 443, type: 3
[2022-10-17 14:59:52,840][DEBUG][ dns_server.c:2300] domain: shoyuf.top TTL: 266 IP: 8.130.163.93
[2022-10-17 14:59:52,936][DEBUG][ dns_client.c:1395] result: shoyuf.top, qtype: 1, hasresult: 1, id 1
[2022-10-17 14:59:52,937][DEBUG][ dns_server.c:1400] reply shoyuf.top qtype: 1, rcode: 0, reply: 1
[2022-10-17 14:59:52,937][DEBUG][ dns_server.c:716 ] result: shoyuf.top, rtt: 54.4 ms, 8.130.163.93

[2022-10-17 14:59:52,937][ INFO][ dns_server.c:583 ] result: shoyuf.top, id: 0, index: 1, rtt: 54.4 ms, 8.130.163.93

[2022-10-17 14:59:52,937][DEBUG][ dns_server.c:969 ] cache shoyuf.top qtype: 1 ttl: 300

[2022-10-17 14:59:53,471][DEBUG][ dns_client.c:2202] recv tcp packet from [cloudflare.com], len = 276
[2022-10-17 14:59:53,471][DEBUG][ dns_client.c:1605] qdcount = 1, ancount = 1, nscount = 0, nrcount = 0, len = 55, id = 1, tc = 0, rd = 1, ra = 1, rcode = 0, payloadsize = 1232
[2022-10-17 14:59:53,471][DEBUG][ dns_client.c:1616] domain: shoyuf.top qtype: 1 qclass: 1
[2022-10-17 15:00:22,840][DEBUG][ dns_client.c:1148] server [nextdns.io] closed.
[2022-10-17 15:00:22,840][DEBUG][ dns_client.c:2277] peer close, [nextdns.io]
[2022-10-17 15:01:07,608][DEBUG][ dns_client.c:1148] server [doh.pub] closed.
[2022-10-17 15:01:07,608][DEBUG][ dns_client.c:2277] peer close, [doh.pub]

```

本站使用署名 4.0 国际 (CC BY 4.0) 创作共享协议,转载请署名,图片请转存。

提醒:本文最后更新于 795 天前,文中所描述的信息可能已发生改变,请谨慎使用。

湘ICP备13009407号