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

Make opensips behave consistently in respect of nsswitch regardless of DNS caching. #2434

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bambyster
Copy link

The current integration with dns_cache module has an issue. When dns_cache module is disabled the OpenSIPS uses gethostbyname(), gethostbyname2(), gethostbyaddr() functions from libc which respect the nsswitch.conf settings and for example automatically perform a lookup in /etc/hosts. However when dns_cache is enabled the OpenSIPS starts to use res_search() instead, which only performs DNS lookups and as a result it becomes impossible to query other name resolution services configured in the nsswitch.conf.

I propose to use gethostby*() functions consistently regardless of caching settings.

@stale
Copy link

stale bot commented Jul 21, 2021

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@stale stale bot added the stale label Jul 21, 2021
@stale
Copy link

stale bot commented Jan 9, 2022

Marking as closed due to lack of progress for more than 30 days. If this issue is still relevant, please re-open it with additional details.

@stale stale bot closed this Jan 9, 2022
@bogdan-iancu bogdan-iancu reopened this Jan 10, 2022
@stale stale bot removed the stale label Jan 10, 2022
@stale
Copy link

stale bot commented Apr 16, 2022

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@stale stale bot added the stale label Apr 16, 2022
@sobomax
Copy link
Contributor

sobomax commented Nov 17, 2023

The problem with this patch is that we don't have any TTL information when using gethostbyXXX() functions. :( As such it breaks invalidation of the cache.

@stale stale bot removed the stale label Nov 17, 2023
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

Successfully merging this pull request may close these issues.

3 participants