getdnsapi / stubby

Stubby is the name given to a mode of using getdns which enables it to act as a local DNS Privacy stub resolver (using DNS-over-TLS).
https://dnsprivacy.org/dns_privacy_daemon_-_stubby/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

required to know the IP Address in use by Stubby #356

Open amitguptakiitian opened 8 months ago

amitguptakiitian commented 8 months ago

Generally, we configure multiple DNS resolver servers in Stubby and if round robin is unset then stubby tries to use the same address until it encounter any issues. In such scenario where the stubby does not switch to different resolver, do we have any API exposed by Stubby or getDNS to know which IP address are in use?

Thanks Amit.

wtoorop commented 8 months ago

That's not yet available no. I suppose we could make a meta query that would expose that information in stubby, paired with get that information from getdns_context_get_api_information().

saradickinson commented 7 months ago

Also - depending on your environment/setup you may be able to enable full logging by passing the -l or -v flag to Stubby which will show you the connections Stubby is making:

    -l  Enable logging of all logs (same as -v 7)
    -v  Specify logging level (overrides -l option). Values are
            0: EMERG  - System is unusable
            1: ALERT  - Action must be taken immediately
            2: CRIT   - Critical conditions
            3: ERROR  - Error conditions
            4: WARN   - Warning conditions
            5: NOTICE - Normal, but significant, condition
            6: INFO   - Informational message
            7: DEBUG  - Debug-level message