]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/hyperv/tools/scripts/hv_get_dns_info
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / hyperv / tools / scripts / hv_get_dns_info
1 #!/bin/sh
2 # This script parses /etc/resolv.conf to retrive DNS information.
3 # Khe kvp daemon code invokes this external script to gather
4 # DNS information.
5 # This script is expected to print the nameserver values to stdout.
6
7 #if test -r /etc/resolv.conf
8 #then   
9 #       awk -- '/^nameserver/ { print $2 }' /etc/resolv.conf
10 #fi
11 cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'
12