table of contents
| INADYN(8) | System Manager's Manual (smm) | INADYN(8) |
NAME¶
inadyn —
SYNOPSIS¶
inadyn |
[-a,
--alias ALIAS[,HASH]]
[-b, --background]
[-B, --bind IFNAME]
[-d, --drop-privs USER[:GROUP]]
[-e, --exec SCRIPT]
[-f, --forced-update SEC]
[-F, --config FILE]
[-L, --logfile FILE]
[-P, --pidfile FILE]
[-c, --cachefile FILE]
[-s, --syslog]
[-h, --help]
[-i, --iface IFNAME]
[-n, --iterations NUM]
[-H, --checkip-url SERVER[:PORT] URL]
[-N, --server-name SERVER[:PORT]]
[-U, --server-url PATH]
[-S, --system PROVIDER]
[-t, --test]
[-T, --period SEC]
[-u, --username USERNAME]
[-p, --password PASSWORD]
[-v, --version]
[-V, --verbose LEVEL]
[-w, --wildcard]
[-x, --proxy-server SERVER[:PORT]] |
DESCRIPTION¶
inadyn is a client for “open” name
servers, also known as DDNS service providers. That is, it lets you have a
public Internet name for your DHCP/PPPoE assigned system. Some of these
services are free of charge for non-commercial use, others take a small fee,
but also provide more domains to choose from.
Common DDNS service providers supported by
inadyn:
- http://www.dyndns.org
- http://freedns.afraid.org
- http://zoneedit.com
- http://www.no-ip.com
- http://www.easydns.com
- http://www.tzo.com
- http://www.3322.org
- http://www.dnsomatic.com
- http://www.tunnelbroker.net
- http://dns.he.net/
- http://www.dynsip.org
- http://www.sitelutions.com
- http://www.dnsexit.com
- http://www.changeip.com
The basic operation of inadyn is to
periodically check whether the actual Internet accessible IP of your system
is the same one that is recorded in the name server, and update the name
server records when there is a mismatch.
OPTIONS¶
-h,--help- Print a summary of the options and exit.
-u,--usernameUSERNAME- The username, if applicable. This might be referred to as hash.
-p,--passwordPASSWORD- The password, if applicable.
-a,--aliasALIAS- A host name alias. This option can appear multiple times, for each domain that has the same IP.
-F,--configFILE- The file name that contains
inadyncommand options exactly as specified in the command line syntax (adds to those already present on the cmd line). The default configuration file name, /etc/inadyn.conf, is looked at automatically ifinadynis called without any command line options. The format is as expected for a UNIX config file; the hash character is used to comment entire lines. Spaces are ingored. The long options may be specified without -- if placed at the beginning of the line. -H,--checkip-urlSERVER[:PORT] URL- The client IP is detected by calling URL from this SERVER[:PORT]. Defaults to http://checkip.dyndns.org.
-N,--server-nameSERVER[:PORT]- The server that receives the update DNS requests. When no proxy is
specified it is sufficient to set the
--systemoption so that the default servers will be taken. The option is useful for generic DynDNS services that support HTTP update. -U,--server-urlPATH- The update path on the DynDNS server.
-S,--systememail@ddns-service.tld- DNS service to connect to. Defaults to
default@dyndns.org.
default@dyndns.org- http://www.dyndns.org
default@freedns.afraid.org- http://freedns.afraid.org
default@zoneedit.com- http://zoneedit.com
default@no-ip.com- http://www.no-ip.com
default@easydns.com- http://www.easydns.com
default@tzo.com- http://www.tzo.com
dyndns@3322.org- http://www.3322.org
default@dnsomatic.com- http://www.dnsomatic.com
ipv6tb@he.net- http://www.tunnelbroker.net
dyndns@he.net- http://dns.he.net/
default@dynsip.org- http://www.dynsip.org
default@sitelutions.com- http://www.sitelutions.com
default@dnsexit.com- http://www.dnsexit.com
default@changeip.com- http://www.changeip.com
custom@http_svr_basic_auth
-x,--proxy-serverSERVER[:PORT]- HTTP proxy server name and port. Default: N/A.
-T,--periodSEC- How often the IP is checked, in seconds. Default: apx 1 minute. Max: 10 days.
-f,--forced-updateSEC- How often the IP should be updated even if it is not changed. The time should be given in seconds.
--L,--logfileFILE- The name, including the full path, of a log file. See also the
---syslogoption, below. -b,--background- Run in background. Output is sent to the UNIX syslog facilities or to a log file, if one was specified.
-V,--verboseLEVEL- Set the debug level, which is an integer between 0 to 5.
-n,--iterationsNUM- Set the number of DNS updates. The default is 0, which means infinity.
-s,--syslog- Use the system syslog(3) mechanism for log messages, warnings and error conditions.
-d,--drop-privsUSER[:GROUP]- Drop privileges after initial setup to the given user and group.
-B,--bindIFNAME- Set interface to bind to. Only on UNIX systems.
-i,--ifaceIFNAME- Set interface to check for IP. Only on UNIX systems. External IP check is not performed.
-P,--pidfileFILE- Set pidfile, defaults to /var/run/inadyn/inadyn.pid.
-c,--cachefileFILE- Set cachefile, defaults to /var/run/inadyn/inadyn.cache.
-e,--execSCRIPT- Full path to external command, or script, to run after a successful DDNS
update. SCRIPT can use following environment
variables: INADYN_IP, INADYN_HOSTNAME. First environment variable contains
new IP address, second one - host name alias. INADYN_IFACE is available,
if
--ifaceoption used. -w,--wildcard- Enable domain name wildcarding for easydns.com. Default disabled. For
inadyn< 1.96.3 wildcarding was enabled by default. -t,--test- Force one update and quit.
TYPICAL USAGE¶
http://www.dyndns.org¶
inadyn -u username -p password -a
my.registered.name
inadyn --username
username --password password --period 60 --alias
test.homeip.net --alias my.second.domain
inadyn --background -u
test -p test --period 60 --alias test.homeip.net
--alias my.second.domain --logfile
inadyn_srv.log
http://freedns.afraid.org¶
inadyn --system
default@freedns.afraid.org -u username -p password -a
my.registrated.name
inadyn -u username -p
password --period 60 --alias test.homeip.net
-a my.second.domain --system
default@freedns.afraid.org
The “hash” is automatically retrieved by
inadyn using freedns API.
OUTPUT¶
inadyn prints a message when the IP is updated. If no
update is needed then by default it prints a single “.”
character, unless --verbose is set to
0. Therefore, unless --verbose
is set to 0, the log file will contains lot of dots.
When the connection goes down it could be that inadyn
will print some error messages. Those are harmless and should be followed by
“OK” messages after the connection is back up.
SIGNALS¶
inadyn responds to the following signals:
- HUP
- Restarts
inadyn. The configuration file is reread every time this signal is evoked. It is also useful when a new DHCP/PPPoE lease or new gateway is received. Please note thatinadyndoes not track such events by itself. You need an external monitor for that. - TERM
- Terminates
inadyngracefully. - INT
- The same as TERM.
- QUIT
- The same as TERM.
For convenience in sending signals, inadyn
writes its process ID to /var/run/inadyn/inadyn.pid
upon startup.
FILES¶
- /etc/inadyn.conf
- /var/run/inadyn/inadyn.cache
- /var/run/inadyn/inadyn.pid
SEE ALSO¶
inadyn.conf(5)The
inadyn home page is
http://github.com/troglobit/inadyn
AUTHORS¶
inadyn was written by Narcis
Ilisei ⟨inarcis2002@hotpop.com⟩, Steve
Horbachuk and later Joachim Nilsson
⟨troglobit@gmail.com⟩.
This manual page was initially written for the Debian GNU/Linux system by Shaul Karl ⟨shaul@debian.org⟩. Later Joachim Nilsson picked up maintenance.
| October 31, 2010 | Linux 4.19.0-10-amd64 |