1176 NWAM handling of multiple DHCP-assigned DNS domains broken
Reviewed by: Gordon Ross <
[email protected]>
Reviewed by: Albert Lee <
[email protected]>
Approved by: Garrett D'Amore <
[email protected]>
--- a/usr/src/cmd/svc/milestone/net-loc Fri Jul 29 21:26:16 2011 -0400
+++ b/usr/src/cmd/svc/milestone/net-loc Thu Aug 04 17:26:54 2011 -0700
@@ -202,9 +202,11 @@
dns-nameservice-search`
;;
'dhcp')
- DNS_DOMAIN=`get_dhcpinfo DNSdmain`
+ DNS_SEARCH=`get_dhcpinfo DNSdmain`
DNS_SERVERS=`get_dhcpinfo DNSserv`
- # No DNS search info for IPv4
+ # Use first search list entry as default domain
+ set -- $DNS_SEARCH
+ DNS_DOMAIN=$1
;;
'*')
echo "Unrecognized DNS configsrc ${configsrc}; ignoring"