A DNS server for mapping a dev TLD to localhost.
Project description
It does one thing: maps a custom TLD (like .dev) to an IP (like 127.0.0.1).
## Use
sudo devdns sudo devdns test sudo devdns dev 192.168.1.110
By default devdns maps the dev TLD to 127.0.0.1. This is probably all most people will need. The first argument, if specified will set a custom TLD like test (www.myserver.test). The second argument allows you to specify an IP address, for example the address of a server on your LAN.
You need to run it as root because it uses port 53, the standard DNS port. Also you’ll want to add localhost (127.0.0.1) to the top of your DNS server list. I recommend adding google’s DNS addresses (8.8.8.8 and 8.8.4.4) as backup servers.
![](http://raw.github.com/colevscode/devdns/master/dnsconfig.png)
## Credits
Much of this code was adopted from [minidns](https://code.google.com/p/minidns/) which itself borrowed heavily from [Francisco’s recipe](http://code.activestate.com/recipes/491264-mini-fake-dns-server/).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file devdns-0.1.2.tar.gz
.
File metadata
- Download URL: devdns-0.1.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80ee76e8a262777c39e379330ef3032c33cbc3fef90c769d700eaa392d5ef434 |
|
MD5 | 3986ff0de7204ed5ad2e4877a9a60b82 |
|
BLAKE2b-256 | 05d56f3fb3102e493252919299299298e4deb048ae1b38235adc64b888461d6b |