X-Git-Url: https://git.cweiske.de/ssh-dyndns.git/blobdiff_plain/100e95061487e9f983ee9c262451ca509617e49b..HEAD:/README.rst diff --git a/README.rst b/README.rst index 34341e6..34f507c 100644 --- a/README.rst +++ b/README.rst @@ -10,6 +10,7 @@ SSH provides secure, password-less key-based authentication. Upon login, the remote IP is used to create/update a tinydns file with the DNS record for a hostname given by the SSH client. +In addition to the IP record, a TXT record with the update time will be added. tinydns is part of the dbjdns/dbndns package. @@ -116,6 +117,35 @@ compile the ``data.cdb`` file. tinydns will automatically pick up the change. +Check time of last update +========================= +:: + + $ dig +short home.example.org ANY + "Last update 2013-08-21 21.21.28+02.00." + 123.45.67.89 + + +Test +==== +You can test it locally: + +1. Create config file:: + + $ cp ssh-dyndns.sh.config-dist ~/.config/ssh-dyndns.sh + +2. Create dummy makefile:: + + $ touch /tmp/Makefile + +3. Run it:: + + $ SSH_CLIENT=192.168.1.4 SSH_CONNECTION=1 ./ssh-dyndns foo home.example.org + +4. See generated file:: + + $ cat /tmp/data-dyndns-home.example.org + ==== Bugs ====