# How to use the same DNS for all connections in Ubuntu (and other network privacy tricks)

DevFeed: [How to use the same DNS for all connections in Ubuntu (and other network privacy tricks)](<https://devfeed.tech/articles/how-to-use-the-same-dns-for-all-connections-in-ubuntu-and-other-network-privacy-tricks-27110.md>)

Original publisher: [Read original article](<https://andrea.corbellini.name/2020/04/28/ubuntu-global-dns/>)

Author: andreacorbellini

Published: 2020-04-28T06:30:00Z

Content type: tutorial

Language: en

Sources: [Andrea Corbellini](<https://devfeed.tech/sources/andrea-corbellini.md>)

Topics: [Ubuntu](<https://devfeed.tech/topics/ubuntu.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Network](<https://devfeed.tech/topics/network.md>), [DNSSEC](<https://devfeed.tech/topics/dnssec.md>), [TLS (Transport Layer Security)](<https://devfeed.tech/topics/tls.md>), [configuration](<https://devfeed.tech/topics/configuration.md>)

Tags: [dns](<https://devfeed.tech/tags/dns.md>), [dnssec](<https://devfeed.tech/tags/dnssec.md>), [guide](<https://devfeed.tech/tags/guide.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mac-address](<https://devfeed.tech/tags/mac-address.md>), [network](<https://devfeed.tech/tags/network.md>), [network-manager](<https://devfeed.tech/tags/network-manager.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [resolved](<https://devfeed.tech/tags/resolved.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [tls](<https://devfeed.tech/tags/tls.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [wifi](<https://devfeed.tech/tags/wifi.md>)

## AI overview

A practical guide to configuring a global DNS server for all Wi-Fi and network connections on Ubuntu 20.04. It explains how systemd-resolved and NetworkManager interact, and introduces DNSSEC, DNS-over-TLS, and randomized MAC addresses.

## Source excerpt

Problem Currently Ubuntu does not offer an easy way to set up a "global" DNS for all network connections: whenever you connect to a new WiFi network, if you don't want to use the DNS server provided by the WiFi, you are forced to go to the network settings and manually set your preferred DNS server. With this brief guide I want to ...