I am controlling traffic in and out to subnet using network ACL. I have java services running in EC2 redhat instance and other some services which are running outside. I am using route53 DNS to communicate between java services and other services which are running outside.
I am getting the error hostname is not able to resolve in java service if I allow traffic to the protocol DNS(UDP) 53. Inbound DNS(UDP) 53 Outbound DNS(UDP) 53 It's working fine if I allow all traffic to UDP in ACL. Inbound All UDP Outbound All UDP
What will be the correct protocol and port which has to be configured in both inbound and outbound in network ACL to resolve the above error?