{"id":14354,"date":"2025-04-08T21:03:10","date_gmt":"2025-04-09T04:03:10","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=14354"},"modified":"2025-04-08T21:03:10","modified_gmt":"2025-04-09T04:03:10","slug":"whois-no-more","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=14354","title":{"rendered":"Whois No More"},"content":{"rendered":"\n<p>Stuff moves on, I didn&#8217;t know the whois protocol was getting deprecated.<\/p>\n\n\n\n<p>Ran a whois and got this<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2025\/04\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"684\" height=\"48\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2025\/04\/image.png\" alt=\"\" class=\"wp-image-14355\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2025\/04\/image.png 684w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2025\/04\/image-300x21.png 300w\" sizes=\"auto, (max-width: 684px) 100vw, 684px\" \/><\/a><\/figure>\n\n\n\n<p>Replaced with something called rdap.  Frustrating searching for rdap utility, kept auto correcting to rdp.<\/p>\n\n\n\n<p>Anyway I asked chatgpt and it give my some python code to use<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#!\/usr\/bin\/python3<br>import argparse<br>import requests<br>import sys<br><br>def rdap_lookup(domain):<br>    try:<br>        # Query the IANA Bootstrap service to find the RDAP URL for the domain<br>        tld = domain.split('.')[-1]<br>        bootstrap_url = f\"https:\/\/data.iana.org\/rdap\/dns.json\"<br>        bootstrap_data = requests.get(bootstrap_url).json()<br><br>        rdap_urls = bootstrap_data['services']<br>        rdap_base_url = None<br><br>        for service in rdap_urls:<br>            if tld in service[0]:<br>                rdap_base_url = service[1][0]<br>                break<br><br>        if not rdap_base_url:<br>            raise Exception(f\"No RDAP server found for TLD: {tld}\")<br><br>        # Query the RDAP server for the domain<br>        rdap_response = requests.get(f\"{rdap_base_url}domain\/{domain}\")<br>        rdap_response.raise_for_status()<br><br>        data = rdap_response.json()<br>        print(f\"\\nRDAP Information for {domain}:\\n\")<br>        print(f\"Handle: {data.get('handle')}\")<br>        print(f\"Status: {', '.join(data.get('status', []))}\")<br>        print(f\"Nameservers: {[ns['ldhName'] for ns in data.get('nameservers', [])]}\")<br>        print(f\"Entities: {[entity.get('handle') for entity in data.get('entities', [])]}\")<br>        print(f\"Events:\")<br>        for event in data.get('events', []):<br>            print(f\"  - {event['eventAction']}: {event['eventDate']}\")<br>    except Exception as e:<br>        print(f\"Error: {e}\")<br><br># Example usage<br>if __name__ == \"__main__\":<br>    parser = argparse.ArgumentParser(description=\"Perform RDAP domain lookup.\")<br>    parser.add_argument(\"domain\", help=\"Domain name to look up (e.g. example.com)\")<br>    args = parser.parse_args()<br><br>    rdap_lookup(args.domain)<br><\/pre>\n\n\n\n<p>Works well.<\/p>\n\n\n\n<p>Got some new toys today trying to get ahead of the tariffs, to round out my emergency kit I got<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/amzn.to\/3E1c2q9\" data-type=\"link\" data-id=\"https:\/\/amzn.to\/3E1c2q9\">USB Powered Walkie talkies<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/amzn.to\/3RI0w5Y\" data-type=\"link\" data-id=\"https:\/\/amzn.to\/3RI0w5Y\">AAA Battery powered ones as well<\/a><\/li>\n<\/ul>\n\n\n\n<p>Another buy before tariff purchase was some <a href=\"https:\/\/amzn.to\/42C7sI3\" data-type=\"link\" data-id=\"https:\/\/amzn.to\/42C7sI3\">higher end USB PCIe cards<\/a><\/p>\n\n\n\n<p>As for weight loss, I need to start somewhere.  Did go to gym today for 30 minutes of Cardio<\/p>\n\n\n\n<p>Weight: 342.4<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Stuff moves on, I didn&#8217;t know the whois protocol was getting deprecated. Ran a whois and got this Replaced with something called rdap. Frustrating searching for rdap utility, kept auto correcting to rdp. Anyway I asked chatgpt and it give &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=14354\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27,14,11,3,9],"tags":[],"class_list":["post-14354","post","type-post","status-publish","format-standard","hentry","category-coding","category-new-toys","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14354","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14354"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14354\/revisions"}],"predecessor-version":[{"id":14356,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/14354\/revisions\/14356"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}