lmammino / godaddy-dns

A Node.js script to programmatically update GoDaddy DNS records
https://lmammino.github.io/godaddy-dns/
MIT License
78 stars 21 forks source link

External IP address as optional argument #26

Open Thomatn opened 6 years ago

Thomatn commented 6 years ago

I'd like to have this option since I'm using multiple network interfaces on the same device (resulting in multiple external ip addresses). I'd be nice to add the external IP address as an optional argument if you'd like to set it manually.

Thanks in advance!

lmammino commented 6 years ago

Sounds like a good idea.

At a first thought, I would implement this by adding a command line option called --force-ip (followed by the actual ip), and when this option is set, then the ip is not fetched remotely but it's taken from the input.

I won't have much time in the short term to implement this, so feel more the welcome to propose a PR with the needed changes if you are in a rush for this feature.

pjdsully commented 6 years ago

This is one I'd like to see done, too, for a completely different use case. I'll take it on, if nobody has picked it up yet.