Page 1 of 1

PLEX DNS Rebinding

Posted: Mon Apr 04, 2016 10:21 am
by Louisk
Hi Community,

I'm struggling my ass of with DNS rebinding for PLEX.

To allow secure connections if you are using 'dnsmasq' with DNS Rebinding Protection enabled, you will need to add the following to your advanced settings box:
rebind-domain-ok=/plex.direct/

Similarly, if you happen to be using pfSense or a similar router OS, you may instead be using 'DNS Resolver (Unbound)'. If this is the case a similar advanced setting will need to be added:
server:
private-domain: "plex.direct"

This page describes the requirement: https://support.plex.tv/hc/en-us/articl ... onnections

I SSH into router on root
Tried inseting this code:

/etc/init.d/dnsmasq rebind-domain-ok=/plex.direct/

but it's just not working.

any ideas?

Re: PLEX DNS Rebinding

Posted: Mon Apr 04, 2016 4:52 pm
by Lantis
That's not the correct syntax.

You'll want something like

uci set dnsmasq.SECTION.rebind-domain-ok=plex.direct
uci commit dnsmasq

I don't know what the appropriate section is but I'm sure the wiki can tell you.

Re: PLEX DNS Rebinding

Posted: Tue Apr 05, 2016 6:38 am
by Louisk
Thanks!

I'll continue to dig and post back here once I have solved it for other who might need this fix as well.

Re: PLEX DNS Rebinding

Posted: Sat May 28, 2016 9:14 am
by Louisk
ok, for those also struggling.

i'm not great on code so i used winscp to scp into router.

Edit
/etc/dnsmasq.config

Added line:

rebind-domain-ok=plex.direct

then edit

/var/etc/dnsmasq.config

Added line:

rebind-domain-ok=plex.direct

rebooted router, and got secure connection with all working right away

guess it was more pure luck than anything else

Re: PLEX DNS Rebinding

Posted: Sun Jan 29, 2017 7:28 pm
by maxwolfie
The below worked for me:

Code: Select all

uci add_list dhcp.dnsmasq[0].rebind_domain=plex.direct

Code: Select all

uci commit dhcp

Re: PLEX DNS Rebinding

Posted: Sat Aug 26, 2017 11:28 am
by KaJ
Thanks for this, I am running into this exact same issue and will try one of the fixes above.