D2ClientConfig::RCM_NEVER);
subnet_->setDdnsGeneratedPrefix("myhost");
subnet_->setDdnsQualifyingSuffix("example.com");
+ // In V6 the dot (".") can, and equally can not be specified in the
+ // "hostname-char-set" because the FQDN is split before any character
+ // is replaced and then is put back together.
subnet_->setHostnameCharSet("[^A-Za-z0-9.-]");
subnet_->setHostnameCharReplacement("x");
subnet_->setDdnsConflictResolutionMode("check-with-dhcid");
subnet_->setDdnsReplaceClientNameMode(D2ClientConfig::RCM_NEVER);
subnet_->setDdnsGeneratedPrefix("prefix");
subnet_->setDdnsQualifyingSuffix("suffix.com");
+ // In V4 the dot (".") can, and equally can not be specified in the
+ // "hostname-char-set" because the FQDN is split before any character
+ // is replaced and then is put back together. However it does have an
+ // effect on the hostname option 12 (DHO_HOST_NAME), but this test is
+ // only checking the FQDN option.
subnet_->setHostnameCharSet("[^A-Za-z0-9.-]");
subnet_->setHostnameCharReplacement("x");
subnet_->setDdnsReplaceClientNameMode(D2ClientConfig::RCM_NEVER);
subnet_->setDdnsGeneratedPrefix("prefix");
subnet_->setDdnsQualifyingSuffix("suffix.com");
+ // In V6 the dot (".") can, and equally can not be specified in the
+ // "hostname-char-set" because the FQDN is split before any character
+ // is replaced and then is put back together.
subnet_->setHostnameCharSet("[^A-Za-z0-9.-]");
subnet_->setHostnameCharReplacement("x");