# Simple No-ip.com Dynamic DNS Updater | |
# | |
# By Nathan Giesbrecht (http://nathangiesbrecht.com) | |
# | |
# 1) Install binary as described in no-ip.com's source file (assuming results in /usr/local/bin) | |
# 2) Run sudo /usr/local/bin/noip2 -C to generate configuration file | |
# 3) Copy this file noip2.service to /etc/systemd/system/ | |
# 4) Execute `sudo systemctl daemon-reload` | |
# 5) Execute `sudo systemctl enable noip2` | |
# 6) Execute `sudo systemctl start noip2` | |
# | |
# systemd supports lots of fancy features, look here (and linked docs) for a full list: | |
# http://www.freedesktop.org/software/systemd/man/systemd.exec.html | |
[Unit] | |
Description=No-ip.com dynamic IP address updater | |
After=network.target | |
After=syslog.target | |
[Install] | |
WantedBy=multi-user.target | |
Alias=noip.service | |
[Service] | |
# Start main service | |
ExecStart=/usr/local/bin/noip2 | |
Restart=always | |
Type=forking |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Thx! |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Tks a lot! |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
Thank you! It's perfect: short, concise and to the target! |
This comment has been minimized.
This comment has been minimized.
Great work |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Many thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks |
This comment has been minimized.
This comment has been minimized.
Thank you! :) |
This comment has been minimized.
This comment has been minimized.
https://bugzilla.redhat.com/show_bug.cgi?id=1431368 for those that have this error on boot, just change replace: Thank you for snippets :) |
This comment has been minimized.
This comment has been minimized.
Very awesome!!!! Thank you!!!! |
This comment has been minimized.
This comment has been minimized.
Don't forget to do a "sudo systemctl enable noip2.service" to enable this and create the proper symlinks. Then it will run on reboot. |
This comment has been minimized.
This comment has been minimized.
Thanks! Wrote this myself WAY too many times... but this one is more reliable, somehow. |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks! Couldn't get mine to work... |
This comment has been minimized.
This comment has been minimized.
Thanks! Works like a charm :) |
This comment has been minimized.
This comment has been minimized.
Perfect! Worked right out of the box for Ubuntu 18.04 LTS. Thanks for sharing! |
This comment has been minimized.
This comment has been minimized.
Awesome |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks dude, that's great for a lazy ass like me :-) |
This comment has been minimized.
This comment has been minimized.
Thank you! |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
Thank you very much. It saved me several hours as I've ever remember them. |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
So I think there is a problem. I don't think it re-runs this periodically to update network changes (at least it does not on my machine). Is there a change we can make to do this? |
This comment has been minimized.
This comment has been minimized.
I figured it out. It turns out the noip2 binary defaults to updating only every 30 DAYS (not minutes). Oddly, you have to do this to change the config file default: pkill noip2 # stop running daemon |
This comment has been minimized.
This comment has been minimized.
I think the issue here is that when we go to the no-ip2 website we see that our ip hasn't updated for longer than the interval we set. This happens because, with default values, If you want to change this default behavior, you'll want to change two values in
Once you have done this rerun |
This comment has been minimized.
This comment has been minimized.
Can anyone help me. When I check status, I always get :
|
This comment has been minimized.
This comment has been minimized.
What flags are you passing to the executable?
|
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Many thanks, Nathan! You have done the trick :-) It works like a charm... |
This comment has been minimized.
This comment has been minimized.
In between steps 3 and 4 you are missing a step. See missing step 4) below: # 3) Copy this file noip2.service to /etc/systemd/system/
# 4) Execute `sudo systemctl daemon-reload`
# 5) Execute `sudo systemctl enable noip2`
# 6) Execute `sudo systemctl start noip2` |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thanks! Why noip.com not reffer to here!?!? Just envy??? Great job! |
This comment has been minimized.
This comment has been minimized.
Works great! Thanks for the clean & simple solution! |
This comment has been minimized.
This comment has been minimized.
Why the service run as "nobody"? How to make it run as "root"? root 5409 0.0 0.0 21224 2748 ? S 01:33 0:00 /lib/systemd/systemd-udevd |
This comment has been minimized.
This comment has been minimized.
I don't think it needs to run as a privileged user as it's not updating anything on your own system. But if you're having problems I'd suggest checking out the SystemD service file docs https://www.freedesktop.org/software/systemd/man/systemd.exec.html |
This comment has been minimized.
This comment has been minimized.
Thanks! |
This comment has been minimized.
This comment has been minimized.
Thank you, folks! |
This comment has been minimized.
This comment has been minimized.
Thank you. It's work fine. |
This comment has been minimized.
This comment has been minimized.
yessss thanks |
This comment has been minimized.
This comment has been minimized.
Very good. Thanks. |
This comment has been minimized.
This comment has been minimized.
Awesome!! I would like to add, for anyone running a VPN on boot as well (using OpenVPN), perhaps you want the noip2 service to wait until VPN is connected before updating address. In this case just change the
|
This comment has been minimized.
This comment has been minimized.
very good! thnx |
This comment has been minimized.
This comment has been minimized.
I am getting error here.
what I did wrong? |
This comment has been minimized.
This comment has been minimized.
Same issue here. Hover running:
So it might be still working fine. Not sure. |
This comment has been minimized.
This comment has been minimized.
You are the fucking Best¡ Greetings from Argentina¡ |
This comment has been minimized.
This comment has been minimized.
I tried to do it on my Raspberry Pi 3B running Raspbian Buster to avoid setting 0.0.0.0 as my IP address but it seems not to be working... A temporary fix I did was calling the following on my sudo's crontab:
|
This comment has been minimized.
This comment has been minimized.
Hi I'm following along with this tutorial: Im getting the following when I run I noticed there is an extra step here to do with the daemon which Ive done but am not really getting it an was hoping it would just work. Anyone got any ideas, or know how to check if its running properly? I left it at the default 30 Answer: Not sure if its 100% right yet because I have to wait for the name servers to replicate around, but Im passed the roadblock of not being able to get tthe service runnign and the restart launch not working. Hope someone else gets |
This comment has been minimized.
This comment has been minimized.
Hi, I experience a different behavior: |
This comment has been minimized.
This comment has been minimized.
Nice job it works and helps by just copy/pasting |
This comment has been minimized.
This comment has been minimized.
Thank you works perfectly. cheers |
This comment has been minimized.
This comment has been minimized.
Thank you very much |
This comment has been minimized.
This comment has been minimized.
I was so close, but no cigars..... now my noip2.service purrs like a kitten. Thank you! |
This comment has been minimized.
This comment has been minimized.
I was having this error as well in a Raspbian installation:
Found a workaround, just add to noip2.service file:
After rebooting, now it works. Dec 15 02:51:35 msdos sh[674]: ping: google.com: Temporary failure in name resolution
Dec 15 02:51:36 msdos sh[674]: ping: google.com: Temporary failure in name resolution
Dec 15 02:51:37 msdos sh[674]: PING google.com() 56 data bytes
Dec 15 02:51:37 msdos sh[674]: 64 bytes from (): icmp_seq=1 ttl=119 time=10.7 ms
Dec 15 02:51:37 msdos sh[674]: --- google.com ping statistics ---
Dec 15 02:51:37 msdos sh[674]: 1 packets transmitted, 1 received, 0% packet loss, time 0ms
Dec 15 02:51:37 msdos sh[674]: rtt min/avg/max/mdev =
Dec 15 02:51:37 msdos systemd[1]: Started No-ip.com dynamic IP address updater.
Dec 15 02:51:37 msdos noip2[1030]: v2.1.9 daemon started with NAT enabled
Dec 15 02:51:41 msdos noip2[1030]: mydns.ddns.net was already set to xxx.xxx.xxx.xxx Not exactly "pretty" but with all due respect, I've spent three hours using noip2.service files from the whole internet, from centos to slackware to arch linux with no solution. |
This comment has been minimized.
This comment has been minimized.
thank you so much |
This comment has been minimized.
This comment has been minimized.
Works perfectly wit TurnKey GNU/Linux 16.0 (Debian 10/Buster). Thank you. |
This comment has been minimized.
This comment has been minimized.
On RHEL, where SELinux is enabled, you might need to run:
|
This comment has been minimized.
Thanks, this is exactly what I needed!