Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
amitguptakiitian opened this issue Mar 20, 2024 · 2 comments
Open

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

amitguptakiitian opened this issue Mar 20, 2024 · 2 comments

Comments

@amitguptakiitian
Copy link

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
Copy link
Contributor

wtoorop commented Mar 20, 2024

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants