Update dnsmasq.markdown

This commit is contained in:
Pascal Vizeli 2017-06-20 15:29:53 +02:00 committed by GitHub
parent 7a976c6417
commit 1c62cf710a

View File

@ -11,10 +11,6 @@ footer: true
Setup and manage a [Dnsmasq](http://thekelleys.org.uk/dnsmasq/doc.html) dns server. This allow your to manipulate some dns requests. I.e. that inside your network, your homeassistant domain will resolve with a internal address. Setup and manage a [Dnsmasq](http://thekelleys.org.uk/dnsmasq/doc.html) dns server. This allow your to manipulate some dns requests. I.e. that inside your network, your homeassistant domain will resolve with a internal address.
<p class='note warning'>
At the moment, it will not work with resinos!
</p>
```json ```json
{ {
"defaults": ["8.8.8.8", "8.8.4.4"], "defaults": ["8.8.8.8", "8.8.4.4"],
@ -24,6 +20,7 @@ At the moment, it will not work with resinos!
"hosts": [ "hosts": [
{"host": "home.mydomain.io", "ip": "192.168.1.10"} {"host": "home.mydomain.io", "ip": "192.168.1.10"}
], ],
"interface": "eth1"
} }
``` ```
@ -32,3 +29,4 @@ Configuration variables:
- **defaults** (*Required*): A list of dns server to forward default requests. - **defaults** (*Required*): A list of dns server to forward default requests.
- **forwards** (*Optional*): A list of domains that will forward to a specific server. - **forwards** (*Optional*): A list of domains that will forward to a specific server.
- **hosts** (*Optional*): A list of hosts to resolve it static. - **hosts** (*Optional*): A list of hosts to resolve it static.
- **interface** (*Optional*): If a interface is set, it listen only on this interface. Need to set for resinos.