Open betetrpm opened 7 years ago
Hi, and thanks for the pull request!
I'm still giving a lot of thought into this. I'm not sure if this is something that should go into code, so I'm asking all reading this to please give your opinion :)
Thoughts: I can see that this is useful in your case, but passivedns was never meant to be an "IDS" for DNS traffic. Wild guess, but 99.9999999999% of the traffic pdns inspects (with valid tuples) the TTL value will probably be the same. But implementing the pull request will add overhead to the structs of (packet_info,) pdns_asset and pdns_record, and also a tad of computation. In my case, this is not significant, but maybe people are running this on smaller devices or high traffic devices where this might be big changes.
Most of the people I've spoken to run passivedns between clients and DNS proxies. Spoofing can still happen on the local network, but then you have far worse problems I would guess.
I appreciate any feedback here from community here :)
Add -i option to log the IP TTL of Authority DNS, this feature can help to find the “DNS cache poisoning”。 usage:
there are three fake responses in this log, only IP TTLs are different from real.