Ubuntu 19.10, clean install not messed around. I use Docker and would like to install PiHole via Docker Compose.
However on Ubuntu systemd-resolve uses port 53 by default.
That port needs to be available for port binding for PiHole. To solve this: sudo nano /etc/systemd/resolved.conf
Uncomment and change to no (everything is commented out by default):
DNSStubListener=no
Restart the service.
Expected Behaviour:
sudo lsof -i -P -n | grep 53 should show the port is not in use anymore: CORRECT
But internet should still work.
Actual Behaviour:
Now I cannot surf the internet anymore. Undoing the change solves this issue, but port 53 is in use again.
Yes, as mentioned I do not have internet access anymore in my browser when I do that. Perhaps it worked for older versions of Ubuntu. I am on 19.10.
I also found this:
It seems macvlan is the only way to get this working correctly. But I haven't gotten that working yet, the example of lawrence leads to an error about wrong subnet, even though I defined the correct subnet my router provides.
Tony Lawrence has a good writeup on using macvlan for synology. I adopted and revised the docker-compose.yaml file - see my [writeup](Tony Lawrence has a good writeup on using macvlan for synology. I adopted and revised the docker-compose.yaml file - see my writeup here and the example docker-compose.yaml file you can download. Just edit to put in your own network configuration and you will be up and running in not time. Works flawlessly and allows you to have an ip address separate from your pi-hole. Just be aware of the macvlan bug on 4.19.7 raspbian kernel that I mention in my post. Just edit the example docker-compose.yaml to put in your own network configuration and you will be up and running in not time. Works flawlessly and allows you to have an ip address separate from your pi-hole. Just be aware of the macvlan bug on 4.19.7 raspbian kernel that I mention in my post. Guide on Using Macvlan with PI-hole: https://geekvisit.com/pi-hole/).