[Twisted-Python] Current twisted dns client just doesn't work

Tom Most twm at freecog.net
Sat Dec 5 15:24:07 MST 2020


Yes, that would be an improvement on the current behavior, though the ideal behavior is to query both A and AAAA simultaneously, returning the union of their results.

---Tom

On Sat, Dec 5, 2020, at 2:06 PM, spam tam wrote:
> Ok. Instead ANY I can query A and if A doesn't provide IP then query AAAA
> 
> On Sat, Dec 5, 2020 at 5:07 AM Tom Most <twm at freecog.net> wrote:
> >
> > Why do an ANY query at all? As Glyph noted[1] the correct solution is to query A and AAAA concurrently. If you want a temporary hack wouldn't the most straightforward thing be to query just A instead of ANY + A?
> >
> > ---Tom
> >
> > [1]: https://twistedmatrix.com/trac/ticket/9691#comment:5
> >
> > On Fri, Dec 4, 2020, at 5:37 PM, spam tam wrote:
> > > Twisted provide ability to run dns client in the same thread as main
> > > twisted application. But it just doesn't work.
> > >
> > > I created pull request which fix the problem:
> > > https://github.com/twisted/twisted/pull/1488
> > >
> > > I would like to know if twisted community knows about it. This client
> > > doesn't work for years. I think that we should fix the problem.
> > >
> > > Twisted dns client should work. What do you think? I think we should
> > > discuss the problem. DNS client protocol provide ANY, A, AAAA
> > > requests. Current dns ANY request is not enough. My code add A dns
> > > request after current ANY request.
> > >
> > > Is this enough fix or anybody think it's not enough or may be we
> > > should find another solution. I think twisted framework should work
> > >
> > > _______________________________________________
> > > Twisted-Python mailing list
> > > Twisted-Python at twistedmatrix.com
> > > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> > >
> >
> > _______________________________________________
> > Twisted-Python mailing list
> > Twisted-Python at twistedmatrix.com
> > https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
> 
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>



More information about the Twisted-Python mailing list