Skip to content

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

Open
bambyster wants to merge 1 commit into
OpenSIPS:masterfrom
bambyster:master
Open

Make opensips behave consistently in respect of nsswitch regardless of DNS caching.#2434
bambyster wants to merge 1 commit into
OpenSIPS:masterfrom
bambyster:master

Conversation

@bambyster

Copy link
Copy Markdown

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

stale Bot commented Jul 21, 2021

Copy link
Copy Markdown

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

stale Bot commented Jan 9, 2022

Copy link
Copy Markdown

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

stale Bot commented Apr 16, 2022

Copy link
Copy Markdown

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

sobomax commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

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