]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#4486] updated doc
authorRazvan Becheriu <razvan@isc.org>
Fri, 29 May 2026 18:10:08 +0000 (21:10 +0300)
committerRazvan Becheriu <razvan@isc.org>
Sat, 30 May 2026 17:11:51 +0000 (20:11 +0300)
doc/sphinx/arm/dhcp4-srv.rst
doc/sphinx/arm/dhcp6-srv.rst

index 3871daebb6e3765837e5c24c5c8668d73a049618..d4474bccb295f1b304116dfb3d0faca202297bf8 100644 (file)
@@ -3676,8 +3676,8 @@ The default configuration and values would appear as follows:
         "ddns-qualifying-suffix": "",
         "ddns-update-on-renew": false,
         "ddns-conflict-resolution-mode": "check-with-dhcid",
-        "hostname-char-set": "",
-        "hostname-char-replacement": "",
+        "hostname-char-set": "[^A-Za-z0-9.-]",
+        "hostname-char-replacement": "x",
         ...
    }
 
@@ -4120,7 +4120,9 @@ accomplished with the following two parameters:
    extended expression syntax. Embedded nulls (0x00) are always
    considered an invalid character to be replaced (or omitted).
    The default is ``"[^A-Za-z0-9.-]"``. This matches any character that is not
-   a letter, digit, dot, hyphen, or null.
+   a letter, digit, dot, or hyphen. It is highly recommended to not
+   set this to an empty string (``""``) as this will allow non printable
+   characters to be used in the hostname component.
 
 -  ``hostname-char-replacement`` - a string of zero or more characters
    with which to replace each invalid character in the host name. An empty
index 8db27326447c63077cdeb94c28258f7cb82d18f4..e12cfa390c7c618281d501082f7f6d8cf0a5d881 100644 (file)
@@ -3441,8 +3441,8 @@ The default configuration and values would appear as follows:
         "ddns-qualifying-suffix": "",
         "ddns-update-on-renew": false,
         "ddns-conflict-resolution-mode": "check-with-dhcid",
-        "hostname-char-set": "",
-        "hostname-char-replacement": "",
+        "hostname-char-set": "[^A-Za-z0-9.-]",
+        "hostname-char-replacement": "x",
         ...
    }
 
@@ -3885,7 +3885,9 @@ accomplished with the following two parameters:
    extended expression syntax. Embedded nulls (0x00) are always
    considered an invalid character to be replaced (or omitted).
    The default is ``"[^A-Za-z0-9.-]"``. This matches any character that is not
-   a letter, digit, dot, hyphen, or null.
+   a letter, digit, dot, or hyphen. It is highly recommended to not
+   set this to an empty string (``""``) as this will allow non printable
+   characters to be used in the hostname component.
 
 -  ``hostname-char-replacement`` - a string of zero or more characters
    with which to replace each invalid character in the host name. An empty