devdns
devdns
is a local development DNS server for use on macOS that responds to
DNS requests with the loopback address (127.0.0.1
) for all domain and
sub-domain requests on one or more domains (specified as arguments).
NOTE: This is a fork of CrapDNS
modified, cleaned up and modified for better security and features.
See: Original README
Table of Contents
Created by gh-md-toc
Getting Started
Install from Releases
You can install devdns
by simply downloading the latest version from the
Release and placing the binary
in your $PATH
.
For convenience you can run the following shell pipelines which will download
and install the latest release binary into /usr/local/bin
(modify to suit):
For MacOS x86_64:
curl -s https://api.github.com/repos/prologic/devdns/releases/latest | grep browser_download_url | grep Darwin_x86_64 | cut -d '"' -f 4 | wget -q -O - -i - | tar -xv devdns && mv devdns /usr/local/bin/devdns
Install from Homebrew
On macOS you can install devdns
using Homebrew:
brew tap prologic/devdns
brew install devdns
Install from Source
To install devdns
from source you can run go get
directly if you have a
Go environment setup:
go get git.mills.io/prologic/devdns
NOTE: Be sure to have $GOBIN
(if not empty) or your $GOPATH/bin
in your $PATH
.
See Compile and install packages and dependencies
Or grab the source code and build:
git clone https://git.mills.io/prologic/devdns.git
cd devdns
make build
And optionally run make install
to place the binary devdns
in your $GOBIN
or $GOPATH/bin
(again see note above).
Usage
Using devdns
is quite simple. The basic usage is as follows:
sudo devdns <domain>
For example to run a DNS server that responds to all *.test
requests:
sudo devdns test
License
devdns
is licensed under the terms of the MIT License