Temporary failure in name resolution – Ubuntu 18.04.1 LTS

Here are the steps to resolve the .local issues in Ubuntu 18.04.1 LTS

Here is the “hosts” info of my /etc/nsswitch.conf file:

hosts:          files dns

Edit this file /etc/systemd/resolved.conf

DNS=***Enter the IP of your DNS Serer
Domains=*******.local

Restart the resolved service

 service systemd-resolved restart