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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title>tinydyndns - configuration</title>
</head>
<body>
<a href="http://smarden.org/pape/">G. Pape</a><br>
<a href="index.html">tinydyndns</a>
<hr>
<h1>tinydyndns - configuration</h1>
<hr>
Before starting the <i>pop-before-dyndns</i> service, you will make to
have four decisions:
<ul>
<li>The <i>pop-before-dyndns</i> account name, normally
<tt>tinydyn</tt>. The <tt>tinydns</tt> program runs under this account. If
this account does not exist, create it now.
<li>The DNS log account name, normally <tt>dnslog</tt>. Logging programs
run under this account. If this account does not exist, create it now.
<li>The domain name for the <i>pop-before-dyndns</i> service, say
<tt>dyn.smarden.org</tt>.
<li>The IP address the <i>pop-before-dyndns</i> service will use, say
<tt>5.6.7.8</tt>.
</ul>
Create the <i>tinydyndns</i> service directories by running the
<a href="tinydyndns-conf.8.html">tinydyndns-conf</a> program.
<pre>
# tinydyndns-conf tinydyn dnslog /etc/tinydyn 5.6.7.8 dyn.smarden.org
</pre>
Tell <tt>svscan</tt> about the new services:
<pre>
# ln -s /etc/tinydyn /service/
# ln -s /etc/tinydyn/pop /service/tinydyn-pop
</pre>
Wait five seconds for the services to start and check the logs:
<pre>
# less /service/tinydyn/log/main/current
# less /service/tinydyn-pop/log/main/current
</pre>
Now tell the <i>pop-before-dyndns</i> service about a dynamic hostname
it should handle, say <tt>floyd</tt>:
<pre>
# su - tinydyn
$ cd /etc/tinydyn/pop
$ ./setpasswd floyd guest
</pre>
Activate this hostname by connecting to the <i>tinydyn-pop</i> service
as user <tt>floyd</tt>:
<pre>
$ telnet 5.6.7.8 110
Trying 5.6.7.8...
Connected to 5.6.7.8.
Escape character is '^]'.
+OK <8746.1015174596@dyn.smarden.org>
USER floyd
+OK
PASS guest
+OK
QUIT
Connection closed by foreign host.
$
</pre>
Check the <i>tinydyn</i> service for this dynamic hostname:
<pre>
$ dnsq a floyd.dyn.smarden.org 5.6.7.8
</pre>
The output should show your system's IP address in the answer section.
<p>
To tell the <i>tinydyn</i> service about more dynamic hostnames, just run
the <tt>setpasswd</tt> script as user <tt>tinydyn</tt> as shown above.
<p>
Finally, tell the administrator of <tt>smarden.org</tt> to delegate
the domain <tt>dyn.smarden.org</tt> to the server
<tt>a.ns.dyn.smarden.org</tt> running on IP address 5.6.7.8.
</ul>
<hr>
<address><a href="mailto:pape@smarden.org">
Gerrit Pape <pape@smarden.org>
</a></address>
</body>
</html>
|