Blame SOURCES/hv_get_dns_info.sh

8042be
#!/bin/bash
8042be
8042be
# This example script parses /etc/resolv.conf to retrive DNS information.
8042be
# In the interest of keeping the KVP daemon code free of distro specific
8042be
# information; the kvp daemon code invokes this external script to gather
8042be
# DNS information.
8042be
# This script is expected to print the nameserver values to stdout.
8042be
# Each Distro is expected to implement this script in a distro specific
8042be
# fashion. For instance on Distros that ship with Network Manager enabled,
8042be
# this script can be based on the Network Manager APIs for retrieving DNS
8042be
# entries.
8042be
8042be
cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'