aboutsummaryrefslogtreecommitdiffstats
path: root/doc/dhcp-to-dns.md
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-03-25 22:33:02 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-03-28 12:05:47 +0200
commitd700dbc00e6e22ea9521d3b359f0d3635d9af682 (patch)
tree5d43b7ef1080a480d5d910a80ac6ed2c321a4b44 /doc/dhcp-to-dns.md
parent40f0d54ea89b701afbbc1cfa2ade8913c4d137eb (diff)
dhcp-to-dns: support host name from dhcp lease comment
The lease comment is supposed to be a human readable string... But we could allow parsable information.
Diffstat (limited to 'doc/dhcp-to-dns.md')
-rw-r--r--doc/dhcp-to-dns.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/dhcp-to-dns.md b/doc/dhcp-to-dns.md
index 7229c9a..a2caf0c 100644
--- a/doc/dhcp-to-dns.md
+++ b/doc/dhcp-to-dns.md
@@ -41,6 +41,19 @@ The configuration goes to `global-config-overlay`, these are the parameters:
* `PrefixInZone`: whether or not to add prefix `dhcp`
* `ServerNameInZone`: whether or not to add DHCP server name
+### Host name from DHCP lease comment
+
+Overwriting the host name from dhcp lease comment is supported, just add
+something like `hostname=new-hostname` in comment, and separate it by comma
+from other information if required:
+
+ /ip/dhcp-server/lease/add address=10.0.0.50 comment="my device, hostname=new-hostname" mac-address=00:11:22:33:44:55 server=dhcp;
+
+Note this information can be configured in wireless access list with
+[dhcp-lease-comment](dhcp-lease-comment.md), though it comes with a delay
+then due to script execution order. Decrease the scheduler interval to
+reduce the effect.
+
See also
--------