ecdavis / pants

A lightweight framework for writing asynchronous network applications in Python.
http://pantspowered.org/
Apache License 2.0
167 stars 9 forks source link

hosts Files #14

Closed stendec closed 13 years ago

stendec commented 13 years ago

pants.dns should be able to read the OS's hosts file and obey it for A or AAAA record queries where appropriate, rather than its current behavior of simply ignoring the file and sending every query to a DNS server.

stendec commented 13 years ago

Added support for %SystemRoot%\system32\drivers\etc\hosts and /etc/hosts to pants.dns, depending on the OS. Uses both IPv4 and IPv6 addresses.