diff --git a/doc/guide/dhcp4-srv.xml b/doc/guide/dhcp4-srv.xml index 77f2991d11..ab353edd63 100644 --- a/doc/guide/dhcp4-srv.xml +++ b/doc/guide/dhcp4-srv.xml @@ -921,7 +921,7 @@ temporarily override a list of interface names and listen on all interfaces. time-offset2int32false routers3ipv4-addresstrue time-servers4ipv4-addresstrue -name-servers5ipv4-addressfalse +name-servers5ipv4-addresstrue domain-name-servers6ipv4-addresstrue log-servers7ipv4-addresstrue cookie-servers8ipv4-addresstrue diff --git a/src/lib/dhcp/std_option_defs.h b/src/lib/dhcp/std_option_defs.h index 69fabbb065..b03326c03f 100644 --- a/src/lib/dhcp/std_option_defs.h +++ b/src/lib/dhcp/std_option_defs.h @@ -80,7 +80,7 @@ const OptionDefParams OPTION_DEF_PARAMS4[] = { { "routers", DHO_ROUTERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "time-servers", DHO_TIME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "name-servers", DHO_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, - false, NO_RECORD_DEF, "" }, + true, NO_RECORD_DEF, "" }, { "domain-name-servers", DHO_DOMAIN_NAME_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, { "log-servers", DHO_LOG_SERVERS, OPT_IPV4_ADDRESS_TYPE, true, NO_RECORD_DEF, "" }, diff --git a/src/lib/dhcp/tests/libdhcp++_unittest.cc b/src/lib/dhcp/tests/libdhcp++_unittest.cc index c9fde6e76d..fd501acff6 100644 --- a/src/lib/dhcp/tests/libdhcp++_unittest.cc +++ b/src/lib/dhcp/tests/libdhcp++_unittest.cc @@ -725,7 +725,7 @@ TEST_F(LibDhcpTest, stdOptionDefs4) { typeid(Option4AddrLst)); LibDhcpTest::testStdOptionDefs4(DHO_NAME_SERVERS, begin, end, - typeid(OptionCustom)); + typeid(Option4AddrLst)); LibDhcpTest::testStdOptionDefs4(DHO_DOMAIN_NAME_SERVERS, begin, end, typeid(Option4AddrLst));