Pihole not resolving DNS in docker container in cloud VM

Hello,

I tried setting up pihole in a docker container on an AWS lightsail instance running ubuntu 20 with a public static IP address.

I disabled the local DNS server and edited the resolv.conf to use 1.1.1.1 as the nameserver.

I run the docker container with this command:

docker run -d \
    --name pihole \
    -p 53:53/tcp -p 53:53/udp \
    -p 80:80 \
    -e TZ="America/New_York" \
    -v "${PIHOLE_BASE}/etc-pihole:/etc/pihole" \
    -v "${PIHOLE_BASE}/etc-dnsmasq.d:/etc/dnsmasq.d" \
    --dns=127.0.0.1 --dns=1.1.1.1 \
    --restart=unless-stopped \
    --hostname pi.hole \
    -e VIRTUAL_HOST="pi.hole" \
    -e PROXY_LOCATION="pi.hole" \
    -e FTLCONF_LOCAL_IPV4="54.86.172.59" \
    pihole/pihole:latest

where 54.86.172.59 is my instances public static IP

The docker container starts up normally, and the web platform works when I put 54.86.172.59 into the browser, but http://pi.hole does not work. It does not resolve any DNS queries when I set 54.86.172.59 to my DNS IP address.

I have my AWS lightsail firewall settings allowing TCP and UDP on port 53, but the queries are not showing up in the query log.

I'm using Google Wifi as my router, and it doesn't work if I set the DNS on the router or on my computer.

What is the IP address of the client and server VPN interfaces?