【Linux】DNS 相關
如何知道本機dns server 設定在哪
# 查詢/etc/resolv.conf
cat /etc/resolv.conf
# ip 出現 類似nameserver 127.0.0.53
# 代表不設定在本機 使用resolvectl
resolvectl status
##########################################
Global
Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: stub
Link 2 (eth0)
Current Scopes: DNS
Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Current DNS Server: 10.10.10.247
DNS Servers: 10.10.10.246 10.10.10.247