AccessFilter by Domain

I know how to use an AccessFilter by IP, but what’s the recommended way if I only know the Domain Name from the service accessing an eg. API controller.
For example in an ingress network where there’s an endpoint api.ingress.network/api/list which is accessed from otherservice.ingress.network.

How can I specify allowedIPs = otherservice.ingress.network

Use gethostbyname() to obtain IP of otherservice.ingress.network and use result for allowedIPs?

1 Like