Skip to content

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