Coder Social home page Coder Social logo

Comments (7)

lrosenman avatar lrosenman commented on September 3, 2024

network 7.0.20 as well

from noip-rfc2136.

lrosenman avatar lrosenman commented on September 3, 2024

If I handcraft the HTTP request it works.

from noip-rfc2136.

frillip avatar frillip commented on September 3, 2024

Ok, so I had this when I investigated on 7.0.21

The underlying process that does the work on the UDM is inadyn: https://github.com/troglobit/inadyn , so this hasn't changed from 6.x.x.

Config looked valid:

#
# Generated automatically by ubios-udapi-server
#
iface = ppp0

custom 192.168.1.1:1 {
    hostname = "example.com"
    username = "user"
    password = "pass"
    ddns-server = "192.168.1.1"
    ddns-path = "/\/nic/update?hostname=%h&myip=%i"
}

I tried killing the process with kill -15 $(pidof inadyn), process restarted automatically, but then didn't make any sort of request on restart. Checked the cache dir /.inadyn/, no cache file there. Usually it caches the IP when it updates to prevent useless requests.

Running the process manually with /usr/sbin/inadyn -n -s -C -f /run/ddns-ppp0-inadyn.conf -1 -l debug --foreground worked as expected, got a request to the python process:

inadyn[25720]: In-a-dyn version 2.8.1 -- Dynamic DNS update client.
inadyn[25720]: Cached IP# 198.51.100.2 for example.com from previous invocation.
inadyn[25720]: Last update of example.com on Wed Feb  9 13:47:27 2022
inadyn[25720]: Base64 encoded string: TW92ZSBhbG9uZywgbm90aGluZyB0byBzZWUgaGVyZQ==
inadyn[25720]: Get address for custom
inadyn[25720]: Checking for IP# change, querying interface ppp0
inadyn[25720]: Checking IPv4 address 198.51.100.2 ...
inadyn[25720]: IPv4 address 198.51.100.2 is valid.
inadyn[25720]: IPv6 address disallowed, enable with 'allow-ipv6 = true'
inadyn[25720]: Invalid/local address fe80::4144:cfea:dead:beef for ppp0, skipping ...
inadyn[25720]: Checking IPv4 address 198.51.100.2 ...
inadyn[25720]: IPv4 address 198.51.100.2 is valid.
inadyn[25720]: No IP# change detected for custom, still at 198.51.100.2

Interestingly, this created a cache file in /.inadyn/. Deleted the cache file and tried killing the resident inadyn process again, and it made a request properly.

I'm still not sure what the root cause is, perhaps something in the update didn't quite migrate properly, but I seem to have rectified it by running /usr/sbin/inadyn -n -s -C -f /run/ddns-ppp0-inadyn.conf -1 -l debug --foreground on the UDM, then deleting the cache in /.inadyn/, and then forcing a restart of the inadyn process with kill -15 $(pidof inadyn). Might work for you?

from noip-rfc2136.

lrosenman avatar lrosenman commented on September 3, 2024

Quick question before I go chase this.... Does this make requests for ALL DHCP addresses or just the UDMPro's interface(s)?

from noip-rfc2136.

frillip avatar frillip commented on September 3, 2024

Just if the IP on the UDM's WAN interface changes I believe.

from noip-rfc2136.

lrosenman avatar lrosenman commented on September 3, 2024

👎

I'm looking for a solution that updates my DNS server RFC-2136 for EVERY DHCP address given out, IPv6 & IPV4.

My WAN interface hasn't changed in 4 years.

from noip-rfc2136.

frillip avatar frillip commented on September 3, 2024

Whilst not entirely beyond the scope of this project, it's not what it was created for. The 'Dynamic DNS' configuration in the UDM is definitely within the 'Internet' section of setting in the Network application, which is why I thought you were asking about that.

Regarding what you want to do: UDM seems to use dnsmasq for DHCP and DNS. There is a dhcp-script option in the dnsmasq configuration that you could use to achieve what you're looking for, but your changes would be temporary until it was overwritten by ubios-udapi-server which seems to manage the configuration files. Until UI give the option to specify a DNS server to update (unlikely!), your best bet is probably turning off DHCP in UDM and running your own instance of dhcpd from isc-dhcp-server and configuring it to do the DDNS updates you want.

from noip-rfc2136.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.