On 03/16/2015 12:37 PM, AJ ONeal (Home) wrote:
> Given #4: My goal is a custom Dynamic DNS service that I control completely
> (changing coolaj86.com to use my DNS service is just part of the testing
> process).

So you want to be able to register a dynamic host like
worldtraveler.coolaj86.com with your own DNS server?  This can be done
fairly easily with Bind 9.  Involves turning on dynamic updates on the
server, and then you can using nsupdate program dynamically update a
zone. So you could write a simple CGI script that your client can
connect to, and it would then register the client's IP address with a
certain name in your zone (and you can do reverse entries too), using a
short TTL.

I wrote a little pythons script to automate this.  I use it to maintain
my own internal DNS.  It's easier to use my python script that uses
official channels to modify a zone, than it is to edit the zone file
manually.  And with dynamic updates enabled (say from DHCP on your
network), you shouldn't edit the zone files directly anyway).  Maybe
you'll find it interesting.  You'll have to generate your own RNDC key,
and configure bind to allow it to modify your zones.

I'll post it if you're interested.  It will require some modifications
as it's currently hard wired to work with my 192.168.x.x subnets.











/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to