003 File Manager
Current Path:
/usr/src/contrib/hyperv/tools/scripts
usr
/
src
/
contrib
/
hyperv
/
tools
/
scripts
/
📁
..
📄
hv_get_dhcp_info
(527 B)
📄
hv_get_dns_info
(389 B)
📄
hv_set_ifconfig
(1.76 KB)
📄
hyperv_vfattach
(1.28 KB)
📄
hyperv_vfup
(2.02 KB)
Editing: hv_get_dns_info
#!/bin/sh # This script parses /etc/resolv.conf to retrive DNS information. # Khe kvp daemon code invokes this external script to gather # DNS information. # This script is expected to print the nameserver values to stdout. #if test -r /etc/resolv.conf #then # awk -- '/^nameserver/ { print $2 }' /etc/resolv.conf #fi cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'
Upload File
Create Folder