I am using connmanctl to set the IP of the module. If I set the DHCP to auto, connmanctl updates the nameserver field with the local DNS server we have. However if I set the DHCP to manual, I have to set the nameserver manually.
Is there any way that I could grab the DNS ip in Linux when DHCP is set to auto ?
In my application, I want the user to be able to set the module IP, Network Mask, Gateway IP, and DNS address. I am able to get current IP Address, Network Mask, Gateway Ip but the DNS address.
How can I get current DNS address and then display it to the user ?
Please let me know if you need any more information.