aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Common/DNSPTRResolver.h
blob: 38f890ae29a57449da30cb362694e506042901b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <string>
#include <unordered_set>

namespace DB
{
    struct DNSPTRResolver
    {

        virtual ~DNSPTRResolver() = default;

        virtual std::unordered_set<std::string> resolve(const std::string & ip) = 0;

        virtual std::unordered_set<std::string> resolve_v6(const std::string & ip) = 0;

    };
}