You are not logged in.
Hello everyone
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 ![]()
Last edited by Bluish9992 (2023-05-05 16:44:02)
Offline
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
Thank you for replying
This is the output of
resolvectl status
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 ![]()
Offline
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
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
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
Online
hello again seth lol
i did the instructions in that link you sent, adding
ipv6.disable_ipv6=1to my bootloader's(grub) default commandline params and everything works now again thanks alot and to @lunaryorn too i appreciate your help
Offline