I have an IoT device that is connected to a node via a local wireless network. After doing the computations, the device tries to posts the data to the cloud. The device is connected to the internet via a 4g cellular network.
Everything works as expected if the internet connection is present. But in the case of a device being offline, system-resolved starts using the IP address of the local node as DNS and keeps on retrying to post the data rather than raising an exception. It remains stuck on the post-call for around two to three minutes before raising an exception. The device is running raspbian OS.
How to deny system-resolvd from taking the locally cached nameserver as DNS?