It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

This Firmware Version Is End-Of-Support

Documentation for this product is no longer updated. Please see End-of-Support for CloudGen Firewall Firmware for further information on our EoS policy.

How to Configure the DNS Caching Service for Queries of Forward and Stub Zones

  • Last updated on

The DNS caching service can also serve as a source for delivering information only about the authoritative name servers for a queried zone. The zone at this server must be obtained from another DNS server, the default primary DNS, that hosts the zone. A secondary stub zone requires a minimal zone transfer to obtain NS entries. Without this, the zone will not forward. This is important if TCP 53 or the zone transfer itself is blocked.

Step 1. Configure DNS Settings

Do not install both the forwarding/caching DNS (bdns) service and a running DNS service. The forwarding/caching DNS (bdns) configuration will collide with the DNS service.
  1. Go to CONFIGURATION > Configuration Tree > Box > Administrative Settings.  
  2. In the left menu, click DNS Settings.
  3. From the Configuration Mode menu, select Switch to Advanced View.
  4. Click Lock.
  5. Enter the Box DNS Domain that the CloudGen Firewall belongs to.
  6. In case there are entries in the DNS Server IP table, delete all entries.
  7. From the DNS Query Rotation list, select no.

Step 2. Configure the Caching DNS Service

Configure the Caching DNS Service for Queries of Forward Zones
  1. In the left menu, click Caching DNS Service.
  2. From the Run Forwarding/Caching DNS list, select yes.
  3. From the Run DNS Forwarder list, select yes.

  4. From the Query Source Address list, select which IP address to use as source address when querying the DNS or primary DNS servers. You can select one of the following options:
    • Wildcard (default)  IP selection is accounted for dynamically according to definitions in the routing table.
    • VIP (managed firewalls only) – Uses the firewall's VIP IP address.
    • MIP – Uses the system’s management IP address, which is the Main Box IP.
    • Other  Select this check box to explicitly specify an IPv4 or IPv6 address.
  5. In the DNS Query ACL table, add the single IPv4 / IPv6 addresses or netmasks that can access the DNS service via an app redirect access rule.
    dns_forwarding_01.png

  6. If necessary, enable Log DNS Queries to log every DNS query.
  7. In the DNS Forwarding table:
    1. Click + and enter the Name of the domain the forward zone belongs to.
    2. Click OK. The DNS Forwarding configuration window opens.
    3. In the DNS Forwarder IP field, enter the IP address of the DNS server(s) that the DNS service queries for the domain.
      dns_fwd.png
    4. Click OK.
  8. Click Send Changes and Activate.
Configure the Caching DNS Service for Queries of Forwarding Stub Zones 
  1. In the left menu, click Caching DNS Service.
  2. From the Run Forwarding/Caching DNS list, select yes.

  3. From the Run Secondary DNS list, select yes.

  4. From the Query Source Address list, select which IP address to use as source address when querying the DNS or primary DNS servers. You can select one of the following options:
    • Wildcard (default) IP selection is accounted for dynamically according to definitions in the routing table.
    • VIP (managed firewalls only) – Uses the firewall's VIP IP address.
    • MIP – Uses the system’s management IP address, which is the Main Box IP.
    • Other  Select this check box to explicitly specify an IPv4 or IPv6 address.
  5. In the DNS Query ACL table, add the single IPv4 / IPv6 addresses or netmasks that can access the DNS service via an app redirect access rule.

  6. If necessary, enable Log DNS Queries to log every DNS query.
  7. Click + to add all Default Primary DNS servers to the table.
  8. Click + to add a DNS Secondary Zone entry to serve as the stub zone.
    dns_forward_stub_zone_caching_dns_setting_01.png
  9. The DNS Secondary Zone window opens. Enter a name for the stub zone.
  10. Click OK.
  11. From the Active Zone list, select yes.
  12. From the Zone Type list, select Forward Lookup.
  13. From the Replication Mode list, select QueryForward.
  14. Click OK.
    dns_forward_stub_zone_secondary_zone_settings_01.png
  15. Click Send Changes and Activate.