]> git.ipfire.org Git - network.git/blobdiff - dhclient-script
headers: Add missing function and rename existing ones.
[network.git] / dhclient-script
index 651a630ef8975ba695c06f58283e2e6ab1aa3ed4..9325a21bb7111b2cf7375ee9bfd4f12c69f85785 100644 (file)
@@ -97,10 +97,16 @@ case "${reason}" in
                                        routing_db_set ${interface} ipv4 local-ip-address "${new_ip_address}/${new_prefix}"
                                        routing_db_set ${interface} ipv4 remote-ip-address "${new_routers}"
                                        routing_db_set ${interface} ipv4 active 1
+                                       routing_db_set ${interface} ipv4 domain-name "${new_domain_name}"
+                                       routing_db_set ${interface} ipv4 domain-name-servers "${new_domain_name_servers}"
+                                       routing_db_set ${interface} ipv4 domain-name-servers-priority "${DNS_SERVER_DYNAMIC_PRIORITY}"
 
                                        # Update the routing tables.
                                        routing_update ${interface} ipv4
                                        routing_default_update
+
+                                       # Update resolv.conf
+                                       dns_generate_resolvconf
                                fi
                                ;;
                esac