I have a specific question.
There is an authoritative DNS server on the Internet for one domain examplexx.com with a public IP address 77.77.77.77 (IP addresses and domains are fictitious).
On the other side of the Internet, there is a client with OS win 10.
If I set the IP address of the DNS server manually, everything works correctly, including examplexx.com.
If I set the client to add the DNS IP address of the openwrt server, it does not work.
Authoritative DNS server will not offer recursive DNS service for the internet.
You need to configure upstream DNS servers in dnsmasq forwarder section, not DHCP options.
The DNS server is built on BInd9.
My first thought was that only one DNS should be set for the client, namely 77.77.77.77.
DNS binb will resolve one authoritative query (examplexx.com) and will forward the rest to recursive resolvers.
That's why I also set it in Bind 9
options {
forwarders {
8.8.8.8; // Google Public DNS
8.8.4.4; // Google Public DNS
};
forward only;
allow-query { 66.66.66.0/24; };
};
66.66.66.66 is a subnet that is allowed for forward query
The question is how it works. First, openwrt asks for the public recursive resolver on the examplexx.com domain, and if the answer is not found, then it asks for 77.77.77.77 ?
Or is it the other way around?
I looked through crystal ball that authoritative server will not provide recursive service, not by that single parameter at least. Explanations are in BIND ARM guide.
For me, it is important that the DNS server 77.77.77.77 resolves the query on exampexx.com.
If it solves examplexx.com, then don't have to solve other queries.
See my first post.
When I set it up as you can see in my first post, Bind9 solved recursive queries, but it did not solve exampexx.com.
I understood whats missing, if you want full recursive service via work you need VPN , or read deep in BIND Admin Reference Manual PDF to enable public recursion.
These websites do not exist on the real Internet. I would like to set up a third website, but that one exists on the real internet e.g.
/example.com/77.77.77.77
This website also works, but not on all PCs with Win 10. I want it to work on a company PC where I have access as a user. Examplexxa.com and examplexxb.com work correctly even on a company PC, but example.com does not work. The DNS query is always resolved and directed to the official website.