Mini serveur DNS

Sometimes you just want to set up a minimal DNS server for testing, and you don’t want to spend all day resolving dependencies or creating configuration files.

MiniDNS is a very simple DNS server written in Python that resolves all DNS queries to a single IPv4 address. No configuration files, no additional dependencies, one command and you’re up and running.

Il s’agit d’un script python d’une centaine de ligne.

Dans l’exemple suivant toute requête DNS de type A renvoit l’IP du site web de google.

$ sudo ./minidns 74.125.39.103  
miniDNS :: * 60 IN A 74.125.39.103  

Request: toto.com. -> 74.125.39.103