diff --git a/src/etc/one-context.d/loc-11-dns##one b/src/etc/one-context.d/loc-11-dns##one index 7409267..d195f56 100755 --- a/src/etc/one-context.d/loc-11-dns##one +++ b/src/etc/one-context.d/loc-11-dns##one @@ -46,7 +46,14 @@ for nameserver in $nameservers; do echo nameserver $nameserver >> /etc/resolv.conf done +if [ -f /etc/sysconfig/network/config ]; then + sed -i '/^NETCONFIG_DNS_STATIC_SERVERS=/ s/=.*$/="'$nameservers'"/' /etc/sysconfig/network/config +fi + [ -z "$searchdomains" ] && exit 0 echo search $searchdomains >> /etc/resolv.conf +if [ -f /etc/sysconfig/network/config ]; then + sed -i '/^NETCONFIG_DNS_STATIC_SEARCHLIST=/ s/=.*$/="'$searchdomains'"/' /etc/sysconfig/network/config +fi