From 319abc80e1eb22fb6f472f4610292ff4abb425b4 Mon Sep 17 00:00:00 2001 From: Barry Zubel Date: Wed, 12 Feb 2020 19:06:40 +0000 Subject: [PATCH] Update faq.md with Goten's mini howto for systemd-resolved @GotenXiao I nabbed this from the discussion the other day. It feels worthy of being in the FAQ for mono? --- faq.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/faq.md b/faq.md index b81deaa..71a94a3 100644 --- a/faq.md +++ b/faq.md @@ -77,3 +77,12 @@ Other options also involve transparently intercepting HTTP traffic at a network ## Can I load some content into the cache ahead of my event? You could look at [zeropingheroes/lancache-autofill](https://github.com/zeropingheroes/lancache-autofill) as an aide to pre-loading popular games into the cache ahead of time to help kick start the cache + +### Disabling `systemd-resolved` DNSStubListener +If your cache host is running a recent Linux distribution, it is likely running `systemd-resolved`, which listens on port `53`. If you want your cache host to bind to `0.0.0.0:53` (INADDR_ANY, all IPv4 addresses), you will first need to disable `systemd-resolved`'s stub listener. + +1. Run `sudo -e /etc/systemd/resolved.conf` and change the line starting with `#DNSStubListener=` to `DNSStubListener=no` - _removing the `#` is important_ +1. Run `sudo rm /etc/resolv.conf` +1. Run `sudo ln -s /var/run/systemd/resolve/resolv.conf /etc/resolv.conf` +1. Run `sudo service systemd-resolved restart` +1. Check that you can still resolve DNS on the cache server by running `nslookup` for a domain of your choice (e.g. `lancache.net`)