If that works, it means BIND is working and configured correctly (at least for that one record in that one zone, you may have other problems).
So, if BIND is working and configured correctly for that one record in that one zone, you need to figure out why requests from outside are timing out. I’m not sure how to troubleshoot that, as it’d be a weird problem (it’d mean you changed where BIND is listening maybe?). Let’s just check this and then go from there.
Using domain server:
Name: localhost
Address: 127.0.0.1#53
Aliases:
harshvardhansolanki.com has address 140.245.16.10
harshvardhansolanki.com mail is handled by 10 jaws-in1.mailshark.com.au.
harshvardhansolanki.com mail is handled by 20 mx2.zoho.in.harshvardhansolanki.com.
harshvardhansolanki.com mail is handled by 10 jaws-in2.mailshark.com.au.
# host harshvardhansolanki.com 140.245.16.10
Using domain server:
Name: 140.245.16.10
Address: 140.245.16.10#53
Aliases:
harshvardhansolanki.com has address 140.245.16.10
harshvardhansolanki.com mail is handled by 10 jaws-in2.mailshark.com.au.
harshvardhansolanki.com mail is handled by 20 mx2.zoho.in.harshvardhansolanki.com.
harshvardhansolanki.com mail is handled by 10 jaws-in1.mailshark.com.au.
So, you did something that fixed external users being able to query your DNS server.
DNS looks good, at least for the records I’ve looked at. Next problem, I guess. Make a new topic for your website redirect problem.
I’m pretty sure this isn’t a good idea. This is simply the name of the server the VPS is using for DNS and not related. They are probably pushed out via DHCP. Changing to the local DNS when it doesn’t seem to be working would make things worse.