def __init__(self, host):
    h = host.replace('http://', '')
    h = host.replace('https://', '')
    self.host = host
    self.h = h
    x = requests.get(url=('https://api.hackertarget.com/dnslookup/?q=' + self.h))
    dns = x.text.split('\n')[0].split(':')[1].strip()
    self.dns = dns
def __init__(self, host):
    h = host.replace('http://', )
    h = host.replace('https://', )
    self.host = host
    self.h = h
    x = requests.get(url=('https://api.hackertarget.com/dnslookup/?q=' + self.h))
    dns = x.text.split('\n')[0].split(':')[1].strip()
    self.dns = dns