def rdap_lookup(domain): try: # Query the IANA Bootstrap service to find the RDAP URL for the domain tld = domain.split('.')[-1] bootstrap_url = f"https://data.iana.org/rdap/dns.json" bootstrap_data = requests.get(bootstrap_url).json()
for service in rdap_urls: if tld in service[0]: rdap_base_url = service[1][0] break
if not rdap_base_url: raise Exception(f"No RDAP server found for TLD: {tld}")
# Query the RDAP server for the domain rdap_response = requests.get(f"{rdap_base_url}domain/{domain}") rdap_response.raise_for_status()
data = rdap_response.json() print(f"\nRDAP Information for {domain}:\n") print(f"Handle: {data.get('handle')}") print(f"Status: {', '.join(data.get('status', []))}") print(f"Nameservers: {[ns['ldhName'] for ns in data.get('nameservers', [])]}") print(f"Entities: {[entity.get('handle') for entity in data.get('entities', [])]}") print(f"Events:") for event in data.get('events', []): print(f" - {event['eventAction']}: {event['eventDate']}") except Exception as e: print(f"Error: {e}")
# Example usage if __name__ == "__main__": parser = argparse.ArgumentParser(description="Perform RDAP domain lookup.") parser.add_argument("domain", help="Domain name to look up (e.g. example.com)") args = parser.parse_args()
rdap_lookup(args.domain)
Works well.
Got some new toys today trying to get ahead of the tariffs, to round out my emergency kit I got
I am planning a Home Assistant install in the Molokai house at the end of the month, kind of interesting in the logistics. Getting a UPS there, planning the install, internet connectivity. I think it should be a blog all its own.
Slowly planning, need to get my vacation and flight in though.
Came across an idea where I can put something like money in to a 3D printed device where you would have to break in order to read it. Found these things which would go in a keychain.
There is a small hole on the opposite side where you would place money, and you would attach this to a keychain.
If you are ever in need of cash you would break open this for the cash.
Going to make one for the key chains for the cars.
Also been working on pihole a bit, looks like version 6 doesnt use an external web server anymore. Just wondering if I should force apache or just go with the built in web server.
Another thing is trying to get Windows 11 in a VM that was cloned. After playing with it a bit I think the issue is sysprep. Not going to pursue it much, most my VMs are Linux and I can treat windows ones as 1 offs.
Forgot to wear my fitbit during the day, gonna try and get at least 1000 steps.