Change dns servers ubuntu
dnsmasq is available in the official package repository of Ubuntu. So, you can easily install it using the APT package manager. Ubuntu uses systemd-resolved by default to manage DNS servers and DNS caching. Before you install dnsmasq, you must stop and disable systemd-resolved services. Otherwise, you won’t be able to run dnsmasq at all.