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:
- Known issue: after upgrading via the "sonic-installer" command, /etc/resolv.conf is reset back to default.
Step 1. Add nameserver ip (22.214.171.124 as example) to /etc/resolve.conf
admin@sonic:~$ sudo vi /etc/resolv.conf nameserver 126.96.36.199Caution: 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 (188.8.131.52) 56(84) bytes of data. 64 bytes from tsa03s01-in-f228.1e100.net (184.108.40.206): icmp_seq=1 ttl=55 time=2.66 ms 64 bytes from tsa03s01-in-f228.1e100.net (220.127.116.11): icmp_seq=2 ttl=55 time=2.68 ms 64 bytes from tsa03s01-in-f228.1e100.net (18.104.22.168): 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:~$