File: resolver.pyi

package info (click to toggle)
dnspython 1.16.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,520 kB
  • sloc: python: 12,540; makefile: 62
file content (31 lines) | stat: -rw-r--r-- 1,082 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from typing import Union, Optional, List
from . import exception, rdataclass, name, rdatatype

import socket
_gethostbyname = socket.gethostbyname
class NXDOMAIN(exception.DNSException):
    ...
def query(qname : str, rdtype : Union[int,str] = 0, rdclass : Union[int,str] = 0,
          tcp=False, source=None, raise_on_no_answer=True,
          source_port=0):
    ...
class LRUCache:
    def __init__(self, max_size=1000):
        ...
    def get(self, key):
        ...
    def put(self, key, val):
        ...
class Answer:
    def __init__(self, qname, rdtype, rdclass, response,
                 raise_on_no_answer=True):
        ...
def zone_for_name(name, rdclass : int = rdataclass.IN, tcp=False, resolver : Optional[Resolver] = None):
    ...

class Resolver:
    def __init__(self, configure):
        self.nameservers : List[str]
    def query(self, qname : str, rdtype : Union[int,str] = rdatatype.A, rdclass : Union[int,str] = rdataclass.IN,
              tcp : bool = False, source : Optional[str] = None, raise_on_no_answer=True, source_port : int = 0):
        ...