Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

7 votes
4 answers
13810 views
Configure debian ddclient with dyndns noip.com
I'm having trouble to configure debian jessie as noip.com updater. My config looks like this: # Configuration file for ddclient generated by debconf # # /etc/ddclient.conf use=web web=checkip.dyndns.com web-skip='Current IP Address: ' protocol=dyndns2 server=dynupdate.no-ip.com/nic/update login=myus...
I'm having trouble to configure debian jessie as noip.com updater. My config looks like this: # Configuration file for ddclient generated by debconf # # /etc/ddclient.conf use=web web=checkip.dyndns.com web-skip='Current IP Address: ' protocol=dyndns2 server=dynupdate.no-ip.com/nic/update login=myusername password='mypass' myhost.noip.me everything seems to be fine but if I ping myhost.noip.me the ip address is not updated. By checking ddclient -daemon=0 -debug -verbose -noquiet 2 /etc/ddclient.conf I get the following reply: .conf === opt ==== opt{cache} : opt{cmd} : opt{cmd-skip} : opt{daemon} : 0 opt{debug} : 1 opt{exec} : opt{facility} : opt{file} : opt{force} : opt{foreground} : opt{fw} : opt{fw-login} : opt{fw-password} : opt{fw-skip} : opt{geturl} : opt{help} : opt{host} : opt{if} : opt{if-skip} : opt{ip} : opt{login} : opt{mail} : opt{mail-failure} : opt{max-interval} : 2592000 opt{min-error-interval} : 300 opt{min-interval} : 30 opt{options} : opt{password} : opt{pid} : opt{postscript} : opt{priority} : opt{protocol} : opt{proxy} : opt{query} : opt{quiet} : 0 opt{retry} : opt{server} : opt{ssl} : opt{syslog} : opt{test} : opt{timeout} : opt{use} : opt{verbose} : 1 opt{web} : opt{web-skip} : === globals ==== globals{daemon} : 60 globals{debug} : 1 globals{login} : myusername globals{password} : mypass globals{protocol} : dyndns2 globals{quiet} : 0 globals{server} : dynupdate.no-ip.com/nic/update globals{use} : web globals{verbose} : 1 globals{web} : checkip.dyndns.com globals{web-skip} : Current IP Address: === config ==== config{myhost.noip.me}{atime} : 0 config{myhost.noip.me}{backupmx} : 0 config{myhost.noip.me}{cacheable} : ARRAY(0x1770c50) config{myhost.noip.me}{cmd} : config{myhost.noip.me}{cmd-skip} : config{myhost.noip.me}{custom} : 0 config{myhost.noip.me}{fw} : config{myhost.noip.me}{fw-login} : config{myhost.noip.me}{fw-password} : config{myhost.noip.me}{fw-skip} : config{myhost.noip.me}{host} : myhost.noip.me config{myhost.noip.me}{if} : ppp0 config{myhost.noip.me}{if-skip} : config{myhost.noip.me}{ip} : config{myhost.noip.me}{login} : myusername config{myhost.noip.me}{max-interval} : 2592000 config{myhost.noip.me}{min-error-interval} : 300 config{myhost.noip.me}{min-interval} : 30 config{myhost.noip.me}{mtime} : 0 config{myhost.noip.me}{mx} : config{myhost.noip.me}{password} : mypass config{myhost.noip.me}{protocol} : dyndns2 config{myhost.noip.me}{script} : /nic/update config{myhost.noip.me}{server} : dynupdate.no-ip.com/nic/update config{myhost.noip.me}{static} : 0 config{myhost.noip.me}{status} : config{myhost.noip.me}{use} : web config{myhost.noip.me}{warned-min-error-interval} : 0 config{myhost.noip.me}{warned-min-interval} : 0 config{myhost.noip.me}{web} : checkip.dyndns.com config{myhost.noip.me}{web-skip} : Current IP Address: config{myhost.noip.me}{wildcard} : 0 config{myhost.noip.me}{wtime} : 30 === cache ==== cache{myhost.noip.me}{atime} : 0 cache{myhost.noip.me}{backupmx} : 0 cache{myhost.noip.me}{custom} : 0 cache{myhost.noip.me}{host} : myhost.noip.me cache{myhost.noip.me}{ip} : 12.34.56.78 cache{myhost.noip.me}{mtime} : 1437992275 cache{myhost.noip.me}{mx} : cache{myhost.noip.me}{script} : /nic/update cache{myhost.noip.me}{static} : 0 cache{myhost.noip.me}{status} : cache{myhost.noip.me}{warned-min-error-interval} : 0 cache{myhost.noip.me}{warned-min-interval} : 0 cache{myhost.noip.me}{wildcard} : 0 cache{myhost.noip.me}{wtime} : 30 DEBUG: proxy = DEBUG: url = checkip.dyndns.com DEBUG: server = checkip.dyndns.com CONNECT: checkip.dyndns.com CONNECTED: using HTTP SENDING: GET / HTTP/1.0 SENDING: Host: checkip.dyndns.com SENDING: User-Agent: ddclient/3.8.2 SENDING: Connection: close SENDING: RECEIVE: HTTP/1.1 200 OK RECEIVE: Content-Type: text/html RECEIVE: Server: DynDNS-CheckIP/1.0 RECEIVE: Connection: close RECEIVE: Cache-Control: no-cache RECEIVE: Pragma: no-cache RECEIVE: Content-Length: 103 RECEIVE: RECEIVE: Current IP CheckCurrent IP Address: 12.34.56.78 DEBUG: get_ip: using web, checkip.dyndns.com reports 12.34.56.78 SUCCESS: myhost.noip.me: skipped: IP address was already set to 12.34.56.78. I tooks like my current (artificial) IP "12.34.56.78" has been set properly. Now if I ping (my artificial host) myhost.noip.me I get a different IP. Any suggestion what I need to change to get ddclient working with noip.com?
nali (171 rep)
Jul 28, 2015, 01:46 PM • Last activity: Nov 12, 2024, 10:17 AM
9 votes
5 answers
17919 views
Systemd-networkd: Run script after DHCP client acquires new address
I am on ubuntu 18.04 server. I need to run a script that updates an IP address on CloudFlare (kind of DynDNS script). In previous versions I could do this with a DHCLIENT exit hooks for the interface enp1s0. However, systemd now uses their own build-in DHCP client. How can I write a systemd unit tha...
I am on ubuntu 18.04 server. I need to run a script that updates an IP address on CloudFlare (kind of DynDNS script). In previous versions I could do this with a DHCLIENT exit hooks for the interface enp1s0. However, systemd now uses their own build-in DHCP client. How can I write a systemd unit that executes my bash script as soon as a new IP address is provided to the DCHP client? Systemd is managing the interface enp1s0: #sudo systemctl status systemd-networkd ● systemd-networkd.service - Network Service Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled-runtime; vendor preset: enabled) Active: active (running) since Tue 2018-09-18 01:54:16 +08; 10h ago Docs: man:systemd-networkd.service(8) Main PID: 878 (systemd-network) Status: "Processing requests..." Tasks: 1 (limit: 4915) CGroup: /system.slice/systemd-networkd.service └─878 /lib/systemd/systemd-networkd Sep 18 01:54:27 xxx systemd-networkd: enp1s0: Configured
alexander (91 rep)
Sep 18, 2018, 05:18 AM • Last activity: Feb 29, 2024, 01:32 AM
0 votes
1 answers
52 views
Recofiguring DNS/DHCP: a bit of advice?
I am administrating a LAN with a mix of Linux servers and Windows/OSX/Linux/other systems. A while ago I configured our DHCP- (isc-dhcpd-4.4.1) and DNS server (BIND 9.16.44-Debian) to implement DDNS, which works fine. However, the address space is now looking really quite messy, with some servers ha...
I am administrating a LAN with a mix of Linux servers and Windows/OSX/Linux/other systems. A while ago I configured our DHCP- (isc-dhcpd-4.4.1) and DNS server (BIND 9.16.44-Debian) to implement DDNS, which works fine. However, the address space is now looking really quite messy, with some servers having static addresses, so I want to isolate the static addresses at the lower end of the range. This is the interesting bit of dhcpd.conf:
subnet 192.168.50.0 netmask 255.255.255.0 {
  range 192.168.50.10 192.168.50.250;
  option routers 192.168.50.1;
  option broadcast-address 192.168.50.255;
  option boot-size 8208;
  next-server 192.168.50.111;
  option tftp-server-address 192.168.50.111;
  option bootfile-name "/boot/grub/x86_64-efi/core.efi";
  filename "/debian12/boot/efi/EFI/debian/grubx64.efi";
}

