Skip to content

Commit 4bb1f54

Browse files
authored
Merge pull request #850 from ybart/patch-2
Add instructions for DNSmasq
2 parents c4d6d4c + 404b734 commit 4bb1f54

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

  • src/quickstart/provider/minikube

src/quickstart/provider/minikube/dns.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ $ minikube ip
1515

1616
## Prepare the Hostname
1717

18-
Now that you have the ip address of your virtual machine, we can use the `nip.io` DNS service to
18+
Now that you have the ip address of your virtual machine, we can use the `nip.io` DNS service or `dnsmasq` to
1919
route arbitrary hostnames to the Deis Workflow edge router. This lets us point the Workflow CLI at
2020
your cluster without having to either use your own domain or update DNS!
2121

22+
### Using `nip.io`
23+
2224
To verify the Workflow API server and nip.io, construct your hostname by taking the ip address for
2325
your load balancer and adding `nip.io`. For our example above, the address would be `192.168.99.100`.
2426

@@ -31,6 +33,34 @@ $ host something-random.192.168.99.100.nip.io
3133
something-random.192.168.99.100.nip.io has address 192.168.99.100
3234
```
3335

36+
### Using DNSMasq
37+
38+
If you `nip.io` is working for you, you can skip this section, and proceed to verify the hostname.
39+
40+
If you prefer not to use `nip.io` or cannot (because your DNS provider might have blocked it), you can use `dnsmasq` on Linux and macOS or `Acrylic` on Windows.
41+
42+
You can install and configure `dnsmasq` on macOS with [Homebrew](https://brew.sh) with the following commands:
43+
44+
```sh
45+
# Installing dnsmasq
46+
$ brew install dnsmasq
47+
48+
# Configure `.minikube` subdomains to always use minikube IP:
49+
$ echo "address=/.minikube/`minikube ip`" >> /usr/local/etc/dnsmasq.conf
50+
$ sudo brew services start dnsmasq
51+
52+
# Make the system resolver use dnsmasq to resolve addresses:
53+
$ sudo mkdir /etc/resolver
54+
$ echo nameserver 127.0.0.1 | sudo tee /etc/resolver/minikube
55+
56+
# You might need to clear the DNS resolver cache:
57+
$ sudo killall -HUP mDNSResponder
58+
```
59+
60+
To verify the hostname, you will need to use `deis.minikube` as hostname instead of `deis.192.168.99.100.nip.io` in the next section. We will also use it in the next step.
61+
62+
### Verify the hostname
63+
3464
By default, any HTTP traffic for the hostname `deis` will be sent to the Workflow API service. To test that everything is connected properly you may validate connectivity using `curl`:
3565

3666
```

0 commit comments

Comments
 (0)