getAddr.py contains a function named getAddrFromIface() which uses ioctl to grab the IPv4 address from an interface on the local system where cfddns.py is running. This results in avoiding reliance on querying public IP addressing services (like ifconfig.me) to determine what address to assign to the configured DNS record.
This implementation should include resiliency to handle cases where a given system relying on dynamic assignment may have an outage with their ISP. For example: a broadband provider stops responding to DHCP_REQ and so user is left with an interface with no assigned address.
getAddr.pycontains a function namedgetAddrFromIface()which uses ioctl to grab the IPv4 address from an interface on the local system wherecfddns.pyis running. This results in avoiding reliance on querying public IP addressing services (like ifconfig.me) to determine what address to assign to the configured DNS record.This implementation should include resiliency to handle cases where a given system relying on dynamic assignment may have an outage with their ISP. For example: a broadband provider stops responding to DHCP_REQ and so user is left with an interface with no assigned address.