Openshift CRc failed to resolve DNS for kafka pod on port 31092

Hi,

i am trying to connect to a kafka pod to publish a message.
but it throws me an error could not resolve Dns for apps.crc.testing:31092 which i have provided the broker URL with port in the kafka configuration for bootstrap.servers=apps.crc.testing:31092

i tried updating my /etc/hosts with URL that i get from crc ip which is 127.0.0.1 and also IP address of my RHEL VM.
also NetworkManager in RHEL8.6 which updates etc/resolve.conf
but nothing is working.
Any help is appreciated.

Regards
Ram