Have ddns-updater running on Android (yes this is borderline) #575
-
Hi, I am currently trying to run ddns-updater on an old android phone using termux. To do so, I chose to use a dedicated fully qualified name to access it and so as I use ddns-updater on all my other servers, I taught of doing the same here. Even if my phone is rooted, I choose not to bother about docker because I don't want to rebuild a kernel. docker pull --platform linux/arm64 qmcgaw/ddns-updater:latest
docker export $(docker create --platform linux/arm64 qmcgaw/ddns-updater:latest) -o ddns-updater-arm64.tgz
tar -xvf ddns-updater-arm64.tgz updater/app So now some details about my network configuration : However when I run ddns-updater on my android phone I got issues about resolving some DNS which don't have IPv6 counterparts (github and ovh api) while running a nslookup get me a IPv4 address. Here is some partial logs I got from ddns-updater when running it on termux
I know this is a very borderline usage and many things could have an impact so I guess android is messing with me (or termux maybe). Anyway if something has an idea about my issue, fell free to help me 😜 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Ok I found the root cause of my issue. Android doesn't give a There is two solution :
I chose the second one : More info on https://stackoverflow.com/questions/38959067/dns-lookup-issue-when-running-my-go-app-in-termux |
Beta Was this translation helpful? Give feedback.
Ok I found the root cause of my issue.
Android doesn't give a
/etc/resolv.conf
. Termux gives one but the file is located on/data/data/com.termux/files/usr/etc/resolv.conf
and so ddns-updater doesn't use it.There is two solution :
proot
and specify a correct resolv.confI chose the second one :
proot -b $PREFIX/etc/resolv.conf:/etc/resolv.conf $HOME/ddns/ddns-updater
with$PREFIX=/data/data/com.termux/files/usr/
(and given by termux itself)More info on https://stackoverflow.com/questions/38959067/dns-lookup-issue-when-running-my-go-app-in-termux