Local dig works, but dig with external ip it doesn't

Check if interface configured for Pi-hole is the same as the one holding IP 192.168.0.170:

grep PIHOLE_INTERFACE /etc/pihole/setupVars.conf

ip a

Could be rebind protection:

If suspect rebind protection and cant find any settings related in the router settings, you could connect a PC/laptop configured with static IP directly to the Pi-hole box (no router/switch inbetween) to see if replies to dig/nslook/host etc.