Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UDMPro 1.11.1: Doesn't seem to calling this #4

Closed
lrosenman opened this issue Jan 30, 2022 · 7 comments
Closed

UDMPro 1.11.1: Doesn't seem to calling this #4

lrosenman opened this issue Jan 30, 2022 · 7 comments

Comments

@lrosenman
Copy link

I have this running on a localhost of mine on a dedicated (static) IP in RFC-1918 space. I have the attached set up, but I don't see any traffic to the daemon.

Ideas
Screen Shot 2022-01-30 at 3 54 14 PM
?

@lrosenman
Copy link
Author

network 7.0.20 as well

@lrosenman
Copy link
Author

If I handcraft the HTTP request it works.

@frillip
Copy link
Owner

frillip commented Feb 9, 2022

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?

@lrosenman
Copy link
Author

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

@frillip
Copy link
Owner

frillip commented Feb 9, 2022

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

@lrosenman
Copy link
Author

lrosenman commented Feb 9, 2022

👎

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.

@frillip
Copy link
Owner

frillip commented Feb 9, 2022

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.

@frillip frillip closed this as completed Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants