0 purchases
uwsgidns 1.0.1
# uWSGI-local-DNS-resolveruWSGI-local-DNS-resolver (from now on __uWSGI-DNS__) is a DNS server that resolves to `localhost` each request directed to a uWSGI-subscribed domain.# Why?Our main intent is to let users transparently connect to their local development instances handled through a uWSGI HTTP subscription server.## Project statusuWSGI-DNS is still a work in progress. As a consequence, its APIs could be subject to changes.## Features- Python 2 & Python 3 compatibility.- UNIX/Linux systems compatibility.- Automatic domain refresh on new uWSGI subscriptions.- Failed nodes detection and handling.## InstallationUntil uWSGI-DNS lands on PyPi you can install it as follows:```bashgitclonehttps://github.com/20tab/uwsgi−local−dns−resolver.git cd uwsgi-local-dns-resolverYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode sudo uwsgidns # we need sudo to bind on reserved port 53```Once started, you should have a DNS server running on `localhost:53`.Note: installing uWSGI-DNS inside a virtualenv is obviously possible, but you should use particular care while integrating it into uWSGI configuration files.## Configuration```bashYou can't use 'macro parameter character #' in math modeYou can't use 'macro parameter character #' in math mode sudo launchctl load /Library/LaunchDaemons/it.unbit.uwsgi.emperor.plist```You can finally edit your connection parameters and set the [custom DNS server](https://support.apple.com/kb/PH14159) pointing to `127.0.0.1`.The DNS resolver will try to solve local requests and then will proxy to upstream the others.The default upstream is `8.8.8.8:53` and you can customize it with the `-u UPSTREAM_ADDRESS:PORT` flag._Bonus_: before editing your network settings, you can create a new [Network Location](https://support.apple.com/en-us/HT202480) to be specifically used while developing and edit its DNS settings.## TestsTODO: add tests.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.