DNS: make the same ip type DNS query as the interface address type

Since dns query happens on non-default interface, only query the
 address type that the interface has;otherwise the dns results
 might not be usable.

CRs-fixed: 694805
Change-Id: I4ce900507bf18a9f60a2971cf496aa7c930d540b
Merge remote-tracking branch 'cm/cm-11.0' into test
Fix pointer type error from _Unwind_Ptr being redefined

Change-Id: I51acde47876fac566055d763c8d7ca75f1fad105