host bonsai {
  hardware ethernet FC:34:97:1A:D3:67;
  fixed-address 192.168.50.149;
}

...
As suggested by the host bonsai ... config, some systems are on fixed addresses - I want to move those to static addresses. To my mind it seems as simple as changing the range parameters from range 192.168.50.10 192.168.50.250; to something like range 192.168.50.100 192.168.50.250; - and cleaning up the DNS files, leaving only the static addresses. But is it as simple as this: - Stop named and dhcp - Make the configuration changes (is there a DHCP- or DNS cache somewhere?) - Start named and dhcp - Change the fixed addresses to static addresses, one by one I'm hoping to be able to do this without disrupting people's work; my thinking is that the users on fully dynamic addresses shouldn't notice the change at all - when they renew their lease, they get an address in the new range (unless there is a cache somewhere?). Am I right, though? And I would welcome any advice or opinion.
j4nd3r53n (779 rep)
Feb 7, 2024, 09:40 AM • Last activity: Feb 7, 2024, 01:42 PM
3 votes
0 answers
426 views
DSM DDNS Custom Variables IPv6
I can't figure out the naming rule for IPv6 in the DSM DDNS settings. I want to set up a DDNS with my Strato account. The problem is that the Strato preset only allows IPv4 forwarding: [![DDNS configuration for Strato Preset][1]][1] But I need **only** IPv6. So I figured I could simply create my own...
I can't figure out the naming rule for IPv6 in the DSM DDNS settings. I want to set up a DDNS with my Strato account. The problem is that the Strato preset only allows IPv4 forwarding: DDNS configuration for Strato Preset But I need **only** IPv6. So I figured I could simply create my own custom preset, but there seems to be no naming rule for IPv6. Only __MYIP__, which returns the IPv4. Naming rules for variables in DDNS customization I've checked the help and did some Google work but with no success. On my router it works like this: https://mydoma.in:myplaintextpw@dyndns.strato.com/nic/update?hostname=mydoma.in&myip= But I can't figure out the naming rule for IPv6 in the DSM DDNS settings.
Walter Lars Lee (131 rep)
Apr 8, 2023, 08:51 AM
31 votes
2 answers
28021 views
How does dig find my WAN-IP-address? What is "myip.opendns.com" doing?
I needed to automatically get my own WAN-IP-address from my router. I found this [question][1] and, among others, a solution with `dig` was proposed: dig +short myip.opendns.com @resolver1.opendns.com It works perfectly, but now I want to understand what it is doing. Here is what I (hope to) underst...
I needed to automatically get my own WAN-IP-address from my router. I found this question and, among others, a solution with dig was proposed: dig +short myip.opendns.com @resolver1.opendns.com It works perfectly, but now I want to understand what it is doing. Here is what I (hope to) understand so far (please correct me, if I am wrong): - +short just gives me a short output - @resolver1.opendns.com is the DNS server, which is asked what IP address belongs to the given domain What's not clear to me is myip.opendns.com. If I would write www.spiegel.de instead, I would get the IP address of the domain www.spiegel.de, right? With myip.opendns.com I get the WAN-IP of my router. So is myip.opendns.com just emulating a domain, which is resolved to my router? How does it do it? Where does it get my IP from? And how is it different to what webpages, like e.g., www.wieistmeineip.de, are doing? They also try to get my IP. In the answer of Krinkle on the question I mentioned, it is stated that this "dns-approach" would be better than the "http-approach".  Why is it better and what is the difference? There has to be a difference, because the WAN-IP I get from dig +short myip.opendns.com @resolver1.opendns.com (ip1) is the one I can also see in the web interface of my router, whereas www.wieistmeineip.de (and other similar sites too) is giving me another IP address (ip2). I could imagine that my ISP is using some kind of sub-LAN, so that my requests to webservers are going through another (ISP-) router which has ip2, so that www.wieistmeineip.de is just seeing this address (ip2). But, again, what is myip.opendns.com doing then? Additionally: Opening ip1 from within my LAN is giving me the test website from my RasPi, opening it from the outside of my LAN (mobile internet) does not work. Does it mean, that ip1 is no proper "internet IP" but more like a LAN IP?
Beate Bier (413 rep)
Jan 6, 2017, 01:50 PM • Last activity: Jun 9, 2022, 11:52 AM
0 votes
1 answers
271 views
(How) Can I configure a fallback for DDClient?
I [want to use the Fritzbox update feature of DDClient](https://github.com/linuxserver/docker-ddclient#get-dynamic-ip-from-fritzbox), but also want to have a fallback to a public web server, if that does not work for some reason (e.g. cause someone just switched to another router or whatever…). As f...
I [want to use the Fritzbox update feature of DDClient](https://github.com/linuxserver/docker-ddclient#get-dynamic-ip-from-fritzbox) , but also want to have a fallback to a public web server, if that does not work for some reason (e.g. cause someone just switched to another router or whatever…). As far as I known, just duplicating the use=cmd key seems to override the previous configuration?
protocol=dyndns2
use=cmd, cmd='curl https://checkipv4.dedyn.io/ '
use=cmd, cmd=/etc/ddclient/get-ip-from-fritzbox
#use=if, if=eth0
ssl=yes

server=update.dedyn.io
login=domain.dedyn.io
password='___password_here____'
domain.dedyn.io
The syntax use=cmd, cmd='curl https://checkipv4.dedyn.io/ ', cmd=/etc/ddclient/get-ip-from-fritzbox also works, but I guess it does the same, or does not it? In any case [the official documentation](https://ddclient.net/usage.html) is of little help and does not explain the configuration format in a very elaborate way. So can you actually specify a fallback in ddclient? If so, how?
rugk (3506 rep)
Jun 19, 2021, 09:44 PM • Last activity: Jun 20, 2021, 09:56 AM
0 votes
0 answers
1573 views
DDNS ssh gets stuck after “SSH2_MSG_KEXINIT sent” message
I am trying to set up ssh logging from across the internet. I have a DDNS `noip.com` domain which I can successfully ping and it reaches my host. The DDNS is configured straight on my router and the relevant ports have been forwarded (port 22). When I execute `ssh -vv myuser@foo.ddns.net -p 8001` I...
I am trying to set up ssh logging from across the internet. I have a DDNS noip.com domain which I can successfully ping and it reaches my host. The DDNS is configured straight on my router and the relevant ports have been forwarded (port 22). When I execute ssh -vv myuser@foo.ddns.net -p 8001 I get the following: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: resolving "foo.ddns.net" port 8001 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to foo.ddns.net [123.456.789.100] port 8001. debug1: Connection established. debug1: identity file /home/myuser/.ssh/id_rsa type 0 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/myuser/.ssh/id_ed25519-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 debug1: Remote protocol version 2.0, remote software version OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 debug1: match: OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 pat OpenSSH* compat 0x04000000 debug2: fd 3 setting O_NONBLOCK debug1: Authenticating to foo.ddns.net:8001 as 'myuser' debug1: SSH2_MSG_KEXINIT sent I've disabled the router firewall, the OS firewall, I've edited hosts.allow and hosts.deny to allow everything. How can I get ssh to authenticate successfully or give me an error message of sorts?
s5s (123 rep)
Dec 24, 2019, 03:07 AM • Last activity: Dec 24, 2019, 07:38 AM
0 votes
0 answers
199 views
Faulty inadyn-mt.conf
I am having trouble with the `inadyn-mt.conf` file. A unit file: ``` [Unit] Description=Internet Dynamic DNS Client Documentation=https://sourceforge.net/projects/inadyn-mt/ ConditionPathExists=/etc/inadyn-mt/inadyn-mt.conf After=network-online.target Requires=network-online.target [Service] Type=si...
I am having trouble with the inadyn-mt.conf file. A unit file:
[Unit]
Description=Internet Dynamic DNS Client
Documentation=https://sourceforge.net/projects/inadyn-mt/ 
ConditionPathExists=/etc/inadyn-mt/inadyn-mt.conf
After=network-online.target
Requires=network-online.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/inadyn-mt --input_file /etc/inadyn-mt/inadyn-mt.conf

User=inadyn
PrivateTmp=yes

[Install]
WantedBy=multi-user.target
starts inadyn. The config file:
$ ls /etc/inadyn-mt
640 -rw-r----- 1 inadyn inadyn 771 May  8 22:52 inadyn-mt.conf
looks like:
verbose                 
syslog
ip_server_name          icanhazip.com /

# update interval 10m
update_period_sec       600

# force update after 6h
forced_update_period    21600

# ipv6 priv pref = pub
addr_pref               pub


dyndns_system           default@freedns.afraid.org
username                

alias                   , ip4
alias                   , ip6


dyndns_system           default@duckdns.org
username                

alias
Starting the unit fails:
May 08 23:00:56 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:00:56 raspberrypi inadyn-mt: Wed May  8 23:00:56 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:56 raspberrypi systemd: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:56 raspberrypi systemd: Stopped Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:00:56 raspberrypi systemd: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:56 raspberrypi systemd: Stopped Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:00:56 raspberrypi inadyn-mt: Wed May  8 23:00:56 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:00:56 raspberrypi inadyn-mt: Wed May  8 23:00:56 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi inadyn-mt: Wed May  8 23:00:57 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi inadyn-mt: Wed May  8 23:00:57 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:00:57 raspberrypi inadyn-mt: Wed May  8 23:00:57 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Service hold-off time over, scheduling restart.
May 08 23:00:57 raspberrypi systemd: Stopped Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Start request repeated too quickly.
May 08 23:00:57 raspberrypi systemd: Failed to start Internet Dynamic DNS Client.
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Unit entered failed state.
May 08 23:00:57 raspberrypi systemd: inadyn-mt.service: Failed with result 'start-limit-hit'.
While, and this is surprising, starting inadyn manually works:
$ sudo inadyn-mt --input_file /etc/inadyn-mt/inadyn-mt.conf
Wed May  8 23:04:55 2019: S:INADYN: Started 'inadyn-mt version 02.28.10_audible' - dynamic DNS updater.
Wed May  8 23:04:55 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
Wed May  8 23:04:55 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
Wed May  8 23:04:55 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
Wed May  8 23:04:58 2019: W:INADYN: IP address for alias ':ip4' needs update to ''...
Wed May  8 23:04:58 2019: W:INADYN: IP address for alias ':ip6' needs update to ''...
Wed May  8 23:04:59 2019: W:INADYN: Alias '' to IP '' updated successfully.
Wed May  8 23:04:59 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 08 May 2019 21:04:59 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: EXPIRED

Updated  to  in 0.017 seconds

Wed May  8 23:05:01 2019: W:INADYN: Alias '' to IP '' updated successfully.
Wed May  8 23:05:01 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 08 May 2019 21:05:01 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
Vary: Accept-Encoding
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Expires: Mon, 26 Jul 1997 05:00:00 GMT
X-Cache: MISS

Updated  to  in 0.017 seconds

Wed May  8 23:05:01 2019: W:INADYN: IP address for alias ':auto' needs update to ''...
Wed May  8 23:05:02 2019: W:INADYN: Alias '' to IP '' updated successfully.
Wed May  8 23:05:02 2019: W:INADYN: DYNDNS Server response:
HTTP/1.1 200 OK
Date: Wed, 08 May 2019 21:05:02 GMT
Connection: close
Set-Cookie: ; Expires=Wed, 15 May 2019 21:05:02 GMT; Path=/
Server: nginx/1.4.6 (Ubuntu)
X-Clacks-Overhead: GNU Terry Pratchett
X-Frame-Options: DENY

OK
But if I remove the duckdns part:
verbose                 
syslog
ip_server_name          icanhazip.com /

# update interval 10m
update_period_sec       600

# force update after 6h
forced_update_period    21600

# ipv6 priv pref = pub
addr_pref               pub


dyndns_system           default@freedns.afraid.org
username                

alias                   , ip4
alias                   , ip6
The unit starts as well:
May 08 23:09:41 raspberrypi systemd: Started Internet Dynamic DNS Client.
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: W:LANG: Cannot open language file.  Will use english defaults, or default override (--lang_file ...)
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: S:INADYN: Could not open default servers_additional.cfg.  Will try svr_add_cfg option, if set...
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: W:INADYN: Could not open default wave file, extra/wav/alarm.wav.  Using default, ./alarm.wav...
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: S:INADYN: Started 'inadyn-mt version 02.28.10_audible' - dynamic DNS updater.
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
May 08 23:09:41 raspberrypi inadyn-mt: Wed May  8 23:09:41 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
May 08 23:09:41 raspberrypi INADYN: Wed May  8 23:09:41 2019: E:CACHE_LIST Failed opening cache file in ip_cache_list_read...
May 08 23:09:41 raspberrypi INADYN: Wed May  8 23:09:41 2019: W:WAVE_UTIL: Error loading shared library, libao.so...
May 08 23:09:41 raspberrypi INADYN: Wed May  8 23:09:41 2019: W:WAVE: Error loading shared library, libao...Install libao for audible network status alerts...
May 08 23:09:43 raspberrypi INADYN: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias ':ip4' needs update to ''...
May 08 23:09:43 raspberrypi inadyn-mt: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias ':ip4' needs update to ''...
May 08 23:09:43 raspberrypi inadyn-mt: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias ':ip6' needs update to ''...
May 08 23:09:43 raspberrypi INADYN: Wed May  8 23:09:43 2019: W:INADYN: IP address for alias ':ip6' needs update to ''...
May 08 23:09:44 raspberrypi INADYN: Wed May  8 23:09:44 2019: W:INADYN: Alias '' to IP '' updated successfully.
May 08 23:09:44 raspberrypi inadyn-mt: Wed May  8 23:09:44 2019: W:INADYN: Alias '' to IP '' updated successfully.
May 08 23:09:44 raspberrypi inadyn-mt: Wed May  8 23:09:44 2019: W:INADYN: DYNDNS Server response:
May 08 23:09:44 raspberrypi inadyn-mt: HTTP/1.1 200 OK
May 08 23:09:44 raspberrypi inadyn-mt: Server: nginx
May 08 23:09:44 raspberrypi inadyn-mt: Date: Wed, 08 May 2019 21:09:44 GMT
May 08 23:09:44 raspberrypi inadyn-mt: Content-Type: text/plain; charset=utf-8
May 08 23:09:44 raspberrypi inadyn-mt: Connection: close
May 08 23:09:44 raspberrypi inadyn-mt: Vary: Accept-Encoding
May 08 23:09:44 raspberrypi inadyn-mt: Cache-Control: no-store, no-cache, must-revalidate
May 08 23:09:44 raspberrypi inadyn-mt: Cache-Control: post-check=0, pre-check=0
May 08 23:09:44 raspberrypi inadyn-mt: Pragma: no-cache
May 08 23:09:44 raspberrypi inadyn-mt: Expires: Mon, 26 Jul 1997 05:00:00 GMT
May 08 23:09:44 raspberrypi inadyn-mt: X-Cache: EXPIRED
May 08 23:09:44 raspberrypi inadyn-mt: [1B blob data]
May 08 23:09:44 raspberrypi inadyn-mt: ERROR: Address  has not changed.
May 08 23:09:44 raspberrypi INADYN: [429B blob data]
May 08 23:09:46 raspberrypi INADYN: Wed May  8 23:09:46 2019: W:INADYN: Alias '' to IP '' updated successfully.
May 08 23:09:46 raspberrypi inadyn-mt: Wed May  8 23:09:46 2019: W:INADYN: Alias '' to IP '' updated successfully.
May 08 23:09:46 raspberrypi inadyn-mt: Wed May  8 23:09:46 2019: W:INADYN: DYNDNS Server response:
May 08 23:09:46 raspberrypi inadyn-mt: HTTP/1.1 200 OK
May 08 23:09:46 raspberrypi inadyn-mt: Server: nginx
May 08 23:09:46 raspberrypi inadyn-mt: Date: Wed, 08 May 2019 21:09:46 GMT
May 08 23:09:46 raspberrypi inadyn-mt: Content-Type: text/plain; charset=utf-8
May 08 23:09:46 raspberrypi inadyn-mt: Connection: close
May 08 23:09:46 raspberrypi inadyn-mt: Vary: Accept-Encoding
May 08 23:09:46 raspberrypi inadyn-mt: Cache-Control: no-store, no-cache, must-revalidate
May 08 23:09:46 raspberrypi inadyn-mt: Cache-Control: post-check=0, pre-check=0
May 08 23:09:46 raspberrypi inadyn-mt: Pragma: no-cache
May 08 23:09:46 raspberrypi inadyn-mt: Expires: Mon, 26 Jul 1997 05:00:00 GMT
May 08 23:09:46 raspberrypi inadyn-mt: X-Cache: EXPIRED
May 08 23:09:46 raspberrypi inadyn-mt: [1B blob data]
May 08 23:09:46 raspberrypi inadyn-mt: Updated  to  in 0.187 seconds
May 08 23:09:46 raspberrypi INADYN: [470B blob data]
I guess my config is faulty.
milkpirate (123 rep)
May 8, 2019, 09:14 PM • Last activity: May 8, 2019, 10:04 PM
1 votes
0 answers
256 views
How to override DHCP client identifier
I'm running a DHCP/DNS server with dynamic DNS on Debian 9 (Stretch) How do I override a clients DHCP identifier and place in my own custom value? E.g Android phones on the network identify themselves as androidxxxxx and there are a few of them on the network. This results in a dynDNS update where I...
I'm running a DHCP/DNS server with dynamic DNS on Debian 9 (Stretch) How do I override a clients DHCP identifier and place in my own custom value? E.g Android phones on the network identify themselves as androidxxxxx and there are a few of them on the network. This results in a dynDNS update where I can't tell apart the different phones. I want to override the value the android client send and have a custom DNS record.
Aditya K (2260 rep)
Mar 23, 2019, 01:19 PM
1 votes
1 answers
257 views
dyndns on webserver causes router to disconnect
I have a small webserver configured on my Raspberry Pi (Debian, Jessie). Alongside the services Apache, MySQL, PHP etc. there is a Dynamic DNS client 'ddclient' running as daemon to check the public ip to my domain every 5 minutes. The service works fine but has the nasty side effect to cause my rou...
I have a small webserver configured on my Raspberry Pi (Debian, Jessie). Alongside the services Apache, MySQL, PHP etc. there is a Dynamic DNS client 'ddclient' running as daemon to check the public ip to my domain every 5 minutes. The service works fine but has the nasty side effect to cause my router (FritzBox Fon WLAN 7360) to disconnect from the internet every few minutes. I'm pretty sure that ddclient is the reason for the interruptions because this problem came up since the service is running. What can I do to solve this? Is it technically possible for ddclient to be the guilty one? Does ddclient have a wrong configuration? Is my router broken? What if I set the ddclient service as run_ipup="true"? Will my raspberry automatically update the IP-address as soon as it changes? Here is an excerpt from my router log. 31.03.17 11:45:38 Internet connection was successfully established. IP-Address: xx.xx.xxx.xxx, DNS-server: xxx.x.xxx.xxx and xxx.x.xx.xx, Gateway xx.xxx.xx.xxx, Broadband-PoP: ewetel.dsl-e320-02-Bremen 31.03.17 11:45:34 DSL is available (DSL-synchronization exists with 11102/1040 kbit/s). 31.03.17 11:44:50 Timeout with PPP-negotiation 31.03.17 11:44:49 Internet connection was disconnected 31.03.17 11:44:45 DSL does not respond (no DNS-synchronization) This is only an excerpt of dozens of those messages. Note that every time the router reconnects to the internet the IP-address changes. Please help. Thanks!! **EDIT**: Regarding to Eamonns answer I have set up my a dynamic dns service using curl and crond. Thanks Eamonns, you've helped me alot!
pixelmusik (629 rep)
Mar 31, 2017, 11:19 AM • Last activity: Apr 2, 2017, 08:29 PM
1 votes
1 answers
775 views
SSH strange login behavior - maybe man in the middle attack
I have a server in my home and I am using dynamic dns and has been so for over 10 years without issues. Logging in using ssh from outside has been no problem but I did disable the port on my router few months ago as I don't use it that much. So here is my issue. I can log in from behind the router o...
I have a server in my home and I am using dynamic dns and has been so for over 10 years without issues. Logging in using ssh from outside has been no problem but I did disable the port on my router few months ago as I don't use it that much. So here is my issue. I can log in from behind the router on the internal network using ssh and 192.168.1.xxx but when I try logging in using the domain name of my server in which it will then try through the external ip it says: "Unable to negotiate with 36.xxx.xx.xx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha" In fact it should say that there was a timout failure because the port is disabled on the router. I have tried to log in from the outside using ubuntu to confirm this and it then correctly says: "ssh: connect to host xxxx.com port 22: Connection timed out" From inside using Mac connecting to external IP it gets me all the way to the password prompt and then when I fill that in it says it was rejected?? From inside using debian connecting to the external IP it warns about possible man in the middle attack. Why would it be listening on blocked 22 port and offering connections when I try log in using the external IP from behind the router and then rejects the login attempts but from the outside it gives my timout error as it should? Is the router being compromised?
Zorro (11 rep)
Aug 27, 2016, 02:01 AM • Last activity: Aug 27, 2016, 11:35 PM
1 votes
1 answers
50 views
DDNS unix device in 10.x network
My Internet provider uses NAT network to connect users. So, when I connect to the Internet, I got an `10.x.x.x` IP address. Is there any way to access Unix device in such type of network? DDNS needs an external IP to get work, and I can't get it, even if I want. Any ideas? **EDIT**: And of course, t...
My Internet provider uses NAT network to connect users. So, when I connect to the Internet, I got an 10.x.x.x IP address. Is there any way to access Unix device in such type of network? DDNS needs an external IP to get work, and I can't get it, even if I want. Any ideas? **EDIT**: And of course, the best solution is to get constant connection to the device.
kot-6eremot (13 rep)
Sep 15, 2015, 08:58 PM • Last activity: Sep 16, 2015, 07:14 AM
1 votes
2 answers
5643 views
How can I update my dynamic DNS under OpenWRT?
I have an OpenWrt 10.03, and I need to update my dynamic DNS account (e.g., OpenDNS or DYNDNS) when my IP changes. How can I do this from the terminal?
I have an OpenWrt 10.03, and I need to update my dynamic DNS account (e.g., OpenDNS or DYNDNS) when my IP changes. How can I do this from the terminal?
LanceBaynes (41475 rep)
Jun 17, 2011, 06:46 AM • Last activity: Jul 4, 2015, 04:15 PM
1 votes
1 answers
1157 views
Redirection to services in NAT or Bridged Network only with one subdomain
I have one subdomain (dyndns). xyz.dyndns.com (f.e.) Here my question begins: - I have a server for virtualisation. - On the server I have multiple VMs where different web-services are available through https. - My router is configured with xyz.dyndns.com - VMs can be accessed over NAT or be Bridged...
I have one subdomain (dyndns). xyz.dyndns.com (f.e.)
Here my question begins:
- I have a server for virtualisation. - On the server I have multiple VMs where different web-services are available through https. - My router is configured with xyz.dyndns.com - VMs can be accessed over NAT or be Bridged to router How is it possible to access VM_1's and VM_2's WebService like:
https://xyz.dyndns.com/vm_1_webservice or
https://xyz.dyndns.com/vm_2_webservice
Because I need to add redirection rules to router.
I know that with bridging the VMs I can simply redirect http to the VM on router.
In my local network I have configured anything with DNAT (iptables).
I.e. when I go trought localhost(server):40001(port) f.e. I will be redirected to VM_1's WebService which is accessible through SSL. Like:
https://127.0.0.1:40001/vm_1_webservice
It works good. How to go on?(with nginx or apache on host?)
x4k3p (135 rep)
Jan 23, 2014, 03:12 AM • Last activity: Jan 23, 2014, 03:51 AM
4 votes
3 answers
1426 views
DynDNS alternative for SSH?
I have an server that has a dynamic IP address and is accessible over SSH. On the server, a script uploads a text file containing the server's public IP address to a web location whenever that address changes. How can I connect from to the server from some other client? This would be similar to DynD...
I have an server that has a dynamic IP address and is accessible over SSH. On the server, a script uploads a text file containing the server's public IP address to a web location whenever that address changes. How can I connect from to the server from some other client? This would be similar to DynDNS, but using the web to obtain the IP address.
LanceBaynes (41475 rep)
Jun 9, 2011, 06:11 PM • Last activity: Feb 19, 2013, 01:07 PM
2 votes
2 answers
1270 views
OpenWrt ssh host identification with dyndns
If i ssh to my remote OpenWrt router ["via DynDNS"] 1. I get the message @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 2. Ok, i delete the old line in `~/.ssh/known_hosts`, add the new one 3. But my password wasn't accepted (even though I copy+pasted the good password) 4. But: if someone rebo...
If i ssh to my remote OpenWrt router ["via DynDNS"] 1. I get the message @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 2. Ok, i delete the old line in ~/.ssh/known_hosts, add the new one 3. But my password wasn't accepted (even though I copy+pasted the good password) 4. But: if someone reboots the remote router it says: @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ 5. Ok, again, I delete the line in ~/.ssh/known_hosts, add the new one [the old one??], and presto! I can log in! Why? Is this because a dyndns update failed, and I'm trying to log in to the wrong IP? And if the router is rebooted, the dyndns IP will be updated, so that the IP is correct, and I can log in? Is that why it says “host identification failed”?
It happened for the 3rd time... I don't know what's exactly is going on.
LanceBaynes (41475 rep)
Mar 22, 2011, 01:07 PM • Last activity: Mar 22, 2011, 10:21 PM
Showing page 1 of 16 total questions