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

Add hostname resolution to ip #17

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jeremyjpj0916
Copy link

Allows the redis host to be an ip or a true resolvable hostname much like the field redis_host implies.

Uses the same libs and such that Kong uses and since this is a Kong plugin I think makes sense to just reuse their ways.

@jeremyjpj0916
Copy link
Author

jeremyjpj0916 commented Dec 13, 2022

Noting my colleague @chaitanya14 tested this out today in our non-prod env and confirmed DNS to IP was working as expected!

@jeremyjpj0916
Copy link
Author

@chaitanya14 I added a unit test but I am not sure if I setup hostname correctly so docker could do FDQN to IP resolution correctly. Does this look right or have you done this?

image

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.

1 participant