resolv.conf code example Example 1: resolv conf sudo nano /etc/resolv.conf Example 2: resolv.conf sudo vi /etc/resolv.conf