-
Notifications
You must be signed in to change notification settings - Fork 4
/
README
74 lines (53 loc) · 2.33 KB
/
README
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
SYNOPSIS
This utility implements a client for the afraid.org dynamic DNS service.
A cron job is set up to check whether the external IP address has
changed, and when it does, connects to afraid.org and updates the
DNS entries of all the domains of the given account.
SUPPORTED OPERATING SYSTEMS
* Fedora
* CentOS
* RHEL
* OSX
INSTALL
1. log in as root (needed to access config, cron and cache directories):
# su -
2. Download the tarball:
# cd /tmp
# wget ftp://arix.com/afraid-dyndns-x.x.tar.gz
on OSX, you can use:
# curl -O ftp://anon@arix.com/afraid-dyndns-x.x.tar.gz
3. Untar:
# tar xzvf afraid-dyndns-x.x.tgz
4. Install:
# cd afraid-dyndns-x.x
# ./install
CONFIGURATION
To configure, edit the /etc/afraid-dyndns.conf file.
The AccountHash field refers to the SHA value assigned to your
afraid.org account. To get it, log into afraid.org and visit:
http://freedns.afraid.org/api/
then click on either of the "Available API Interfaces" links and take
the value of the "sha" parameter (it's a long string) from the url.
The Notify address (if present) will be sent e-mail whenever the
DNS is refreshed. CacheFile is the file name where the external
IP address will be cached.
Additionally, the cron job checks the external IP address every 15
minutes. To modify this, edit /etc/cron.d/afraid-dyndns - on OSX you'll
need to edit the file /Library/LaunchDaemons/org.afraid.dyndns.plist (and
reboot)
Unlink on Linux systems where all names on the account are refreshed with
the IP of the host, on OSX the default configuration only names matching
the host's name will be refreshed. The assumption here is that Linux
hosts are likely to be used as servers (which may require multiple names
as in the case of a webserver hosting multiple domains), whereas OSX
hosts are likely to be used as clients e.g. laptops which we want
accessible via a domain name but which roam.
To change this behaviour on OSX, edit the plist, take out the
hostname parameter (after the --quiet) and reboot.
SYNTAX
Call the script with --help
LIMITATIONS
At present, only one account is supported.
AUTHOR/SUPPORT
Erick Calder <e@arix.com> - For bugs, suggestions, etc. please
feel free to contact me.