DNS Follow
Reference model:
- Switch model name:
- AS7726-32X
- AS7326-56X
- AS7816-64X
- AS5835-54X(T)
- AS4630-54PE
- AS9716-32D
- AS8000(Minipack)
- Wedge100BF-32X
- Edgecore SONiC version:
- Edgecore-SONiC_20201123_130028_ec202006_74
- Edgecore-SONiC_20201229_070315_ec202006_101
- Edgecore-SONiC_20201229_070315_ec202006_bfn_65(Wedge100BF-32X)
Procedure:
Step 1. Add nameserver ip (8.8.8.8 as example) to /etc/resolve.conf
admin@sonic:~$ sudo vi /etc/resolv.conf
# This file is managed by man:systemd-resolved(8). Do not edit. #nameserver 10.5.0.2 |
Caution:
- 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 (216.58.200.228) 56(84) bytes of data.
64 bytes from tsa03s01-in-f228.1e100.net (216.58.200.228): icmp_seq=1 ttl=55 time=2.66 ms
64 bytes from tsa03s01-in-f228.1e100.net (216.58.200.228): icmp_seq=2 ttl=55 time=2.68 ms
64 bytes from tsa03s01-in-f228.1e100.net (216.58.200.228): icmp_seq=3 ttl=55 time=2.65 ms
^C
--- 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:~$
Comments
0 comments
Please sign in to leave a comment.