#!/usr/bin/python3

# Is your DynDNS-System abused?
# get your account here https://www.greynoise.io/
# then get your API-key

import requests
import socket

url = "https://api.greynoise.io/v3/community/"
url += socket.gethostbyname_ex("YOURDYNDNSNAME")[2][0]

headers = {
    'key': '{{YOURAPIKEY}}'
}

response = requests.request("GET", url, headers=headers)

print(response.text)