Skip to content

Add a DNS host entry

You can resolve requests for specific host or domain names using DNS host entries. If the host requested by the user matches the DNS host entry, the device resolves the query using the IP address specified. This provides faster resolution and reduces queries to the authoritative DNS server.

To add a DNS host entry, do as follows:

  1. Go to Network > DNS.
  2. Scroll to DNS host entry and click Add.
  3. Enter a name.
  4. For Host/domain name, enter an FQDN for the host or domain.
  5. Under Entry type, select an entry type, then do as follows:

    • Manual: Under IP address, enter an IP address for the host.
    • Interface IP: Select an interface to configure as the host.
  6. Under Time to live (seconds), enter an interval at which a DNS lookup for the domain occurs.

    Time-to-live (TTL) determines how long it takes for a DNS record change to take effect. The domain's DNS record is cached until the next lookup. The firewall performs DNS lookups for domains that resolve to localhost at the default interval rather than the TTL value in the DNS record.

    To change the default interval, see dns.

  7. Under Weight (1-255), enter a value for load balancing.

    The firewall distributes traffic across the links in proportion to the weights assigned to individual links. The weight determines how much traffic passes through a specific link relative to the other links listed on Network > WAN link manager.

  8. (Optional) To publish the DNS host entry on the WAN, select Publish on WAN.

  9. (Optional) To allow the IP address to be resolved to its designated domain name, select Add reverse DNS lookup for this host entry.

    The following restrictions apply to reverse DNS lookup:

    • If there are multiple hosts resolving to the same IP address, reverse DNS lookup can be configured for only one of the IP addresses.
    • Only A, AAAA, and PTR type DNS records are supported.
    • Address (A) records point a hostname to an IP address and return a 32-bit IPv4 address.
    • AAAA records point a hostname to an IP address and return a 128-bit IPv6 address.
    • Pointer records (PTR) are used for reverse lookups. They map the IP address to a hostname.
    • Maximum DNS entries supported is 1024.
    • If the device interface is used as a DNS in the client system, a query is sent to the configured DNS servers prior to querying the ROOT severs.
  10. Click Save.

Upgrading to SFOS 23.0 and later

In 23.0 and later, DNS host entries require a name. So, when you upgrade to these versions, the firewall automatically assigns names to existing DNS host entries.

The automatically generated name contains up to 55 characters from the domain name, followed by an underscore and eight characters.

Example
dnshost1.sophosexample.net_a1bd2831