Merge pull request #99 from lancachenet/Lepidopterist-faq-systemdresolved

Update faq.md with Goten's mini howto for systemd-resolved
This commit is contained in:
James Kinsman 2020-02-16 17:01:24 +00:00 committed by GitHub
commit 599ecfe28d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

9
faq.md
View file

@ -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? ## 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 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`)