I’ve faced the exactly same problem but I’ve fixed it with another approache.
Using Ubuntu 18.04, first disable systemd-resolved
service.
sudo systemctl disable systemd-resolved.service
Stop the service
sudo systemctl stop systemd-resolved.service
Then, remove the link to /run/systemd/resolve/stub-resolv.conf
in /etc/resolv.conf
sudo rm /etc/resolv.conf
Add a manually created resolv.conf
in /etc/
sudo vim /etc/resolv.conf
Add your prefered DNS server there
nameserver 208.67.222.222
I’ve tested this with success.
Related Posts:
- Docker System has not been booted with systemd as init system
- CentOS vs. Ubuntu [closed]
- Docker error : no space left on device
- How to establish ssh key pair when “Host key verification failed”
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- “E: Unable to locate package python-pip” on Ubuntu 18.04 [duplicate]
- localhost/phpinfo.php
- After installing with pip, “jupyter: command not found”
- gpg: no valid OpenPGP data found
- gpg: no valid OpenPGP data found
- Ubuntu ‘-bash: nano: command not found’
- E: Unable to locate package mongodb-org
- How to open the terminal in Atom?
- Valgrind permission denied on file
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- How to install Boost on Ubuntu
- How to verify if nginx is running or not?
- pdflatex not found. pdflatex is needed for pdf output
- Nginx: stat() failed (13: permission denied)
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- MySQL: How to reset or change the MySQL root password?
- Removing all installed OpenCV libs
- Vim: No write since last change, even though I changed the file
- Why can’t I print to terminal with my python script?
- How to kill a process on a port on ubuntu
- whats the meaning of curl “-s” and “-m”
- How do I ask apt-get to skip any interactive post-install configuration steps?
- How to view all ssl certificates in a bundle?
- How to remove the “installed manually” flag and revert to “automatically installed” with apt-get?
- How do I get apt-get to ignore some dependencies?
- How do I auto-start docker containers at system boot?
- How do I reattach to Ubuntu Server’s ‘do-release-upgrade’ process?
- How to determine JAVA_HOME on Debian/Ubuntu?
- How to start/stop iptables on Ubuntu?
- Which ports do I need to open in the firewall to use NFS?
- list all packages from a repository in ubuntu / debian
- dpkg-reconfigure: unable to re-open stdin: No file or directory
- How can I edit the welcome message when ssh start?
- How does Ubuntu keep track of the “System restart required” flag in motd?
- Amazon Linux vs. Ubuntu for Amazon EC2 [closed]
- Automate the installation of postfix on Ubuntu
- Best location to keep SSL certificates and private keys on Ubuntu servers?
- Why is ssh agent forwarding not working?
- Cannot connect to the Docker daemon at unix:/var/run/docker.sock. Is the docker daemon running?
- Google reCAPTCHA V3.0 not working. “ERROR for site owner: Invalid key type”
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- System has not been booted with systemd as init system (PID 1). Can’t operate
- Undefined function mysql_connect()
- ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
- “Couldn’t find a file descriptor referring to the console” on Ubuntu bash on Windows
- error: ‘Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2)’ — Missing /var/run/mysqld/mysqld.sock
- How to solve “Kernel panic – not syncing – Attempted to kill init” — without erasing any user data
- What’s the source of Error: getaddrinfo EAI_AGAIN?
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Failed to start mongod.service: Unit mongod.service not found
- Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)
- Unable to locate package libapache2-mod-php7
- Laravel 5.2 Storage::makeDirectory($dir) is not creating directory
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- Unable to establish SSL connection upon wget on Ubuntu 14.04 LTS
- jQuery .load() not working
- No module named ‘openpyxl’ – Python 3.4 – Ubuntu
- How to Install pip for python 3.7 on Ubuntu 18?
- When I run `npm install`, it returns with `ERR! code EINTEGRITY` (npm 5.3.0)
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- Curl : connection refused
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- wget: unable to resolve host address `http’
- How to find Port number of IP address?
- Getting a 500 Internal Server Error on Laravel 5+ Ubuntu 14.04
- how to search for a directory from the terminal in ubuntu
- Translation problem with timber and WPML (WordPress, different language per domain)
- Timeout While Upgrading Network in Multi-site
- WordPress multisite with different domain
- Website redirecting to old domain name
- Can’t access WordPress multisite after connecting to domain
- How to test drive WordPress on VPS with LEMP stack before going live?
- CNAME site attempts to load files over HTTP instead of HTTPS
- Domain name in a WordPress Network
- Multisite domain naming
- Site resolves to www in Firefox and without in Chrome
- Sorry, you are not allowed to access this page dashboard
- External Domain on WordPress Multisite
- WordPress Multisite + Erros with URLS and ADMIN
- Moving a wordpress.org website to another domain name?
- Redirecting DNS without breaking everything
- Correct Way to Move WordPress to Subdomain and Shop to Stay at root Domain
- WordPress WooCommerce email notifications going to spam folder
- How to properly setup MAMP and XIP
- All devices on my network redirect me to an old domain
- White Homepage after Domain Name Change
- WordPress MU with subdomain
- Is it ok to have one wordpress installation for server.com and www.server.com?
- how to get my WP site’s IP? [closed]
- wp-admin keeps forwarding me to an old url
- What are the functional differences between .profile .bash_profile and .bashrc
- Can I hide all server / os info?
- How to fix PuTTY showing garbled characters? [closed]
- GPG does not have enough entropy
- Why don’t EC2 ubuntu images have swap?