I am wondering if I can get some tips on fixing my dns resolution for my 18.04 server machine. I use this machine as an OpenVPN server and a Samba file server, in addition to using it for light web browsing as a desktop. DNS resolution is neither successful from the Desktop interface nor from my OpenVPN remote client.
I have been attempting to troubleshoot for several days with no success, and I see that many others have had issues with 18.04’s DNS. I am hoping to get the original bug repaired (no reverting to broken DNS resolution on every reboot) and to also access the outside Internet from both my remote OpenVPN client and the web browser on the home machine (in my house).
I’m relatively novice to running a linux system, only starting with this Ubuntu server less than one year ago.
I can ping 8.8.8.8 successfully, but not google.com.
Code:
“ping google.com
ping: google.com: Name or service not known”
I am pasting below some of my various settings.
-----------------------------------------------------------------------
Code:
$ cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp2s0:
dhcp4: true
-----------------------------------------------------------------------
Code:
cat /etc/systemd/resolved.conf
[Resolve]
DNS=192.168.1.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
#DNSStublistener=yes
DNSStubHandler=no
-----------------------------------------------------------------------
Code:
cat /etc/network/interfaces
# The loopback network interface
auto lo eth0
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet dhcp
-----------------------------------------------------------------------
Code:
cat /etc/resolvconf/resolv.conf.d/head
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
-----------------------------------------------------------------------
Code:
cat /etc/dnsmasq.d/lxd
# Tell any system-wide dnsmasq instance to make sure to bind to interfaces
# instead of listening on 0.0.0.0
# WARNING: changes to this file will get lost if lxd is removed.
bind-interfaces
except-interface=lxdbr0
-----------------------------------------------------------------------
Code:
cat /etc/dnsmasq.d-available/lxd
# Tell any system-wide dnsmasq instance to make sure to bind to interfaces
# instead of listening on 0.0.0.0
# WARNING: changes to this file will get lost if lxd is removed.
bind-interfaces
except-interface=lxdbr0
-----------------------------------------------------------------------
I would appreciate any tips and advice - as I’ve been trying to troubleshot both from similar threads on this forum, and others - for nearly a week now with no success.
Bookmarks