[Enterprise SONiC] DNS Follow
Use a remote DNS (Domain Name System) server to resolve the map between IP and domain name.
Tested model & firmware version:
- Switch model name:
- Edgecore SONiC version:
202006 ~ 202006.4
202012.0 ~ 202012.4
202111.0 ~ 202111.3
- Known issue: [SONIC-3928] after upgrading via the "sonic-installer" command, /etc/resolv.conf is reset back to default. (This issue is fixed on version 202012.4)
Step 1. Add nameserver ip (126.96.36.199 as example) to /etc/resolve.conf
admin@sonic:~$ sudo vi /etc/resolv.conf nameserver 188.8.131.52Caution: Make sure switch IP address and connectivity works well. (refer to Management IP address) Result: - The switch resolves domain name properly.
admin@sonic:~$ ping www.google.com PING www.google.com (184.108.40.206) 56(84) bytes of data. 64 bytes from tsa03s01-in-f228.1e100.net (220.127.116.11): icmp_seq=1 ttl=55 time=2.66 ms 64 bytes from tsa03s01-in-f228.1e100.net (18.104.22.168): icmp_seq=2 ttl=55 time=2.68 ms 64 bytes from tsa03s01-in-f228.1e100.net (22.214.171.124): icmp_seq=3 ttl=55 time=2.65 ms --- www.google.com ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2002ms rtt min/avg/max/mdev = 2.656/2.668/2.682/0.043 ms admin@sonic:~$
Please sign in to leave a comment.