Hello,
So, I've come across a similar issue that still exists with Vertx 3.9 / Netty 4.1.48. It seems that in some circumstances, the JNDI mechanism can give out details of stale DNS servers, i.e. servers belonging to networks the machine is no longer connected to. If these appear at the top of the list and are unreachable, DNS resolution fails. I think a good place to fix this would be in the Netty DNS bootstrap mechanism, right after it picks up the default set of servers from JNDI, by applying some sort of prioritise and filter method.
I have raised a ticket with Netty here:
In the mean time it is possible to work around the issue by getting the default set of servers from Netty, checking whether they are reachable and passing only the reachable ones to Vertx as an option when it starts up. I put some details on StackOverflow here:
I'm not sure whether it's worth doing anything about this at the Vertx level, possibly wait and see if Netty agree it should be fixed there first and if not then put something in Vertx. My feeling is that at least by the time it gets to client code it should be working without needing to do anything extra.
Hope this is helpful!
Martin.