You are not logged in.
Solved: the issue is that the ISP was blocking wherever I had in my resolv.conf 8.8.8.8 1.1.1.1 so once I tried their dns everythig worked fine.
if you want to keep using your favorite dns it is super easy to do with utils like dnscrypt-proxy
Please follow this guide: https://wiki.archlinux.org/title/Dnscrypt-proxy
My mobile hotspot works perfect in another windows device but when I try to use arch on my laptop to connect to it it doesn't work
I'm using NetworkManager, and I set up the connection with nmtui, in my phone I can see that yes my laptop is connected to the hotspot
but when I try to test the connection and ping google.com I get this error
"ping: google.com: Temporary failure in name resolution"
I don't know what's wrong or where the issue could be
Last edited by xlogs (2022-04-19 17:10:42)
Offline
Have you followed the tethering wiki page? If yes, describe your configuration in more detail.
Offline
No, I have not followed the tethering because I just want to use the hotspot with no wires.
I have tried something interesting and it worked
on my phone I kept the hotspot ON then instead of taking data from my carrier I switched the wifi on so that my phones takes data from my home router
while my laptop was connected the my phone's hotspot the internet worked
so I thought maybe there's something going on with my carrier, but then when I try the hotspot on my other device running windows it works just fine.
So the issue is coming from my arch
I'm not sure why it is not able to resolve when connecting from arch
Offline
perfect in another windows device but when I try to use arch on my laptop
I kept the hotspot ON then instead of taking data from my carrier I switched the wifi on so that my phones takes data from my home router
3rd link below.
Other than that, this looks very much like a DNS issue.
ip a; ip r;
cat /etc/resolv.conf
stat /etc/resolv.conf
ps aux | grep resolv
dig google.com
dig @8.8.8.8 google.com
ping 8.8.8.8
Offline
Thank you so much Seth for your help, here are the results of what you have showed me
$ ip a; ip r;
yes I do have an ip and everything looks fine
this is my /etc/resolv.conf
# Generated by NetworkManager
options timeout:1
options single-request
nameserver 1.1.1.1
nameserver 1.0.0.1
nameserver 8.8.8.8
nameserver 8.8.4.4
$ stat /etc/resolv.conf
I see all fine, correct owner and the right permisions
File: /etc/resolv.conf
Size: 148 Blocks: 8 IO Block: 4096 regular file
Device: 0,33 Inode: 183238 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-03-06 22:59:31.333342390 +0100
Modify: 2022-03-06 22:59:31.333342390 +0100
Change: 2022-03-06 23:00:23.744683490 +0100
Birth: 2022-03-06 22:59:31.333342390 +0100
$ ps aux | grep resolv
here I don't see any resolv running, grep only returns the 'grep resolv'
amatera+ 110091 0.0 0.0 6672 2628 pts/1 S+ 15:30 0:00 grep --color=auto --exclude-dir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.svn --exclude-dir=.idea --exclude-dir=.tox resolv
$ dig google.com
; <<>> DiG 9.18.1 <<>> google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
$ dig @8.8.8.8 google.com
;; connection timed out; no servers could be reached
$ dig @1.1.1.1 google.com
;; connection timed out; no servers could be reached
now the interesting part is
ping 8.8.8.8 or 1.1.1.1 is working !!
any idea what should I do to find where the problem is ?
Last edited by xlogs (2022-04-19 15:40:25)
Offline
I'd guess your carrier blocks DNS servers except its own. Try to set your laptop to use the dns servers the phone provides via dhcp or maybe try encrypted dns with doh, dot or dnscrypt. (DoH may be the only one to bypass the blocks)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
I'd guess your carrier blocks DNS servers except its own. Try to set your laptop to use the dns servers the phone provides via dhcp or maybe try encrypted dns with doh, dot or dnscrypt. (DoH may be the only one to bypass the blocks)
Thank you so much that was the issue. the stupid ISP that I'm using is blocking 1.1.1.1 and also 8.8.8.8
I have changed to their dns and everthing is working now
I will try to find a way to dnscrypt as you said and then I'll update the post to [solved]
thank you again
Offline