Hi All,
Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library routines? Any useful links or sample programs regarding this? Thanks in advance.
Renjith
RenjithVR
0
Light Poster
Recommended Answers
Jump to PostThe conf file is just a textfile, so you can use standard c++ file-acces:
#include <fstream> [....] std::ifstream in_file("/etc/resolv.conf"); if (!in_file.is_open()) std::cout << "error opening file"; else // do stuff
Jump to PostHi,
Hi All,
Can anyone tell me about a library that helps me to read contents from /etc/resolv.conf file and also update the same file with new entries. Does this possible with Resolver library routines? Any useful links or sample programs regarding this? Thanks in advance.
Renjithresolv.conf stores the …
All 5 Replies
Nick Evan
4,005
Industrious Poster
Team Colleague
Featured Poster
RenjithVR
0
Light Poster
stephen84s
550
Nearly a Posting Virtuoso
Featured Poster
RenjithVR
0
Light Poster
stephen84s
550
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.