You have been subscribed to a public bug:

I have been symlinking /etc/resolv.conf to a stub file generated using
the resolvconf service (i believe this is default behavior). I just
pushed a change to all the desktops under my control to remove this
symlink, and manage /etc/resolv.conf as a static file. Immediately
after, DNS resolution failed for about 1/3 of the desktops under my
control. I was able to fix this by sending the "touch /etc/resolv.conf"
command to all our desktops (via saltstack).

Further information:

OS: Ubuntu Focal 20.04
Kernel: 5.11.0-27-generic or 5.11.0-41-generic
Method of deploying changes: saltstack

Reproduce:

if [ -L /etc/resolv.conf ]
then
  unlink /etc/resolv.conf
fi
cat > /etc/resolv.conf <<EOF
nameserver xx.xx.xx.xx
nameserver yy.yy.yy.yy
domain example.com
search example.com
options ndots:2 timeout:1
EOF
ping google.com  # fails
touch /etc/resolv.conf
ping google.com  # succeeds

** Affects: resolvconf (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment dns resolvconf
-- 
DNS issues when replacing /etc/resolv.conf symlink with static file
https://bugs.launchpad.net/bugs/1957993
You received this bug notification because you are a member of Ubuntu Touch 
seeded packages, which is subscribed to resolvconf in Ubuntu.

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to