| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple top level domain (NSSwitch hosts) resolver for linux based development environment.
This tool is developed in a Ubuntu 12.04 system & tested in later versions of Ubuntu & Ubuntu derivatives. Even though not tested, it should also work in other Linux distributions that supports/uses nsswitch.conf file based configuration. In general, if your Linux installation has a file named nsswitch.conf in /etc/ folder, then you should be ready to go with using this tool.
sudo apt-get install build-essentials gitgit clone https://github.com/mnishihan/dev-tld-resolver.gitcd dev-tld-resolver/src && make sudo make install
It's very important that you run the make install command as root or using sudo, otherwise installation will fail.
DEV_TLD_DOMAINS=dev,wp,dpl
Above step is optional if you don't need dev-tld-resolver to resolve top level domains other than .dev, which is the default
If you have following line starting with hosts: in /etc/nsswitch.conf file
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4then you should change it to look like
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 dev_tldIf you experience some sort of delay while resolving a host name, you should try to move dev_tld before dns, as follows
hosts: files mdns4_minimal [NOTFOUND=return] dev_tld dns mdns4
ping test.dev
If ping is successful, then dev-tld-resolver is installed & configured correctly.
Code is borrowed & modified from prax by ysbaddaden at https://github.com/ysbaddaden/prax
| Back | FazBrowse Home | New Git URL |