• DrayOS 4, imported, lan_dns, dns_forwarding, wan_traffic, port_mirroring, private_dns, conditional_dns_forwarding

Forward DNS Queries to a Private DNS Server (DrayOS4)

To setup Conditional DNS Forwarding, go to Applications >> LAN DNS / DNS Forwarding, and click on an Index number to add/edit a profile:

  1. Go to Conditional DNS Forwarding tab.
  2. Enable this profile.
  3. Enter Profile name
  4. Enter the Domain Name you would like to forward, wildcard is supported.
  5. Enter the IP address of the private DNS server at DNS Server IP Address.
  6. Click OK to save the profile.
a screenshot of DrayOS DNS forwarding settings

To verify this function, we use the LAN Port Mirror to copy the WAN traffic. From the captured packets, we can see when a LAN client sends DNS query for “www.example.com” to a public DNS server, the request will be forwarded to the DNS server at IP “100.100.100.100”.

a screenshot of wireshark capturing DNS packets