PlexConnect DNS intercept not working

Hi Guys,

 

I'm running PMS and PlexConnect on a windows server 2003 machine. 

 

PMS and PlexConnect both seem to be working fine, however the DNS intercept function of PlexConnect isn't working. When I click on trailers on the ATV, it loads the apple trailers page like normal. Clearly the DNS intercept function is not working as one of my hosts on the network using the same DNS server (PlexConnect Machine) is not intercepting requests. Ping results from this machine also resolve to public IP of the apple trailers site (125.56.205.73)

 

I originally did see a message about access denied on the local machine to open port 80. I suspected IIS (windows web server service) on the machine was causing this so I shut the web service. Now I have the normal screen output but the DNS intercept itself is not working.

 

My current IP setup:

 

PMS and Plexconnect: 192.168.18.2

Router / DG: 192.168.18.1

ATVv3: IP automatically assigned by DHCP (Router) with the DNS server set to: 192.168.18.2

 

PlexConnect output:
 
PlexConnect : ***
PlexConnect : PlexConnect
PlexConnect : Press ENTER to shut down.
PlexConnect : ***
PlexConnect : IP_self: 192.168.18.2
PlexGDM : ***
PlexGDM : looking up Plex Media Server
PlexGDM : ***
PlexGDM : servers discovered: 1
PlexConnect : PMS: 192.168.18.2:32400
DNSServer : ***
DNSServer : Starting up.
DNSServer : intercept trailers.apple.com: 192.168.18.2
DNSServer : forward other to higher level DNS: 192.168.18.1
DNSServer : ***
WebServer : ***
WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer : ***
 
 
Does anyone have any idea why this wouldn't be working as it's supposed to?
 
Where are the log files for this PlexConnect stored so I can analyse / post?
 
Thanks.
 
 
 

 

Try resetting the dnsserver IP to the default 8.8.8.8 and see if that works.

If you grab the latest main branch source there is also an advanced setting in the settings file that allows you to use your own DNS server (you are running Windows server so you might want to do this), just make sure you set-up the appropriate redirection for trailers.apple.com

Try resetting the dnsserver IP to the default 8.8.8.8 and see if that works.

I tried this and it did not work.Still have the same issue.

If you grab the latest main branch source there is also an advanced setting in the settings file that allows you to use your own DNS server (you are running Windows server so you might want to do this), just make sure you set-up the appropriate redirection for trailers.apple.com

What section in the settings file am I changing exactly.


I'm also not sure how to setup the redirect in win server. I tried this DNS and creating a new zone and managed to redirect trailers.apple.com to my PMS ip address however I broke more things by doing this and couldn't access anything with "apple.com"

Do you happen to know the steps for setting this up in winserver or can I just have it work by using the default 8.8.8.8 ?

I tried 8.8.8.8 like the previous post mentioned but this didn't solve the problem. Clicking trailers still just loads normally on the atv.

After a few minutes of inactivity and PlexConnect just sitting open, I got the following traceback.

WebServer : WebServer: Serving HTTP on 0.0.0.0 port 80.
WebServer : ***
DNSServer : Shutting down.
Process Process-1:
Traceback (most recent call last):
  File "C:\Python27\lib\multiprocessing\process.py", line 258, in _bootstrap
    self.run()
  File "C:\Python27\lib\multiprocessing\process.py", line 114, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files\Plex\PlexConnect\PlexConnect-XML_templates\DNSServer.py
", line 124, in Run
    data, addr = DNS.recvfrom(1024)
error: [Errno 10054] An existing connection was forcibly closed by the remote ho
st
 
 
 
 
 
 
 
 
 
 
 
 
 
 

If you do not know how to configure Windows server then do not use the advanced own DNS option.

Google how to disable Windows server DNS server.

Out of interst why are you running a server rather than desktop OS?

If you do not know how to configure Windows server then do not use the advanced own DNS option.
Google how to disable Windows server DNS server.
Out of interst why are you running a server rather than desktop OS?

I manged to get it working. Running PlexConnect and a DNS server on the same machine at the same time simply doesn't work. Once a DNS request comes in to the server, I think the DNS server on windows was processing the packet before the plexconnect app hence why the intercept wasn't working.

As a test I disabled the windows DNS server temporary as you suggested and then PlexConnect started working successfully.

I cannot have my DNS server disabled permanently because I run active directory and domain controller on this box for centralised user accounts amongst other things.

I then did some reading and found another post here about disabling the dns server in plexconnect. I edited the settings.py file, set dns server to false and changed the DNS to point to my server (192.168.18.2).

I then made a record on my windows DNS server to point trailers.apple.com to 192.168.18.2. (I worked out how to do it).

