1

Im using isc-dhcpd and bind9 to do ddns.

It is mostly working, but updates from clients with invalid names, like "leif_opo5" or "Danfoss Connect CC" are rejected.

I changed the hostname for my phone to leif-opo5, and it got registered, but I can't change the hardcoded hostname of the Danfoss unit.

I could hardcode the name and give it a fixed IP, but there might come other devices, so i wonder:

Is it possible for isc-dhcpd to rewrite hostnames with "bad characters", replacing with '-' for instance?

Lenne
  • 917
  • 1
  • 12
  • 30
  • Hi @lenne! Did you ever figure out a solution? I have the same problem with my "iHome SmartPlug-967B65" device flooding my syslog with "dhcpd Unable to add forward map from iHome SmartPlug-967B65.myprivatedomain.com. to 10.100.111.47: REFUSED" (Note the space in the hostname.) – Jonathan Wheeler Sep 20 '22 at 03:51
  • Nope, but I could change the name the ESP8266 presented. – Lenne Sep 21 '22 at 10:59

2 Answers2

-1

For each host with invalid hostname you can create "hostname" specification at it's own "host" declaration: .. # Color ink printer-scanner host EPSON1EE63C { hardware ethernet a4:ee:57:1e:e6:3c; hostname EpsonPrt; } .. Note EPSON1EE63C means nothing for dhcp daemon and for DDNS (if used). It means only original identifier for one of "host" declarations, but "hostname" instide block does.

-3

Can you try the below in DDNS section of the DHCP config?

ddns-updates on;
# DNS host name rewrite policy:
#   Name: Default
#   Valid characters: a-z0-9
#   Replace invalid characters by: -
Vignesh SP
  • 129
  • 10