Anyone know how to set up CloudFlare DNS on a home computer running Kubuntu 18.04?
Hey Tom, I guess with 18.04 Ubuntu switched to netplan to manage DNS. You'll need to configure the entry in a yaml file you'll find in /etc/netplan and add something like this: nameservers: addresses: [1.1.1.1] More thorough examples are here: https://netplan.io/examples On Sun, Dec 9, 2018 at 1:18 PM Tom Ashcraft <trailerdog234@comcast.net> wrote:
Anyone know how to set up CloudFlare DNS on a home computer running Kubuntu 18.04?
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
-- Eric Streeper Founder // CEO Xerb.tv Phone/WhatsApp: +1-310-978-7944 Facebook: Eric Streeper Skype: eric@xerb.tv Line: ericstreeper
Hey Eric, I'm trying to configure netplan with Cloudflare domain name servers on my Lubuntu 18.04 netbook: tom@tom-AO722:/etc/netplan$ sudo mv 01-network-manager-all.yaml 01-network-manager-all.bak tom@tom-AO722:/etc/netplan$ ls 01-network-manager-all.bak config.yaml tom@tom-AO722:/etc/netplan$ sudo netplan apply config.yaml Invalid YAML at /etc/netplan/config.yaml line 5 column 36: found unexpected ':' tom@tom-AO722:/etc/netplan$ This is config.yaml: # Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager nameservers: addresses: [1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001] Any suggestions? Tom On Sun, 9 Dec 2018 14:34:07 -0700 Eric Streeper <eric@xerb.tv> wrote:
Hey Tom, I guess with 18.04 Ubuntu switched to netplan to manage DNS. You'll need to configure the entry in a yaml file you'll find in /etc/netplan and add something like this:
nameservers: addresses: [1.1.1.1]
More thorough examples are here: https://netplan.io/examples
On Sun, Dec 9, 2018 at 1:18 PM Tom Ashcraft <trailerdog234@comcast.net> wrote:
Anyone know how to set up CloudFlare DNS on a home computer running Kubuntu 18.04?
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
-- Eric Streeper Founder // CEO Xerb.tv Phone/WhatsApp: +1-310-978-7944 Facebook: Eric Streeper Skype: eric@xerb.tv Line: ericstreeper
-- Tom Ashcraft <trailerdog234@comcast.net>
Hey Tom! I did notice they use commas in the example, it may be complaining because those have been omitted, i.e. [1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001] should be [1.1.1.1, 1.0.0.1, 2606:4700:4700::1111, 2606:4700:4700::1001] If that doesn't help, here are the next two steps I would propose trying to see what happens: 1. Only include the first address (1.1.1.1) and see if you can make it work with that first. 2. Netplan may care about the names of your files, so you could cp 01-network-manager-all.bak 01-network-manager-all.yaml then make your changes in 01-network-manager-all.yaml and try applying. Let me know if any of these work! On Thu, Dec 13, 2018 at 10:51 AM Tom Ashcraft <trailerdog234@comcast.net> wrote:
Hey Eric, I'm trying to configure netplan with Cloudflare domain name servers on my Lubuntu 18.04 netbook:
tom@tom-AO722:/etc/netplan$ sudo mv 01-network-manager-all.yaml 01-network-manager-all.bak tom@tom-AO722:/etc/netplan$ ls 01-network-manager-all.bak config.yaml tom@tom-AO722:/etc/netplan$ sudo netplan apply config.yaml Invalid YAML at /etc/netplan/config.yaml line 5 column 36: found unexpected ':' tom@tom-AO722:/etc/netplan$
This is config.yaml:
# Let NetworkManager manage all devices on this system network: version: 2 renderer: NetworkManager nameservers: addresses: [1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001]
Any suggestions?
Tom
On Sun, 9 Dec 2018 14:34:07 -0700 Eric Streeper <eric@xerb.tv> wrote:
Hey Tom, I guess with 18.04 Ubuntu switched to netplan to manage DNS. You'll need to configure the entry in a yaml file you'll find in /etc/netplan and add something like this:
nameservers: addresses: [1.1.1.1]
More thorough examples are here: https://netplan.io/examples
On Sun, Dec 9, 2018 at 1:18 PM Tom Ashcraft <trailerdog234@comcast.net> wrote:
Anyone know how to set up CloudFlare DNS on a home computer running Kubuntu 18.04?
_______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
-- Eric Streeper Founder // CEO Xerb.tv Phone/WhatsApp: +1-310-978-7944 Facebook: Eric Streeper Skype: eric@xerb.tv Line: ericstreeper
-- Tom Ashcraft <trailerdog234@comcast.net> _______________________________________________ nmglug mailing list nmglug@lists.nmglug.org http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org
-- Eric Streeper Founder // CEO Xerb.tv Phone/WhatsApp: +1-310-978-7944 Facebook: Eric Streeper Skype: eric@xerb.tv Line: ericstreeper
Hi Tom, Tom Ashcraft writes:
Anyone know how to set up CloudFlare DNS on a home computer running Kubuntu 18.04?
I just gave this a shot with Kubuntu in a VM. My solution is at the end of this mail: modify /etc/systemd/resolved.conf and restart resolved. The rest of the mail explains how I got there. Despite my expectations, editing the System Settings/Network/Connections menu in Kubuntu did not seem to have any effect on the machine. Instead, systemd seems to have its own idea of how to resolve DNS... and it's very opinionated. First, I made sure systemd-resolved was running, by checking the output of "systemctl status systemd-resolved": it showed a green "light" and this output line (among many others): Status: "Processing requests..." So I was confident that systemd is what's actually doing name resolution by default on Kubuntu 18.04. Even moreso when I ran "nslookup example.com" (nslookup being a non-systemd tool that I use practically every day) and it mentioned 127.0.0.53, widely known as systemd's default stub resolver. And a third indicator, for good measure: "file /etc/resolv.conf" revealed the system nameserver config file to be a symlink to /var/run/systemd/resolve/stub-resolv.conf. So to use Cloudflare ourselves, we need to tell this stub resolver to use Cloudflare. "systemd-resolve --status" prints the nameservers and settings used by the stub resolver. Even after I had changed the network settings in Kubuntu's "System Settings" menu to Cloudflare, there was no sign of it in this status output, which was pretty discouraging. The configuration is stored in /etc/systemd/resolved.conf and documented in its manpage (https://www.freedesktop.org/software/systemd/man/resolved.conf.html). I uncommented the DNS line and added the Cloudflare IP addresses, and also disabled DNSSEC, since in my opinion it's not yet trouble-free enough to be used on a normal desktop. The result was the following resolved.conf: [Resolve] DNS=1.1.1.1 1.0.0.1 2606:4700:4700::1111 2606:4700:4700::1001 DNSSEC=no One "sudo systemctl restart systemd-resolved" later, and everything was working. Now "systemd-resolve --status" prints the Cloudflare DNS servers, so I'm reasonably sure it's using Cloudflare for name resolution. -- Anthony J. Bentley
participants (3)
-
Anthony J. Bentley -
Eric Streeper -
Tom Ashcraft