[USG Flex H] - Resolve A Record only from selected interfaces
Master Member
Hello,
As per request:
I've configured an A Record DNS entry:
xyz.no-ip.org —> 192.168.0.1
This host is an DDNS that, externally, resolve with my external WAN IP.
Now, internally, when I try to resolve xyz.no-ip.org, the gateway return to me 192.168.0.1 as per A Record entry, externally resolve with the WAN IP correctly.
This happens from all interfaces that I've defined.
There is a possibility to resolve the DDNS hostname with the real IP only from selected interfaces?
Example:
- VLAN 10 (subnet 192.168.10.0/24) —> 192.168.0.1
- VLAN 20 (subnet 192.168.20.0/24) —> 192.168.0.1
- VLAN 100 (subnet 192.168.100.0/24) —> 84.87.XXX.XXX
Comments
-
Hi @Maverick87
Thank you for the detailed write-up and the clear example — it's a well thought-out scenario.
We've discussed this internally, and at this time there are no plans to add native per-interface/VLAN-aware behavior to the DNS Server module (i.e., having a single A Record entry resolve differently depending on which VLAN/subnet the query originates from). The current DNS Server applies A Record overrides globally across all interfaces that use it as their DNS server, and this isn't on the roadmap for the near term.
Suggested workaround:
For the VLAN(s) where you want clients to resolve to the real external IP (e.g., VLAN 100 in your example), you can combine a DHCP option change with a Security Policy rule:
DHCP Option 6 (DNS Server): In that VLAN's DHCP scope, set the DNS server to an external/public resolver (e.g., 8.8.8.8) instead of the gateway's own IP.
Security Policy: Add a rule blocking DNS queries from that VLAN to the gateway itself — From: VLAN100, To: ZyWALL, Service: DNS, Action: Deny.The second step is important: without it, clients could still reach the gateway's local DNS Server directly (bypassing their assigned DHCP DNS setting) and get the A Record override. Blocking DNS to the ZyWALL from that VLAN forces clients to use the external DNS server, which resolves xyz.no-ip.org to the real WAN IP.
VLAN 10 and VLAN 20 would keep the gateway as their DHCP-assigned DNS server (no policy change needed), so they'd continue getting the A Record override (192.168.0.1) as before.
We appreciate you taking the time to submit this.
Zyxel Melen0 -
or run your own bind
0 -
Hello @Zyxel_Melen,
thank you for your suggestion… yes obviously in this case can works as expected but the VLAN resolve via a public DNS, and this implicates that I'm unable to resolve some other A Record DNS entry locally.
But this is the game of balance, it has to tip somewhere.
Thank you so much, I hope this request will be taken into consideration soon.
0
Categories
- All Categories
- 442 Beta Program
- 3.1K Nebula
- 237 Nebula Ideas
- 6.8K Security
- 746 USG FLEX H Series
- 377 Security Ideas
- 1.8K Switch
- 87 Switch Ideas
- 1.5K Wireless
- 58 Wireless Ideas
- 7.2K Consumer Product
- 319 Service & License
- 512 News and Release
- 99 Security Advisories
- 31 Education Center
- 10 [Campaign] Zyxel Network Detective
- 5.3K FAQ
- 34 Documents
- 91 About Community
- 119 Security Highlight
Zyxel Employee
Guru Member