Subject: [PATCH] dhcpv6: Add domain list option check to specify dnslist
diff --git a/src/dhcp6s.c b/src/dhcp6s.c
index 7e265dd..a0e0b12 100644
--- a/src/dhcp6s.c
+++ b/src/dhcp6s.c
@@ -694,7 +694,8 @@ static int server6_react_message(struct dhcp6_if *ifp,
         roptinfo.flags = (optinfo->flags & subnet->linkscope.allow_flags) |
                          subnet->linkscope.send_flags;
 
-        if (dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DNS_SERVERS)) {
+        if (dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DNS_SERVERS) ||
+            dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DOMAIN_LIST)) {
             dnslist = subnet->linkscope.dnslist;
         }
     }
@@ -707,7 +708,8 @@ static int server6_react_message(struct dhcp6_if *ifp,
         roptinfo.flags = (optinfo->flags & host->hostscope.allow_flags) |
                          host->hostscope.send_flags;
 
-        if (dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DNS_SERVERS)) {
+        if (dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DNS_SERVERS) ||
+            dhcp6_has_option(&optinfo->reqopt_list, DH6OPT_DOMAIN_LIST)) {
             dnslist = host->hostscope.dnslist;
         }
     }
