Run the DNS server: sudo python3 dns-cache.py In a separate terminal, query information using dig dig google.com A @127.0.0.1 This command queries the DNS server running on 127.0.0.1 for the A record of google.com.