I want to set up a DNS server on my local machine. However, I accidentally deleted
/etc/resolv.conf and tried restarting multiple times to recover it, but it didn't work.
So, I did some research and found that
/etc/resolv.conf is actually a symbolic link to
Therefore, the solution is simple:
sudo ln -s /var/run/resolv.conf /etc/resolv.conf