Help with casting and dns redirects not working

I can’t comment on the casting issue, but I can help with the DNS redirect. You’ll need a couple Destination NAT (DNAT) rules:

Rule 1: source IP, translation is, put a check mark in “Exclude from NAT”

Rule 2: source IP or, destination port is UDP 53, translation IP is, translation port is 53

Rule 1 ensures no dns loops happen when your PiHole send a query to its upstream provider. Rule 2 will redirect all dns queries destined for IPs other than PiHole to PiHole.

These rules don’t literally have to be your first 2 rules, but the rule to prevent loops must come before the rule to redirect. In my case I have about 5 other rules between the two.

/r/Ubiquiti Thread