aboutsummaryrefslogtreecommitdiff
path: root/README
blob: 720d0712d5a950b8129021196d031ecabf69b56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
This is a basic dynamic client and server for the djbdns DNS 
server 'tinydns' by Dan Bernstein.

REQUIREMENTS:

* Administrative access to a server running tinydns and hence
  daemontools or similar
* Administrative access to a *nix box on you local network
* Python (version 2!) installed on both client and server
* An open port on the server's firewall

INSTALLATION

To install the server code:

1. Copy script and all files onto your server (i.e. /etc/tinydnsdyn/)

2. The supplied 'run' script is tailored for debian/ubuntu and may
   need to be changed.

3. Create a password file. This is of the format created by Apache's htpasswd
   and consists of one user per line in the following format:

  <username>:<crypted hash>:<optional list of domains>

4. Start the service by symlinking this directory into your svscan directory
   (i.e. "ln $(pwd) /etc/service/" ).

5. An existing entry in the tinydns data file should already exist. This script
   will NOT add one. Only those hosts listed (with prefixes '+' and
   '=') are able to update their entries.

    For example:

   +groucho.example.com:192.168.0.2:3360
   +groucho.example.com:192.168.0.2
   =groucho.example.com:192.168.0.2:60
   +*.groucho.example.com:192.168.0.2:60
   +*.groucho.example.com:192.168.0.2

   will all get updated if the host groucho.example.com does a request.

The service operates over HTTP and should be reasonably close to the service
operated by DynDns.com having the following request format:

http://username:password@yourdnsserver.com/?hostname=yourhostname&myip=optionaladdress

The only required parameter is the hostname you wish to change. This can be a
comma separated list of hostnames to update. The IP address will be determined
automatically if the 'myip' parameter is missing.

The response codes are taken from here (not all of them):

http://www.dyndns.com/developers/specs/return.html

The Python code is basic and inefficient but it should work. I take no
responsibility for anything that may happen to any of your machines.
That said, please let me know if there are any issues.