]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/hyperv/tools/scripts/hv_get_dns_info
Revert r272149, which introduces obscure vestiges from the
[FreeBSD/stable/10.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