Versions
- Pi-hole: 5.8.1
- AdminLTE: 5.10.1
- FTL: 5.13
Platform
- OS and version: Debian 10 Buster (official pihole container)
- Platform: Raspberry Pi / Docker Swarm
Expected behavior
I expected the Custom Upstream DNS Servers to be able to take a local DNS value.
Actual behavior / bug
Addresses which are not IP addresses are reported as invalid and rejected.
Steps to reproduce
Steps to reproduce the behavior:
- Go to 'Settings > DNS'
- Tick 'Custom IPv4 1'
- Enter {dns_address}#{port}
- Click save
Screenshots
Additional context
I understand why this is the case (the field is even marked as ipv4) but I don't think it needs to be and being able to use an internal DNS address would be really helpful.
In my case, I am running pihole in a docker swarm with another container running cloudflared. Both containers are attached to a small subnet that is internal to docker only over which they communicate, so pihole is the only machine able to make requests to the cloudflared container. Unfortunatey, in Docker Swarm and Compose v3, you cannot assign a static IP address to your containers so every time I redeploy the service or the cloudflared container is migrated to another host, it gets a new IP and pihole doesn't know this.
Containers within docker are able to resolve IPs of other containers by their container name, in this case "cloudflared". Given the limitations in Docker at the moment, I tried to use "cloudflared#5053" as the value for my custom upstream DNS server only to find that it cannot be used.
I think this would be a really useful and powerful feature for use in docker deployments.