I am trying to allow access to our NAS from inside and outside our SOHO network. I have setup a public IP with DDNS, setup the NAT so it let through :80 and :443, and I can access my NAS from outside the network.
However, my router (a Huawei H122-373) doesn't support NAT hairpinning, so all requests made from within the network are dropped. I wanted to try this answer by setting up a DNS in my LAN. However, it won't work with non-recursive DNS clients as they will first ask the "reals" DNS providers.
Here is my setup :
My DNS provider:
my-office.company.com IN A 88.99.11.22 # DDNS to my public IP
My LAN DNS
my-office.company.com IN A 192.168.1.2 # My NAS
I tried setting up NS records from my DNS provide toward my LAN DNS and redirect :53 to my LAN DNS, but again, the clients within the network can't contact the LAN DNS.
dig my-office.company.comworks fine, butdig +norecurse my-office.company.comdoes not. I might be missing something. – Hugal31 Aug 29 '22 at 15:41