Skip to content

Have ddns-updater running on Android (yes this is borderline) #575

Answered by edaubert
edaubert1kmapied asked this question in Q&A
Discussion options

You must be logged in to vote

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 :

  • compiling the app on termux to be correctly linked to the resolv.conf
  • use proot and specify a correct resolv.conf

I 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@qdm12
Comment options

Answer selected by edaubert1kmapied
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants