internet-pi icon indicating copy to clipboard operation
internet-pi copied to clipboard

Fixes #388: disable systemd-resolved stub listener on Ubuntu

Open lidopaglia opened this issue 2 years ago • 5 comments

Addresses the steps necessary to get Docker Pi-Hole working on a Docker host running Ubuntu 17.10 or later and closes #388.

Presumably this PR could also provide a working Docker Pi-Hole on other distros where systemd v229 or later is the init system and systemd-resolved has the DNSStubListener=yes enabled in /etc/systemd/resolved.conf. However, I have only tested this on a fresh instance of Ubuntu 20.04.4 LTS in a virtual machine and Ubuntu 22.04 LTS on a Raspberry Pi 3 Model B.

This PR introduces a new variable pihole_systemd_resolved_dns in example.config.yml that sets the upstream DNS provider in /etc/systemd/resolv.conf.

lidopaglia avatar Apr 24 '22 23:04 lidopaglia

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Aug 13 '22 01:08 stale[bot]

This fix worked for me on a Ubuntu 22.04 vm

BrianHaak avatar Sep 06 '22 14:09 BrianHaak

This issue is no longer marked for closure.

stale[bot] avatar Sep 06 '22 14:09 stale[bot]

This is a fairly large amount of configuration changes that would seem to support Ubuntu only... does it break Ubuntu 22.04 as well, or just 20.04 (and older?). I don't enjoy merging code that I don't personally need and would have to maintain over the long term.

geerlingguy avatar Sep 08 '22 22:09 geerlingguy

@geerlingguy broken on Ubuntu 22.04 and 20.04. Completely understood about the personal need and maintenance burden. Feel free to close.

lidopaglia avatar Sep 21 '22 15:09 lidopaglia

This pull request has been marked 'stale' due to lack of recent activity. If there is no further activity, the PR will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark pull requests as stale.

stale[bot] avatar Dec 21 '22 04:12 stale[bot]

This pull request has been closed due to inactivity. If you feel this is in error, please reopen the pull request or file a new PR with the relevant details.

stale[bot] avatar Jan 21 '23 06:01 stale[bot]