Mule applications deployed in a CloudHub 2.0 Private Space intermittently fail to resolve an internal (on-premises) hostname — for example, an on-premises message broker reached over a VPN or Transit Gateway connection — even though the same hostname resolves successfully at other times. The application throws java.net.UnknownHostException for the target hostname. The failures are intermittent rather than constant, which often makes the issue look like a flaky VPN or network problem rather than a DNS configuration issue.
When a Private Space is configured with more than one internal (custom) DNS server, CloudHub 2.0 sends each DNS query to all configured internal DNS servers at the same time and accepts whichever response arrives first — it does not prioritize a specific server, and it does not retry with another server once any response is received, including a negative one. If one configured DNS server is unhealthy in a way that still produces a fast, valid-looking negative response (for example, returning NXDOMAIN / "domain does not exist" because it is missing the zone or records for that internal domain), that server can intermittently "win the race" against a healthy server purely due to response timing. The application receives the negative response and immediately raises UnknownHostException, even though another configured server would have resolved the name correctly a moment later. Because winning the race is timing-dependent, the failures appear intermittent rather than constant.
A separate DNS server that is simply timing out (for example, because a firewall is silently dropping UDP port 53 traffic) does not itself cause this race-losing behavior, but it reduces redundancy and should be fixed as well.
dig @<dns_server_ip> <hostname> or nslookup <hostname> <dns_server_ip> - rather than testing DNS resolution in aggregate.Gathering Required Setup Information — CloudHub 2.0 Private Space DNS configuration
005390313

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.