Re: [Twisted-Python] How to get the client ip when it ask a resolution with twisted.names

2021-05-01 Thread cont...@benoit-laviale.fr
Hi Adi, all, First, thx for your reply. I think your solution may not be the good one, but for sure, you put me on the good track, so thx a lot. What I currently did : I did an inheritance of DNSServerFactory to be able to add the "address" propertie on my query object. It looks like that : cl

Re: [Twisted-Python] How to get the client ip when it ask a resolution with twisted.names

2021-05-01 Thread Adi Roiban
Hi On Sat, 1 May 2021 at 07:43, cont...@benoit-laviale.fr < cont...@benoit-laviale.fr> wrote: > Dear all, > > I am working on twisted names since some days to make kind of filtering > system (with domains blacklists). > So I made my own resolver that can reply defer.fail(error.DomainError()) > to

[Twisted-Python] How to get the client ip when it ask a resolution with twisted.names

2021-04-30 Thread cont...@benoit-laviale.fr
Dear all, I am working on twisted names since some days to make kind of filtering system (with domains blacklists). So I made my own resolver that can reply defer.fail(error.DomainError()) to send the query to the next resolver (and in this case, it will be resolve) or defer.fail(dns.Authorita