Add search domain support to SRV lookups
Add search domain support to SRV lookups

This adds search domain support by trying to resolve a name by
appending each search domain configured in /etc/resolv.conf until
the query succeeds (NOERROR) and has at least one answer.

Change-Id: Ibdc5138c5d8cc049e11fab90c3d5243d5a06852c

jbdalido/prometheus,tomwilkie/prometheus,kangwoo/prometheus,wndhydrnt/prometheus,prasincs/prometheus,datajet-io/prometheus,prometheus/prometheus,msiebuhr/prometheus,cit-lab/prometheus,Colstuwjx/prometheus,AlekSi/prometheus,sudhi-vm/prometheus,justintung/prometheus,fabric8io/prometheus,robbiet480/prometheus,q3k/prometheus,ton31337/prometheus,wrouesnel/prometheus,bluecmd/prometheus,gcnonato/prometheus,dalanlan/prometheus,robbiet480/prometheus,AlekSi/prometheus,alileza/prometheus,bluecmd/prometheus,abhishekamralkar/prometheus,jimmidyson/prometheus,dln/prometheus,prometheus/prometheus,kangwoo/prometheus,tattsun/prometheus,nicr9/prometheus,iksaif/prometheus,jimmidyson/prometheus,tomwilkie/prometheus,cit-lab/prometheus,trigrass2/prometheus,JavierZunzunegui/prometheus,fabxc/prometheus,Gouthamve/prometheus,gesellix/prometheus,smyrman/prometheus,RobertKielty/prometheus,q3k/prometheus,kzittritsch/prometheus,SaltedMan/prometheus-annotated,gcnonato/prometheus,tattsun/prometheus,laushinka/prometheus,gesellix/prometheus,amorken/prometheus,iksaif/prometheus,thachmai/prometheus,msiebuhr/prometheus,slok/prometheus,kangwoo/prometheus,dalanlan/prometheus,wrouesnel/prometheus,smyrman/prometheus,yanghongkjxy/prometheus,prometheus/prometheus,fabric8io/prometheus,AlekSi/prometheus,AlekSi/prometheus,abhishekamralkar/prometheus,GoogleCloudPlatform/prometheus,dpatel06/prometheus,gottwald/prometheus,hustbill/prometheus,justintung/prometheus,gcnonato/prometheus,prasincs/prometheus,fabric8io/prometheus,jmcfarlane/prometheus,wrouesnel/prometheus,SaltedMan/prometheus-annotated,gesellix/prometheus,datajet-io/prometheus,Conorbro/prometheus,msiebuhr/prometheus,RobertKielty/prometheus,rajthilakmca/prometheus,laushinka/prometheus,brancz/prometheus,dsymonds/prometheus,hustbill/prometheus,Gouthamve/prometheus,brian-brazil/prometheus,wxdublin/prometheus,yanghongkjxy/prometheus,dmilstein/prometheus,justintung/prometheus,tattsun/prometheus,GoogleCloudPlatform/prometheus,JavierZunzunegui/prometheus,dln/prometheus,q3k/prometheus,dln/prometheus,agaoglu/prometheus,mtanda/prometheus,mtanda/prometheus,alileza/prometheus,trigrass2/prometheus,GoogleCloudPlatform/prometheus,eliothedeman/prometheus,ton31337/prometheus,keegancsmith/prometheus,PrFalken/prometheus,flier/prometheus,GoogleCloudPlatform/prometheus,dsymonds/prometheus,jmcfarlane/prometheus,mrwacky42/prometheus,smyrman/prometheus,adamron1/prometheus,Dieterbe/prometheus,adamron1/prometheus,datajet-io/prometheus,nicr9/prometheus,flier/prometheus,cit-lab/prometheus,wrouesnel/prometheus,fabxc/prometheus,gottwald/prometheus,amorken/prometheus,bluecmd/prometheus,yanghongkjxy/prometheus,fabric8io/prometheus,wxdublin/prometheus,wndhydrnt/prometheus,laushinka/prometheus,keegancsmith/prometheus,jbdalido/prometheus,Conorbro/prometheus,wxdublin/prometheus,ton31337/prometheus,mtanda/prometheus,PrFalken/prometheus,Stackdriver/stackdriver-prometheus,jmcfarlane/prometheus,trigrass2/prometheus,adamron1/prometheus,slok/prometheus,jmcfarlane/prometheus,q3k/prometheus,hustbill/prometheus,Gouthamve/prometheus,rajthilakmca/prometheus,Stackdriver/stackdriver-prometheus,mtanda/prometheus,eliothedeman/prometheus,prasincs/prometheus,thachmai/prometheus,dalanlan/prometheus,trigrass2/prometheus,RobertKielty/prometheus,tomwilkie/prometheus,kzittritsch/prometheus,mrwacky42/prometheus,hustbill/prometheus,smyrman/prometheus,Colstuwjx/prometheus,sudhi-vm/prometheus,tomwilkie/prometheus,PrFalken/prometheus,dmilstein/prometheus,jbdalido/prometheus,wndhydrnt/prometheus,datajet-io/prometheus,sudhi-vm/prometheus,msiebuhr/prometheus,dpatel06/prometheus,ton31337/prometheus,laushinka/prometheus,keegancsmith/prometheus,prasincs/prometheus,cit-lab/prometheus,SaltedMan/prometheus-annotated,robbiet480/prometheus,Dieterbe/prometheus,flier/prometheus,gcnonato/prometheus,tattsun/prometheus,brancz/prometheus,Colstuwjx/prometheus,rajthilakmca/prometheus,brancz/prometheus,JavierZunzunegui/prometheus,dsymonds/prometheus,fabxc/prometheus,gottwald/prometheus,dpatel06/prometheus,eliothedeman/prometheus,abhishekamralkar/prometheus,prometheus/prometheus,Stackdriver/stackdriver-prometheus,robbiet480/prometheus,thachmai/prometheus,amorken/prometheus,jimmidyson/prometheus,slok/prometheus,kangwoo/prometheus,dsymonds/prometheus,sudhi-vm/prometheus,Stackdriver/stackdriver-prometheus,Conorbro/prometheus,agaoglu/prometheus,bluecmd/prometheus,brancz/prometheus,mrwacky42/prometheus,kzittritsch/prometheus,dmilstein/prometheus,Gouthamve/prometheus,alileza/prometheus,prometheus/prometheus,alileza/prometheus,iksaif/prometheus,keegancsmith/prometheus,Dieterbe/prometheus,rajthilakmca/prometheus,slok/prometheus,RobertKielty/prometheus,eliothedeman/prometheus,dln/prometheus,yanghongkjxy/prometheus,gottwald/prometheus,abhishekamralkar/prometheus,Colstuwjx/prometheus,adamron1/prometheus,keegancsmith/prometheus,JavierZunzunegui/prometheus,brian-brazil/prometheus,SaltedMan/prometheus-annotated,iksaif/prometheus,GoogleCloudPlatform/prometheus,dmilstein/prometheus,Conorbro/prometheus,brian-brazil/prometheus,justintung/prometheus,agaoglu/prometheus,agaoglu/prometheus,gesellix/prometheus,kzittritsch/prometheus,amorken/prometheus,PrFalken/prometheus,fabxc/prometheus,alileza/prometheus,jbdalido/prometheus,nicr9/prometheus,thachmai/prometheus