how to configure dns server in linux using command code example Example: change dns resolver linux $ sudo vim /etc/resolvconf/resolv.conf.d/base