1 # Set net.<iface>.dnsN properties that contain the
2 # DNS server addresses given by the DHCP server.
4 if [[ $interface == p2p* ]]
13 case "${new_domain_name_servers}" in
19 setprop dhcp.${intf}.dns${i} ""
23 for dnsaddr in ${new_domain_name_servers}; do
24 setprop dhcp.${intf}.dns${count} ${dnsaddr}
29 if [ -z "$new_domain_name" ]; then
32 if [ -z "$new_domain_search" ]; then
36 setprop dhcp.${interface}.domain "${new_domain_name}$separator${new_domain_search}"
42 setprop dhcp.${intf}.dns${i} ""
45 setprop dhcp.${interface}.domain ""
49 BOUND|INFORM|REBIND|REBOOT|RENEW|TIMEOUT) set_dns_props;;
50 EXPIRE|FAIL|IPV4LL|RELEASE|STOP) unset_dns_props;;