LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2021, 04:44 PM   #1
sundry_50
Member
 
Registered: Jan 2005
Distribution: knoppix/debian
Posts: 38
Blog Entries: 2

Rep: Reputation: 11
Ubuntu 20.04 unable to resolve by name but 1.1.1.1 and 8.8.8.8 are OK


I can ping local machines and 1.1.1.1 and 8.8.8.8 but not google.com or fark.com, etc.
Code:
iptables -nvL
Chain INPUT (policy ACCEPT 1792 packets, 310K bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53 /* managed by anbox-bridge */
    0     0 ACCEPT     udp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:53 /* managed by anbox-bridge */
    0     0 ACCEPT     tcp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:67 /* managed by anbox-bridge */
    0     0 ACCEPT     udp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:67 /* managed by anbox-bridge */

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  *      anbox0  0.0.0.0/0            0.0.0.0/0            /* managed by anbox-bridge */
    0     0 ACCEPT     all  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            /* managed by anbox-bridge */

Chain OUTPUT (policy ACCEPT 1469 packets, 174K bytes)
 pkts bytes target     prot opt in     out     source               destination
and
Code:
cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 127.0.0.53
Other machines are able to resolve just fine so I don't know what to do next.
 
Old 07-25-2021, 05:24 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sundry_50 View Post
I can ping local machines and 1.1.1.1 and 8.8.8.8 but not google.com or fark.com, etc.
Code:
iptables -nvL
Chain INPUT (policy ACCEPT 1792 packets, 310K bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     tcp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53 /* managed by anbox-bridge */
    0     0 ACCEPT     udp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:53 /* managed by anbox-bridge */
    0     0 ACCEPT     tcp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            tcp dpt:67 /* managed by anbox-bridge */
    0     0 ACCEPT     udp  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            udp dpt:67 /* managed by anbox-bridge */

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  *      anbox0  0.0.0.0/0            0.0.0.0/0            /* managed by anbox-bridge */
    0     0 ACCEPT     all  --  anbox0 *       0.0.0.0/0            0.0.0.0/0            /* managed by anbox-bridge */

Chain OUTPUT (policy ACCEPT 1469 packets, 174K bytes)
 pkts bytes target     prot opt in     out     source               destination
and
Code:
cat /etc/resolv.conf 
# Generated by NetworkManager
nameserver 127.0.0.53
Other machines are able to resolve just fine so I don't know what to do next.
Well, what are the other DNS servers for those other machines? Do they ALL point back to that 127.0.0.53 address?? That's something I've never seen before...typically you'll have the address of your ISP's DNS server, or the Google DNS servers (8.8.8.8 and 8.8.4.4). Try putting those into your resolv.conf file, and see what happens. Looks like you don't have a valid DNS server, since you can ping out to the Internet.
 
1 members found this post helpful.
Old 07-26-2021, 09:49 AM   #3
sundry_50
Member
 
Registered: Jan 2005
Distribution: knoppix/debian
Posts: 38

Original Poster
Blog Entries: 2

Rep: Reputation: 11
Thanks for the reply. I'll investigate your suggestion re DNS resolver. The comments in /etc/resolv.conf from the laptop provides a couple of hints. Ubuntu and Mint all reference 127.0.0.53.
Code:
Desktop2 Ubuntu 20.04
#This file is managed by man:systemd-resolved(8). Do not edit.
nameserver 127.0.0.53
options edns0 trust-ad
search lan

Mint 20
#This file is managed by man:systemd-resolved(8). Do not edit.
nameserver 127.0.0.53
options edns0 trust-ad
search lan

Ubuntu 20.04 lappy
# 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
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
The
Code:
systemd-resolve --status
output is 63 lines so I'll reserve it unless requested.
 
Old 07-26-2021, 12:04 PM   #4
sundry_50
Member
 
Registered: Jan 2005
Distribution: knoppix/debian
Posts: 38

Original Poster
Blog Entries: 2

Rep: Reputation: 11
Solved. Protonvpn kill switch set up an interface that I had to remove, then log back in the VPN before shutdown or reboot. Shutdown or reboot before logging into the VPN would cause the interface to reappear and block resolver.
Code:
sudo ip link delete "link_name"
Log in the VPN then you may shutdown or reboot. Otherwise, the link persists.
 
1 members found this post helpful.
Old 07-26-2021, 12:09 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Thanks for posting the solution.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Name resolution failure"-- but already using IP address, there is no name to resolve firejuggler86 Linux - Networking 1 05-14-2017 02:12 AM
cachingserver can resolve www.gmail.com, but can not resolve mail.com SeniorGoe Linux - Server 6 06-12-2010 01:10 PM
Unable to resolve ulr. /et/resolve.conf looks fine? TheBrick Linux - Networking 3 02-14-2008 04:13 AM
DNS can't resolve gmail.com but can resolve everything else? TongueTied Linux - Networking 2 01-24-2006 03:39 AM
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 06:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration