lgc-4 / one.com-ddns-python-script

A (relatively) simple python script to update one.com type A DNS records
GNU General Public License v3.0
20 stars 6 forks source link

Support for multiple interfaces #9

Open StarWing01 opened 10 months ago

StarWing01 commented 10 months ago

I have a virtual ubuntu which has 2 ethernet interfaces. 1 connected to my lan and 1 connected to the wan (bridge), with a wan ip. For some reason the script always chooses the lan interface to check the external IP, which is wrong. I tried to change the metrics on the adapters, but this has nu influence on the behavior of the script.

Is there a way to force an update on a specific interface ?

nilscript commented 5 months ago

I have a fork of my own which you can use to fix this problem of yours. It lets you set your own ip resolver in config. See if this helps: https://github.com/nilscript/one-solution