Nslookup works but ping doesn't

I’m using Manjaro KDE. I don’t know why or when this started happening but I cannot connect to any website. I can ping IP addresses but not hostnames. But nslookup works. The weird thing is, it starts working when I reboot my router through the control panel but stops working if I disconnect and connect again. All other devices connected to the same network work just fine. My /etc/resolv.conf is this:

# Generated by resolvconf

My /etc/hosts is this:       localhost       sintan-pc
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

EDIT: As I was writing this question, it suddenly started working. I’ll keep this in case it starts happening again soon.
EDIT2: Upon reconnection, when I ping any hostname, the message PING hostname(ip_address) 56(84) bytes of data appears but it takes a while before receiving any replies. But once the replies start coming, it keeps working. Might this be an issue with my router?

Does ping asd.org work? Does dig asd.org work? Does dig asd.org @ work? Does dig asd.org @ work?

All of these currently work, kindly see my edits.

Admittedly, the ping feels a lot slower. The response times are as expected, but it takes a while before getting the first reply.
Here’s my output of ip route get if that helps: dev wlo1 src uid 1000

Most probably slow DNS.

1 Like