What API should I use to set DNS in Linux system
I am working on a onvif project.
In it I am using C++ and i have a function SetDNS()
to implement it what i did was replace the last line of /etc/resolv.conf with the new DNS.
but it was said in the file not to edit it.
what is the correct methode to set DNS.