Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 324399
b: refs/heads/master
c: d82c37c
h: refs/heads/master
i:
  324397: b64c670
  324395: e6bb767
  324391: aac0c22
  324383: 59d3203
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Sep 4, 2012
1 parent dd836fb commit 0e1e91b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0cbc156a7689348e56ac9b871c988b59b9f9ff0
refs/heads/master: d82c37ce6896734a4a2a9b74c22084fe47824466
13 changes: 13 additions & 0 deletions trunk/tools/hv/hv_get_dns_info.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# This example script parses /etc/resolv.conf to retrive DNS information.
# In the interest of keeping the KVP daemon code free of distro specific
# information; the kvp daemon code invokes this external script to gather
# DNS information.
# This script is expected to print the nameserver values to stdout.
# Each Distro is expected to implement this script in a distro specific
# fashion. For instance on Distros that ship with Network Manager enabled,
# this script can be based on the Network Manager APIs for retrieving DNS
# entries.

cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'

0 comments on commit 0e1e91b

Please sign in to comment.