[Samba] Samba Wiki Correction DHCP

Sami Hulkko sahulkko at gmail.com
Tue Jan 20 04:54:22 UTC 2026


Hi,

In section Configure DHCP to update DNS records - SambaWiki 
<https://wiki.samba.org/index.php/Configure_DHCP_to_update_DNS_records> there 
is offered a script for DHCP to DNS auto uptate that should have 
addendum. According to  RFCs, including RFC 1035 and RFC 1123 DNS labels 
can not have special characters have space or start with hyphen.

In section:

....

# exit if name contains a space
case ${name} in
     *\ * )
         logger "Invalid hostname '${name}' ...Exiting"
         exit
         ;;
esac

....

One should add these cases.

-- 
Sami Hulkko
+358 45 8569 319
sahulkko at gmail.com
sahulkko at icloud.com


More information about the samba mailing list