#include "host/pinger.h" // for IoserviceItem
#include "host/pingprotocol.h"
+#include "dns/dnsipprotocol.h"
#include "dns/dnscache.h"
#include "dns/resolverbase.h"
typedef boost::shared_ptr<DnsMaster> DnsMasterItem;
-typedef boost::net::dns::type_t DnsIpProtocol;
-const DnsIpProtocol DNS_IPv4 = boost::net::dns::type_a;
-const DnsIpProtocol DNS_IPv6 = boost::net::dns::type_a6;
-const DnsIpProtocol DNS_IPALL = boost::net::dns::type_all;
-
typedef std::pair<std::string, DnsIpProtocol> resolver_key_type;
typedef std::map<resolver_key_type, ResolverItem> resolver_map_type;
-std::string to_string(const DnsIpProtocol &protocol);
-
/**
* Factory and Cache of DNS resolvers
*
// internal helper functions
private:
bool is_ip(const std::string &hostname) const;
- static DnsIpProtocol ping2dns_protocol(const PingProtocol& pprot);
};
#endif