[SOLVED] ubuntu 18.4 /etc/resolver.conf disappeared
by PoleStar from LinuxQuestions.org on (#5GZJQ)
Hi,
I deleted /etc/resolver.conf, Now even after restarting systemd-resolver it wont come back.
Meanwhile all nslookup searches come back with error.
Code:18_4:~# nslookup -vv www.google.com
;; Connection to 127.0.0.1#53(127.0.0.1) for www.google.com failed: connection refused.
;; Connection to ::1#53(::1) for www.google.com failed: connection refused.
note: I am able to update ubuntu by putting archive/security urls in hosts files.
Code:18_4:~# ubuntu-support-status
Support status summary of 'aaubuntu18_4':
You have 516 packages (100.0%) supported until April 2023 (Canonical - 5y)
You have 0 packages (0.0%) that can not/no-longer be downloaded
You have 0 packages (0.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more detailsI wonder how to fix the issue now.
Thank you


I deleted /etc/resolver.conf, Now even after restarting systemd-resolver it wont come back.
Meanwhile all nslookup searches come back with error.
Code:18_4:~# nslookup -vv www.google.com
;; Connection to 127.0.0.1#53(127.0.0.1) for www.google.com failed: connection refused.
;; Connection to ::1#53(::1) for www.google.com failed: connection refused.
note: I am able to update ubuntu by putting archive/security urls in hosts files.
Code:18_4:~# ubuntu-support-status
Support status summary of 'aaubuntu18_4':
You have 516 packages (100.0%) supported until April 2023 (Canonical - 5y)
You have 0 packages (0.0%) that can not/no-longer be downloaded
You have 0 packages (0.0%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more detailsI wonder how to fix the issue now.
Thank you