Create dhcp_server.markdown

This commit is contained in:
Pascal Vizeli 2017-05-23 17:28:49 +02:00 committed by GitHub
parent 14c8e31f61
commit 1ba6a754ac

View File

@ -0,0 +1,42 @@
---
layout: page
title: "DHCP server"
description: "A simple dhcp server"
date: 2017-04-30 13:28
sidebar: true
comments: false
sharing: true
footer: true
---
Create a simple DHCP server for your network and allow set fix ip for some devices.
```json
{
"domain": "mynetwork.local",
"dns": ["8.8.8.8", "8.8.4.4"],
"networks": [
{
"subnet": "192.168.1.0",
"netmask": "255.255.255.0",
"range_start": "192.168.1.100",
"range_end": "192.168.1.200",
"broadcast": "192.168.1.254",
"routers": ["192.168.1.1"]
}
],
"hosts": [
{
"name": "webcam_xy",
"mac": "aa:bb:ee:cc",
"ip": "192.168.1.40"
}
]
}
```
Configuration variables:
- **token** (*Required*): Your Duck DNS API key.
- **domains** (*Required*): A list of domains to update DNS.
- **seconds** (*Optional*): Seconds between updates to Duck DNS.