1271493Sdelphij#!/bin/sh
2271493Sdelphij# This script parses /etc/resolv.conf to retrive DNS information.
3271493Sdelphij# Khe kvp daemon code invokes this external script to gather
4271493Sdelphij# DNS information.
5271493Sdelphij# This script is expected to print the nameserver values to stdout.
6271493Sdelphij
7271493Sdelphij#if test -r /etc/resolv.conf
8271493Sdelphij#then	
9271493Sdelphij#	awk -- '/^nameserver/ { print $2 }' /etc/resolv.conf
10271493Sdelphij#fi
11271493Sdelphijcat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'
12271493Sdelphij
13