I recently had issues with my android phone having issues casting to the chromecast from my plex server.
After some reading, I discovered a dnsmasq tweak that may resolve the issue for some of you.
DNSMASQ
To allow secure connections to work correctly on the local network if you are using “dnsmasq” with DNS rebinding protection enabled, you will need to add the following line to your configuration file (the “advanced settings” box in DD-WRT):
My darn router (Orbi 750) doesn't have DNS Rebind options in it. I'm using the Pi-Hole DHCP server. Is DNS Rebinding something I do in the pihole server? Or specifically on the router? Router is still gateway.
if you run pihole on a raspberry pi (like i do) you can create a .conf text file under the folder /etc/dnsmasq.d with a unique name (i.e. 99-plex.conf)
the .conf file should have one line
rebind-domain-ok=/plex.direct/
save the file then restart pihole with "pihole restartdns" command
Please note:
This topic originally describes an approach to define an exemption for DNS rebind protection for specific plex domains within the context of a router!
That would only be necessary if your Pi-hole's upstream DNS servers would return private IP addresses.
There are circumstances when that could be expected to happen, e.g. if you were running other local DNS servers (like an AD DNS server) in your network.
In a typical home network, that wouldn't commonly be the case.
I notice that you are asking for advice on a potential solution when you haven't disclosed your actual issue yet.
Are you sure that DNS rebind protection is causing your observation?
I'm not able to download for offline viewing. They fail every time.
Now that I'm thinking about it: I'm not sure where to look for the issue, except that it seems to be a Rebinding issue from what I can Google-fu. I did make a post here:
Hello,
I attempted this and thought it worked, and confirmed today that I still cannot make a secure connection to the PLEX server via chromecast, i have been bonking my head attempting to figure out this concern.