install-gns3-debian12/hv_get_dns_info.sh

4 lines
89 B
Bash
Executable File

#!/usr/bin/env bash
cat /etc/resolv.conf 2>/dev/null | awk '/^nameserver/ { print $2 }'