Ubuntu 16.10: Avoid nameserver in /etc/resolv.conf

Table of Contents

1 nameserver

After disabling NetworkManager dns=dnsmasq, the nameservers from DHCP server is written to /etc/resolv.conf. But invalid nameserver is written to /etc/resolv.conf too.

This is provided by systemd-resolve and this prevents resolving host name.

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTENnameserver hiroom2.com

2 Disable systemd-resolved

Disable systemd-resolved and reboot. nameserver is not written to /etc/resolv.conf.

$ sudo systemctl disable systemd-resolved$ sudo reboot

Android | Linux | SDL - Narrow Escape