Create a small, simple DNS server in Python Use a UDP socket directly, no DNS libraries/packages You can hardcode name to IP address mappings in a Python dictionary or something like that
Register a domain name, and host the domain name's DNS from your server.