ubuntu server dns code example
Example 1: ubuntu dns server
# /etc/resolv.conf. A couple of quick entries like
# so would have my machine reaching the outside world like a champ:
nameserver 8.8.4.4
nameserver 8.8.8.8
Example 2: resolvconf set dns
$ sudo systemctl start resolvconf.service
$ sudo systemctl enable resolvconf.service
$ sudo systemctl status resolvconf.service
Example 3: resolvconf set dns
$ sudo nano /etc/resolvconf/resolv.conf.d/head