System without DNS and can't changeable

thnak u,
I was able to fix the dns, nameserver 192.168.1.1 but still not connecting to the internet, very strange

Make sure your browser uses the correct DNS.

No problem in the browser, the problem is more fundamental

> ping google.com
>
>
>

and

> ping 192.168.1.1
> PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
> 64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.504 ms

This has been seen as a result of using vpn and rebooting without disconnecting the vpn - in some instances - even disconnecting vpn may leave /etc/resolv.conf dysfunctional.

Using systemd-resolved instead of resolvconf may help resolve the issue.

Besides that - you will need to retrace your steps - as telling you what is wrong is like searching for a neddle in haystack.

  • Have you been using vpn?
  • Have you been changing DNS as part of some random DNS guide found on the interweb?
  • Have you otherwise been fiddling with network e.g. enable/disable dhcp?
  • Have you been changing your IP from dhcp to static?

Some basic troubleshooting steps

3 Likes

" Is the gateway correct: → IP4.GATEWAY? "

No

IP4.GATEWAY:          --

Gateway connection failed

ping -c 3 IP4.GATEWAY
>
>
>

Name server connection failed

ping -c 3 IP4.DNS
>
>
>

routing check faild olso

tracepath 8.8.8.8
> 1?: [LOCALEHOST]         pmtu 1500
> 1: no reply
> 2: no reply
> 3: no reply

dns check

drill nix.dk
> Error: error sending query: Could not send or receive, because of network error

This thread might be useful:

More specifically, the accepted answer:

Also, look here:

More specifically, the section about Manually Setting DNS Servers.

If nothing there mentioned helps, please provide the output of::

ls /etc/NetworkManager/conf.d

Did you manually set your IP to the 1.1 suffix? The ping time might indicate it’s localhost.

Could you remember anything what you’ve changed?

give more context, not just what you think is minimally needed

systemctl status NetworkManager

nmcli device show | grep IP4

there is more than one line with IP4.GATEWAY:
(when you have two interfaces as is often the case - Wifi and Ethernet)
with the above command, filtered through grep
you might have overlooked one

sorry about images

I solved the dns problem and now I set the dns correctly, but I still don’t have an internet connection

nothing

This :point_up_2: doesn’t look normal to me. What’s the output of: :point_down:

route

And

ip a

I’m now testing, I’m my DNS, but the problem is not solved.

1.1.1.1
192.168.1.1
.
.
.

I was in compulsory military service, I live in Iran, when I came back home, I found that the government restricted the whole internet, and I wanted to set up a vpn, so I installed v2ray.
I don’t know what happened that after the reboot my dns was automatically changed to ::1 and I manually changed it again to 192.168.1.1 and my problem was solved, but after some time manually changing the dns did not solve the problem and I could not connect to the Internet.

posting pictures is discouraged for multiple reasons
one important of which is that they cannot be parsed
(no copy/paste, for example …)

what I see in the output of
systemctl status NetworkManager
is not referring to any of your physically present devices
(I can’t know for sure because you never posted relevant hardware information)

what I see is referring to some (multiple) virtual ethernet devices (vethxxxx…)

that definitely does not look right and needs explaining - you should know
… the remnants of a vpn perhaps - or docker something (because of the IP range)

not enough information …


I just saw that you indeed had installed and used a vpn

perhaps I can find out something about it - don’t count on it

this, and/or it’s rules, where left behind, causing your troubles, it seems

I agree, and sadly this is not (yet) something I’m familiar with. I almost think the extra routes aren’t deleted on disconnection, because there are a lot of routes which all have similar IP addresses…


I have no problem on other devices using vpn. So I don’t think my problem is related to isp
There is also internet without using vpn, but you can only connect to Iranian sites. This type of internet does not exist for me

so your problem seems to actually be
that the vpn you use to connect to the real internet ™
is not working

I’m not familiar with how Iran closes you in and about the methods to circumvent that.
Sorry!

Is there a way I can reset network manager to default settings? Or should I install it again (of course without internet)?

Just don’t respond until he uploads preformatted text. This half-assed info should be discouraged somehow.

that is one way to make “them” aware
but “they” might not get the hint - so I rather shortly explain …