femtoDNS is very small DNS server written in Python.
femtoDNS have no benefit because purpose in learn DNS protocol. This implemented by RFC 1035
- Python 3.7>
Run DNS server localhost:9999
$ python start.py
Any request query to femtoDNS using dig
$ dig +short @127.0.0.1 -p 9999 localhost 127.0.0.1
To resolve any hostname, you need hosts file add IP address / hostname pair. hosts file is exists in current directory.
127.0.0.1 localhost 127.0.0.1 test