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
nameserver 192.168.0.1

My /etc/hosts is this:

127.0.0.1       localhost
127.0.1.1       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 @192.168.0.1 work? Does dig asd.org @1.1.1.1 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 192.168.0.1 if that helps:

192.168.0.1 dev wlo1 src 192.168.0.2 uid 1000
    cache

Most probably slow DNS.

1 Like