DNS Issues (NXDOMAIN)

Hi, My internet provider has 2 DNS 1.1.1.1 and 10.2.2.2 . My problem is when I want to access some FTP websites hosted by my ISP. I am getting "server can't find http://aaa..net/: NXDOMAIN"
But when I set DNS from Automatic(DHCP) to manual IPv4 in Windows, I can access the websites. I have also set DNS to WAN in OpenWrt.
I am a complete beginner. I could not find any solution in the forum or Google. Any help will be greatly appreciated

10.2.2.2 is a private IP address inside the ISP. 1.1.1.1 is a public DNS server which may not know about private services, and in any case should not return private IPs.

You can test this with nslookup <name> 10.2.2.2 versus nslookup <name> 1.1.1.1 Specifying the server IP causes the request to always go to that server regardless of other DNS servers configured.

If that is the problem you can add a domain option to the dnsmasq configuration so that requests for the private domain are always sent to the private server.

2 Likes