# ip -6 rule show
0: from all lookup local
5210: from all fwmark 0x80000/0xff0000 lookup main
5230: from all fwmark 0x80000/0xff0000 lookup default
5250: from all fwmark 0x80000/0xff0000 unreachable
5270: from all lookup 52
32766: from all lookup main
4200000001: from all iif lo failed_policy
4200000011: from all iif br-lan failed_policy


## 端口占用状态

# netstat -nlp | grep clash
tcp        0      0 :::7874                 :::*                    LISTEN      2501/clash
tcp        0      0 :::7892                 :::*                    LISTEN      2501/clash
tcp        0      0 :::7893                 :::*                    LISTEN      2501/clash
tcp        0      0 :::7895                 :::*                    LISTEN      2501/clash
tcp        0      0 :::7890                 :::*                    LISTEN      2501/clash
tcp        0      0 :::7891                 :::*                    LISTEN      2501/clash
tcp        0      0 :::9090                 :::*                    LISTEN      2501/clash
udp        0      0 :::7874                 :::*                                2501/clash
udp        0      0 :::7891                 :::*                                2501/clash
udp        0      0 :::7892                 :::*                                2501/clash
udp        0      0 :::7893                 :::*                                2501/clash
udp        0      0 :::7895                 :::*                                2501/clash


## 网络接口状态

# ip link show && ip addr show | grep -E 'inet |utun'
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:*:*:*:00:00 brd 00:00:00:00:00:00
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/sit 0.0.*.* brd 0.0.*.*
3: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/tunnel6 :: brd :: permaddr b6c1:fddd:87eb::
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master br-lan state UP mode DEFAULT group default qlen 1000
    link/ether fc:*:*:*:7b:14 brd ff:ff:ff:ff:ff:ff
5: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 36:*:*:*:4c:85 brd ff:ff:ff:ff:ff:ff
6: gre0@NONE: <NOARP> mtu 1476 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/gre 0.0.*.* brd 0.0.*.*
7: gretap0@NONE: <BROADCAST,MULTICAST> mtu 1462 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:*:*:*:00:00 brd ff:ff:ff:ff:ff:ff
8: erspan0@NONE: <BROADCAST,MULTICAST> mtu 1450 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:*:*:*:00:00 brd ff:ff:ff:ff:ff:ff
9: teql0: <NOARP> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 100
    link/void 
10: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether fc:*:*:*:7b:13 brd ff:ff:ff:ff:ff:ff
11: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000
    link/ether fc:*:*:*:7b:14 brd ff:ff:ff:ff:ff:ff
18: tailscale0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1280 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 500
    link/none 
19: docker0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default 
    link/ether 56:*:*:*:98:6d brd ff:ff:ff:ff:ff:ff
    inet 127.0.*.*/8 scope host lo
    inet 192.168.*.*/24 brd 192.168.*.* scope global br-lan
    inet 100.123.*.*/32 scope global tailscale0
    inet 172.31.*.*/24 brd 172.31.*.* scope global docker0


## 测试本机DNS查询(www.baidu.com)

# nslookup www.baidu.com
Server:  127.0.*.*
Address: 127.0.*.*:53

www.baidu.com canonical name = www.a.shifen.com
Name: www.a.shifen.com
Address: 183.240.*.*
Name: www.a.shifen.com
Address: 111.45.*.*




## 测试内核DNS查询(www.instagram.com)

```bash
# openclash_debug_dns.lua www.instagram.com
Status: 0
TC: false
RD: true
RA: true
AD: false
CD: false
 
 
Back to Top