https://cerbos.dev logo
Title
a

ANILA SOMAN

11/17/2022, 5:42 AM
Hi All, while using AdminApi i am getting below error
could not list policies: rpc error: code = Unavailable desc = name resolver error: dns: A record lookup error: lookup cerbos: Temporary failure in name resolution
a

Alex Olivier (Cerbos)

11/17/2022, 7:50 AM
Morning that seems like a network issue. Can you hit the PDP directly?
a

ANILA SOMAN

11/17/2022, 8:08 AM
@Alex Olivier (Cerbos) direct hit is working
a

Alex Olivier (Cerbos)

11/17/2022, 8:09 AM
Using the host name?
That error is stating that it can’t resolve the host name of the cerbos instance. How are you running the PDP and how are you calling the admin api?
a

ANILA SOMAN

11/17/2022, 9:37 AM
a

Alex Olivier (Cerbos)

11/17/2022, 9:41 AM
By default it is expecting to find a cerbos instance running with a hostname of
cerbos
unless overridden by the
CERBOS_HOST
env var. How are you running the Cerbos instance?
s

Sam Lock (Cerbos)

11/17/2022, 4:54 PM
Hello! Let me know if there are any issues with the above - if I can make the demo clearer then I shall endeavour to do so 👍