Create dnsmasq.markdonw

This commit is contained in:
Pascal Vizeli 2017-05-25 01:09:48 +02:00 committed by GitHub
parent 9772c3f694
commit a0600c1d3e

View File

@ -0,0 +1,34 @@
---
layout: page
title: "Dnsmasq"
description: "A simple dns server with benefits."
date: 2017-04-30 13:28
sidebar: true
comments: false
sharing: true
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.
<p class='note warning'>
At the moment, it will not work with resinos!
</p>
```json
{
"defaults": ["8.8.8.8", "8.8.4.4"],
"forwards": [
{"domain": "mystuff.local", "server": "192.168.1.40"}
],
"hosts": [
{"host": "home.mydomain.io", "ip": "192.168.1.10"}
],
}
```
Configuration variables:
- **defaults** (*Required*): A list of dns server to forward default requests.
- **forwards** (*Optional*): A list of domains that will forward to a specific server.
- **hosts** (*Optional*): A list of hosts to resolve it static.