Some sample addons for mitmproxy.
A simplistic dns resolver that allows mapping and address to specifig address
Adjust hosts in variable host_mappings
in init method
Excute the addon passing argument -s CustomDNSResolver.py
to mitmproxy
Exemple: mitmtweb -mode dns -s -s CustomDNSResolver.py