Since Fedora uses NetworkManager
to handle its resolv.conf
and not resolvconf
like debian would've, it's a bit more shady but this does the trick:
[root@groar etc] # cat /etc/resolv.conf
# Generated by NetworkManager
search mycustomdomain.com
nameserver myinternalDNSIPaddres
nameserver 8.8.8.8
nameserver 9.9.9.9
options use-vc
[root@groar etc] # tail -4 /etc/sysconfig/network-scripts/network-functions
grep -iq "options use-vc" /etc/resolv.conf
if [ $? -ne 0 ]; then
echo "options use-vc" >> /etc/resolv.conf
fi