diff --git a/src/etc/one-context.d/net-15-hostname##one b/src/etc/one-context.d/net-15-hostname##one index 9085e3b..293d0bf 100755 --- a/src/etc/one-context.d/net-15-hostname##one +++ b/src/etc/one-context.d/net-15-hostname##one @@ -24,7 +24,7 @@ function set_domainname() { } function get_first_ip() { - hostname -I | cut -d' ' -f1 + ip route get 1 | awk '{print $NF;exit}' } function get_dns_name() {