matteospanio / spam-analyzer

A program to detect spam https://pypi.org/project/spam-analyzer/
http://docs.spamanalyzer.tech/
GNU General Public License v3.0
3 stars 0 forks source link

Domain class `__init__` method is slow #3

Closed matteospanio closed 1 year ago

matteospanio commented 1 year ago

At the moment to resolve domain server aliases I defined a contructor that calls twice a socket resolver method. It would be nice to find out a faster way to resolve those names

https://github.com/matteospanio/spam-detector/blob/0dbe4422891fe03ba656e74e4dff167de36e84ae/spamdetector/analyzer/data_structures.py#L17-L29

matteospanio commented 1 year ago

Fixed! Now we are using dnspython library, that resolves dns query in a better way