mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-14 12:56:54 +00:00
Update dnsmasq.markdown
This commit is contained in:
parent
dc018062c0
commit
c6983a9df1
@ -11,10 +11,6 @@ footer: true
|
|||||||
|
|
||||||
Setup and manage a [Dnsmasq](http://thekelleys.org.uk/dnsmasq/doc.html) DNS server. This allows you to manipulate DNS requests. For example, you can have your Home Assistant domain resolve with an internal address inside your network.
|
Setup and manage a [Dnsmasq](http://thekelleys.org.uk/dnsmasq/doc.html) DNS server. This allows you to manipulate DNS requests. For example, you can have your Home Assistant domain resolve with an internal address inside your network.
|
||||||
|
|
||||||
<p class='note info'>
|
|
||||||
`interface` options are for resinos based installation. On other system you can set it to `""`, for listen on every interface.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"defaults": ["8.8.8.8", "8.8.4.4"],
|
"defaults": ["8.8.8.8", "8.8.4.4"],
|
||||||
@ -23,8 +19,7 @@ Setup and manage a [Dnsmasq](http://thekelleys.org.uk/dnsmasq/doc.html) DNS serv
|
|||||||
],
|
],
|
||||||
"hosts": [
|
"hosts": [
|
||||||
{"host": "home.mydomain.io", "ip": "192.168.1.10"}
|
{"host": "home.mydomain.io", "ip": "192.168.1.10"}
|
||||||
],
|
]
|
||||||
"interface": "eth1"
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -33,4 +28,3 @@ Configuration variables:
|
|||||||
- **defaults** (*Required*): A list of DNS servers to forward default requests to.
|
- **defaults** (*Required*): A list of DNS servers to forward default requests to.
|
||||||
- **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 statically.
|
- **hosts** (*Optional*): A list of hosts to resolve statically.
|
||||||
- **interface** (*Optional*): If an interface is set, it listens only on this interface. Needs to be set for ResinOS. Normally is `eth0` for ethernet wired connection and `wlan0` for wireless connection.
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user