Problem solved. :)

Thanks alot for you help!


 

I have to admit we did not really see a lot of people running PlexConnect on domain controllers but glad you got it working.

I then made a record on my windows DNS server to point trailers.apple.com to 192.168.18.2. (I worked out how it!)
 


How did you do this? I want my dns server to intercept and redirect while passing all other apple.com requests on. It sounds like you made it happen... Any help would be appreciated!
Hi,
 
I have the same problem i think
 
12:43:19 DNSServer: DNS request received!
12:43:19 DNSServer: Source: ('192.168.1.58', 57370)
12:43:19 DNSServer: Domain: phobos.apple.com
12:43:19 DNSServer: ***forward request
12:43:19 DNSServer: Warning: DNS error (11001): getaddrinfo failed
 
It's the same with all forwarding requests.
 
My configuration :
Plex server (last version) running on my Pc (192.168.1.20)
Plex connect (last version) running on my Pc (192.168.1.20)
ATV3
Box with DNS router 192.168.1.254
 
My problem :
No problem to watch on ATV3 Plex stuff but a problem with Youtube, .....
The problem is linked to the message 
12:43:19 DNSServer: ***forward request
12:43:19 DNSServer: Warning: DNS error (11001): getaddrinfo failed
 
The initialisation seems  Ok
14:05:29 PlexConnect: started: 14:05:29
14:05:29 Settings: getsetting enable_plexconnect_autodetect=True
14:05:29 PlexConnect: IP_self: 192.168.1.20
14:05:29 Settings: getsetting enable_dnsserver=True
14:05:29 DNSServer: started: 14:05:29
14:05:29 Settings: getsetting port_dnsserver=53
14:05:29 Settings: getsetting ip_dnsmaster=192.168.1.254loglevel = High
14:05:29 Settings: getsetting prevent_atv_update=True
14:05:29 DNSServer: ***
14:05:29 DNSServer: DNSServer: Serving DNS on 192.168.1.20 port 53.
14:05:29 DNSServer: intercept: ['trailers.apple.com', 'atv.plexconnect'] => 192.168.1.20
14:05:29 DNSServer: restrain: ['mesu.apple.com', 'appldnld.apple.com', 'appldnld.apple.com.edgesuite.net'] => 127.0.0.1
14:05:29 DNSServer: forward other to higher level DNS: 192.168.1.254loglevel = High
14:05:29 DNSServer: ***
14:05:29 WebServer: started: 14:05:29
14:05:29 Settings: getsetting port_webserver=80
14:05:29 WebServer: ***
14:05:29 WebServer: WebServer: Serving HTTP on 192.168.1.20 port 80.
14:05:29 WebServer: ***
14:05:29 ATVSettings: init class CATVSettings
14:05:29 ATVSettings: load settings
14:05:29 Settings: getsetting enable_plexgdm=True
14:05:29 PlexGDM: ***
14:05:29 PlexGDM: looking up Plex Media Server
14:05:29 PlexGDM: ***
14:05:29 PlexGDM: Sending discovery message: M-SEARCH * HTTP/1.0
14:05:29 PlexGDM: Received data from ('192.168.1.20', 32414)
14:05:29 PlexGDM: Data received:
 HTTP/1.0 200 OK
 
Content-Type: plex/media-server
 
Resource-Identifier: 71bae7e3326e8195805b1c016d9f643ef07ae5d2
 
Name: KXYN-PC
 
Port: 32400
 
Updated-At: 1380973152
 
Version: 0.9.8.6.175-88ffbb2
 
 
 
 
14:05:29 Settings: getsetting enable_webserver_ssl=True
14:05:29 WebServer: started: 14:05:29
14:05:29 Settings: getsetting port_ssl=443
14:05:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
14:05:29 Settings: getsetting certfile=./assets/certificates/trailers.pem
14:05:29 WebServer: ***
14:05:29 WebServer: WebServer: Serving HTTPS on 192.168.1.20 port 443.
14:05:29 WebServer: ***
14:05:30 PlexGDM: servers discovered: 1
14:05:30 PlexGDM: KXYN-PC 192.168.1.20:32400
14:05:30 XMLConverter: PlexGDM - PMS: 192.168.1.20:32400
14:05:30 ATVSettings: setOption: update pms_uuid to ('71bae7e3326e8195805b1c016d9f643ef07ae5d2',)
 
 
Please help
Regards

Settings.cfg?

>> 14:05:29 Settings: getsetting ip_dnsmaster=192.168.1.254loglevel = High

You are missing a RETURN in/at the end of your ip_dnsmaster line.

Thanks for your reponse

IT WORKS

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.