On 04/24/2018 12:30 AM, Vasiu Alexandru wrote:
I think that is possible just a service. Am I right?
Correct. Only the Service API exposes the nameservers. The reason for
this is, that the DNS servers are associated with the services. That is
the server is only reachable via the network which the Service
represents. If you have several connected Services at the same time you
might have more than one DNS server and it matters which DNS server you
need to ask.
If I have an
interface which is not a service (not connected with a cable), how to
get DNS servers from the system if connman override resolv.conf file?
If there is no uplink, there is no DNS server. As soon you have an
uplink you can use the D-Bus API to query for a nameserver. Not sure if
I got your point here.
Anayway, you can disable the dns proxy if you want. See '-r' command