I want to read the primary and secondary dns addresses from the system and want to change it to any user given address.
Is this possible through some library.
An alternative approach is that I read the /etc/resolv.conf and do the changes, which is what I've done.
BTW the current solution I have is for Ubuntu OS, and for now if I get if for the same OS also it would be fine.