dns resolving failure

875 views
Skip to first unread message

Asher Tarnopolski

unread,
May 25, 2018, 8:18:46 AM5/25/18
to vert.x
hi folks, 

i've discovered lately that we are randomly getting "Search domain query failed. Exceeded max queries per resolve 4
coming all the way from netty for one of the URLs we are calling from http client. 
the interesting thing is that these failures are not consistent, and we catch this behavior like every 20th or 30th call.
i found this: https://github.com/eclipse/vert.x/issues/1479 but it's marked as solved for a while (we are on 3.5.1).

i understand that -Dvertx.disableDnsResolver=true should solve this, but is there a chance there is still a bug worth opening an issue?

cheers
 

Thomas SEGISMONT

unread,
May 28, 2018, 10:45:35 AM5/28/18
to ve...@googlegroups.com
There might be another issue... Is there any chance you could capture the dns request from Netty's resolver and then the same with stock resolver?

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/48a68e29-a8b0-44c1-b729-0a0d8ed9d3f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Julien Viet

unread,
May 28, 2018, 10:56:03 AM5/28/18
to ve...@googlegroups.com
have you configured search domains on your client ?

have you tried 3.5.2.CR1 or CR2 which updates the Netty version and has fixes in the DNS resolver ?

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.

Asher Tarnopolski

unread,
May 28, 2018, 11:01:36 AM5/28/18
to vert.x
Thomas, I'll check if we can do it. Can you elaborate about the differences between netty's and stock resolvers? 

Julien, haven't tried 3.5.2 yet.

Thomas SEGISMONT

unread,
May 28, 2018, 12:35:28 PM5/28/18
to ve...@googlegroups.com
I mean the difference between the resolver based on Netty's code and the resolver from the JVM (which you activate with vertx.disableDnsResolver)

2018-05-28 17:01 GMT+02:00 Asher Tarnopolski <ata...@gmail.com>:
Thomas, I'll check if we can do it. Can you elaborate about the differences between netty's and stock resolvers? 

Julien, haven't tried 3.5.2 yet.

--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.

Asher Tarnopolski

unread,
May 28, 2018, 12:36:50 PM5/28/18
to vert.x
yeh, i got that. i was wondering why they would work differently.

Thomas SEGISMONT

unread,
May 28, 2018, 12:48:56 PM5/28/18
to ve...@googlegroups.com
Ha, sorry no. I'm not knowledgeable with any of the resolver's internals. Julien should know better.

2018-05-28 18:36 GMT+02:00 Asher Tarnopolski <ata...@gmail.com>:
yeh, i got that. i was wondering why they would work differently.
--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/vertx.

Julien Viet

unread,
May 28, 2018, 12:59:57 PM5/28/18
to ve...@googlegroups.com
they work differently but now the Netty's resolver is getting similar behavior than the JVM one (https://github.com/netty/netty/pull/6937)

Julien


> On 28 May 2018, at 18:36, Asher Tarnopolski <ata...@gmail.com> wrote:
>
> yeh, i got that. i was wondering why they would work differently.
>
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/a58e45cd-39ed-462f-8347-b7a505874b1c%40googlegroups.com.

Martin Traverse

unread,
May 9, 2020, 8:17:58 AM5/9/20
to vert.x
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.


On Monday, 28 May 2018 17:59:57 UTC+1, Julien Viet wrote:
they work differently but now the Netty's resolver is getting similar behavior than the JVM one (https://github.com/netty/netty/pull/6937)

Julien


> On 28 May 2018, at 18:36, Asher Tarnopolski <ata...@gmail.com> wrote:
>
> yeh, i got that. i was wondering why they would work differently.
>
> --
> You received this message because you are subscribed to the Google Groups "vert.x" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ve...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages