You are not logged in.

#1 2023-05-05 09:09:58

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

[SOLVED]Able to ping DNS, but not site urls

Hello everyone smile noob here I hope you are having a good day

I am having a bit of a challenging issue, I have accidentally removed some networking utilities like ping and traceroute but I do have nmap and netctl

I was able to access the internet fine a few hours ago but suddenly, probably because of a VPN, I think my DNS configuration got borked

Currently, when I do:
nmap 8.8.8.8
nmap 1.1.1.1

I think I'm getting the expected output which is that the host is up and it shows me open tcp ports
https://ibb.co/wCwGLCG

But when I do
nmap -sP google.com

Presumably to ping the url
It says failed to resolve, no targets specified, 0 hosts scanned

My problem now is that I can't access websites with a browser but I think I'm connected I just need to correct the DNS configuration somehow?

This currently the coneltents of my /etc/resolv.conf
https://ibb.co/vdj2q3C

And my /etc/systemd/resolved conf
https://ibb.co/7NsgtpF

Itried adding a DNS in there and allow-downgrade or no and yes in the DNSSEC field then doing
systemctl restart systemd-resolved and disconnecting and reconnecting to the wifi but no luck

curl also says: could not resolve host: google.com

I don't know what else to do, due to the current predicament I am in(limited resources), I don't have access to a flashdrive to do arch-chroot or add more programs. Any help would be very much appreciated smile

Last edited by Bluish9992 (2023-05-05 16:44:02)

Offline

#2 2023-05-05 09:24:10

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED]Able to ping DNS, but not site urls

What's the output of "resolvectl status"?  And what's your network manager?

Is "/etcresolv.conf" a symlink?  If so why did you set it up this way, instead of following the recommendation in the wiki and the systemd-resolved documentation to link the stub resolver file?

Last edited by 3beb6e7c46a615a (2023-05-05 09:25:29)

Offline

#3 2023-05-05 10:02:17

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]Able to ping DNS, but not site urls

Thank you for replying

This is the output of
resolvectl status

https://ibb.co/5rXWmWr

My network manager is NetworkManager

Before I started messing around with /etc/resolv.conf to try to fix this, and turned it into a symlink of /run/systemd/resolve/resolv.conf it used to be a file that was generated by NetworkManager with this in its contents
https://ibb.co/Hz2fNbq

I was just trying out a couple of solutions I found in forums

But if you mean it should be a link to /run/systemd/resolve/stub-resolve.conf(https://ibb.co/ckppzL1) instead, I tried this just now and same issue  sad

Offline

#4 2023-05-05 11:04:03

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED]Able to ping DNS, but not site urls

Please do configure resolved as recommend and restart network manager to make sure it actually uses resolved. Then run resolvectl status again, and make sure resolv.conf mode says "stub".

This won't fix DNS but you'll at least have a correct setup to work from.

Then figure out what this ipv6leak interface is; it's registered as the default route for name lookups in resolved, but refers to a nameserver running on your system.  So presumably this is either plain wrong, or some kind of VPN which actually spawns a service acting as your local nameserver, but isn't actually running.

So, do you have a nameserver running on your local system? What VPN are you talking about above?

And, could you please find a way to upload things as plain text?  These screenshots are somewhat hard to read.  If that's all together impossible, at least change your shell theme to improve contrast, ie black text on white background.

Last edited by 3beb6e7c46a615a (2023-05-05 11:05:42)

Offline

#5 2023-05-05 11:15:21

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]Able to ping DNS, but not site urls

Thank you for the insight, and sorry about the unreadable terminal.

In my area it seems my isp cannot provide ipv6 so I need to use ipv4 only. I turned ipv6 off from the networkmanager GUI applet but I'm guessing the VPN might have changed the defaults somehow

It is protonvpn but I have it turned off at the moment and I've
rebooted a bunch of times by now so it shouldn't be running

But I'd like for the default name lookup to use ipv4 if possible how would I go about doing this?

Last edited by Bluish9992 (2023-05-05 11:23:11)

Offline

#6 2023-05-05 14:29:21

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,322

Re: [SOLVED]Able to ping DNS, but not site urls

In my area it seems my isp cannot provide ipv6 so I need to use ipv4 only. I turned ipv6 off from the networkmanager GUI

https://wiki.archlinux.org/title/IPv6#D … ctionality

Online

#7 2023-05-05 16:43:30

Bluish9992
Member
Registered: 2022-12-14
Posts: 47

Re: [SOLVED]Able to ping DNS, but not site urls

hello again seth lol

i did the instructions in that link you sent, adding

ipv6.disable_ipv6=1

to my bootloader's(grub)  default commandline params and everything works now again thanks alot and to @lunaryorn too i appreciate your help

Offline

Board footer

Powered by FluxBB