I have Ubuntu 20.10 server, with working internet.
pinging addresses work, but DNS not.
I can not update/upgrade ubuntu anymore.
One of the things I need to do with this server is sending out emails.
I spent one day searching on the internet for this, but no solution seems to work for me.
/etc/netplan/50-cloud-init.yaml
Code:
# This is the network config written by 'subiquity'
network:
ethernets:
enp5s0:
dhcp4: true
enp4s0:
addresses:
- 192.168.0.1/24
version: 2
dig google.com
Code:
; <<>> DiG 9.16.1-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 24409
;; flags: qr rd ra; QUERY: 0, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; Query time: 3 msec
;; SERVER: 127.0.0.53#53(127.0.0.53)
;; WHEN: Fri Apr 30 17:25:30 UTC 2021
;; MSG SIZE rcvd: 12
dig @8.8.8.8 www.google.com
Code:
; <<>> DiG 9.16.1-Ubuntu <<>> @8.8.8.8 www.google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42034
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;www.google.com. IN A
;; ANSWER SECTION:
www.google.com. 135 IN A 172.217.17.68
;; Query time: 11 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Fri Apr 30 17:28:42 UTC 2021
;; MSG SIZE rcvd: 59
resolvectl query www.google.com
Code:
www.google.com: 142.250.179.196 -- link: enp5s0
-- Information acquired via protocol DNS in 13.6ms.
-- Data is authenticated: no
/etc/resolv.conf
Code:
# ............
nameserver 127.0.0.53
options edns0 trust-ad
search telenet.be
after trying just about anything I get now this result, before Current DNS Server entry was not present.
systemd-resolve --status | grep Current
Code:
Current Scopes: DNS
Current DNS Server: 8.8.8.8
Current Scopes: none
appreciate any help.
Bookmarks