Commit graph

5 commits

Author SHA1 Message Date
Tim Wojtulewicz
c4cac72fd7 Use shared_ptrs for DNS_Mapping objects 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
e8f833b8a6 Store all mappings in a single map instead of split by type
This opens up the possibility of storing other request types outside
of T_A, T_PTR and T_TXT without requiring redoing the caching. It
also fixes the caching code in DNS_Mapping, adding a version number
to the start of the cache file so the cache structure can be modified
and old caches invalidated more easily.
2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
3bdc744b14 Add merging to DNS_Mgr::AddResult() to support both ipv4 and ipv6 responses simultaneously 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
9f197aa458 Rework DNS_Mgr API to be more consistent and to support more request types 2022-04-22 13:10:37 -07:00
Tim Wojtulewicz
e6e9144da6 Add unit testing for DNS_Mgr and related classes 2022-04-22 13:10:37 -07:00