root@node3:~#cat/etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: ethernets: ens33: addresses: -192.168.10.13/24 routes: -to:default via:192.168.10.254 nameservers: addresses: [192.168.10.254] search: ["xiaowangc.local"] version:2
root@node3:~# cat /etc/resolv.conf # This is /run/systemd/resolve/stub-resolv.conf managed by man:systemd-resolved(8). # Do not edit. # # This file might be symlinked as /etc/resolv.conf. If you're looking at # /etc/resolv.conf and seeing this text, you have followed the symlink. # # This is a dynamic resolv.conf file for connecting local clients to the # internal DNS stub resolver of systemd-resolved. This file lists all # configured search domains. # # Run "resolvectl status" to see details about the uplink DNS servers # currently in use. # # Third party programs should typically not access this file directly, but only # through the symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a # different way, replace this symlink by a static file or a different symlink. # # See man:systemd-resolved.service(8) for details about the supported modes of # operation for /etc/resolv.conf.
root@node3:~# systemctl restart systemd-resolved.service root@node3:~# resolvectl status Global Protocols: -LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported resolv.conf mode: stub Current DNS Server: 192.168.10.254 DNS Servers: 192.168.10.254 DNS Domain: xiaowangc.local
Link 2 (ens33) Current Scopes: DNS Protocols: +DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported Current DNS Server: 192.168.10.254 DNS Servers: 192.168.10.254 DNS Domain: xiaowangc.local
Link 3 (docker0) Current Scopes: none Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 4 (kube-ipvs0) Current Scopes: none Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
Link 5 (tunl0) Current Scopes: none Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported root@node3:~# ping api.xiaowangc.local PING api.xiaowangc.local (192.168.10.100) 56(84) bytes of data. 64 bytes from 192.168.10.100 (192.168.10.100): icmp_seq=1 ttl=64 time=0.212 ms 64 bytes from 192.168.10.100 (192.168.10.100): icmp_seq=2 ttl=64 time=0.228 ms 64 bytes from 192.168.10.100 (192.168.10.100): icmp_seq=3 ttl=64 time=0.227 ms 64 bytes from 192.168.10.100 (192.168.10.100): icmp_seq=4 ttl=64 time=0.182 ms --- api.xiaowangc.local ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3004ms rtt min/avg/max/mdev = 0.182/0.212/0.228/0.018 ms