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.
I want the API or the C++ code to implement DNS
New contributor
Sidhartha Mandampilly is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.