[mythtv-users] Schedules Direct - Cliff's Notes?

Bill Meek keemllib at gmail.com
Sun Oct 12 23:30:45 UTC 2014


On 10/12/2014 10:28 AM, Ben Kamen wrote:
> On 2014-10-11 12:42 PM, Bill Meek wrote:
>>
>> It seems that the IP address originally posted for folks to
>> use in the /etc/hosts solution has changed.
>>
>> Does the RPZ solution prevent that problem?
..
> I'm catching up on all this -- let me know if you still want the info...
>
> did the IP address change?
>
> And yes - RPZ's can kind-of fix this.
>
> RPZ's can redirect to an IP or redirect to another hostname.
...

Probably for Ben and Gary, but comments about the following
would be appreciated. I'm now a 1/2 day old nameserver owner.

It's written with Wiki formatting, so it looks a bit weird.
I haven't added it to the Wiki yet.

-----------------------------------------------------------

== Can users running a name server avoid the /etc/hosts change? ==

Yes. And if the following is used, be sure to remove the /etc/hosts entry.

{{Note box|The following is of no value without ''bind'' version 9
or greater installed, running and acting as the backend's nameserver.
Verify that version 9 or higher is available before going further.}}

Also know that this is not intended to be a ''bind'' tutorial.

Distributions and personal choices will likely change the names of
the files in the following examples. Adjust as required.

Finally, the following was written as if the MythTV backend is running
the name server only for itself (the appliance model.)

If a site is already running a local nameserver utilizing RPZ, then it
is only necessary to add the bottom line of the following box to an
existing RPZ.

Otherwise, add a file named: ''/etc/bind/db.rpz.localhost'' with the following:

<pre>
$TTL 1h
$ORIGIN rpz.localhost.
@ IN SOA LOCALHOST. localhost. (
                   1     ; Serial
              604800     ; Refresh
               86400     ; Retry
             2419200     ; Expire
              604800 )   ; Negative Cache TTL
;
@ IN NS  LOCALHOST.

webservices.schedulesdirect.tmsdatadirect.com CNAME dd.schedulesdirect.org.
</pre>

In file: ''/etc/bind/named.conf'', add inside the ''options{}'' section:
<pre>
     // 203.0.113.x is a documentation IP address, choose real DNS IPs.
     forwarders {203.0.113.1; 203.0.113.2;};
     recursion true;
     allow-recursion {localhost;};
     response-policy {zone "rpz.localhost";};
     allow-transfer {none;};
     allow-update {none;};
</pre>

In the same file, add:

<pre>
zone "rpz.localhost" {
     type master;
     allow-query {localhost;};
     allow-update {none;};
     file "/etc/bind/db.rpz.localhost";
</pre>


-- 
Bill


More information about the mythtv-users mailing list