libcli/dns: Add resolv.conf parsing
authorVolker Lendecke <vl@samba.org>
Mon, 1 Jan 2018 18:35:46 +0000 (19:35 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 15 Jan 2019 06:53:21 +0000 (07:53 +0100)
commite9e4aeafc0cf7030dbd885710d6e8a179110f9ce
tree93b93519135a7b0efd2af4700be3a65be67e220a
parentff2dbe24b80b24bdb4897d0152e76ed3931048f2
libcli/dns: Add resolv.conf parsing

Right now this only looks at the nameserver setting. It is initally made for
asynchronous AD DC lookup routines, where we don't need the "search", "domain"
and other settings. When we convert general "net", "smbclient" and others to
use this, we might either add "domain" handling to this code or look at
something like c-ares which already does it.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/dns/resolvconf.c [new file with mode: 0644]
libcli/dns/resolvconf.h [new file with mode: 0644]
libcli/dns/resolvconftest.c [new file with mode: 0644]
libcli/dns/wscript_build
source3/script/tests/test_resolvconf.sh [new file with mode: 0755]
source3/selftest/tests.py