kong-scalable-rate-limiter icon indicating copy to clipboard operation
kong-scalable-rate-limiter copied to clipboard

Add hostname resolution to ip

Open jeremyjpj0916 opened this issue 2 years ago • 2 comments
trafficstars

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 avatar Dec 13 '22 10:12 jeremyjpj0916

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

jeremyjpj0916 avatar Dec 13 '22 22:12 jeremyjpj0916

@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

jeremyjpj0916 avatar Jan 05 '23 06:01 jeremyjpj0916