For some reasons if you want to get an IP directly from the interface, say eth0 for Linux or Local Area Connection for Windows, update config file like this:
"ip_url": "",
"ip_interface": "eth0",
If you set both ip_url and ip_interface, it first tries to get an IP address online, and if not succeed, gets an IP address from the interface as a fallback.
Note that IPv6 address will be ignored currently.
The above behavior is not correct now as GoDNS supports IPv6.
https://github.com/TimothyYe/godns#get-an-ip-address-from-the-interface
The above behavior is not correct now as GoDNS supports IPv6.
https://github.com/TimothyYe/godns#ipv6-support
The above is not correct now. Even if
ipv6_url
is not configured, as long asip_interface
is set, GoDNS can still obtain an IPv6 address.