Namespaces and forwarders - BlueCat Edge - Service Point v4.x.x

BlueCat Edge Deployment Guide

Locale
English
Product name
BlueCat Edge
Version
Service Point v4.x.x

A namespace is a group of one or more DNS forwarders, and can optionally include match and exception domain lists. Each site in BlueCat Edge will have at least one and up to three associated namespaces.

When BlueCat Edge is initially set up, there is one default namespace with 8.8.8.8 set as the forwarder, with no domain lists added. You can create as many namespaces as you like, with a default maximum of three namespaces that can be set. If you require more than three namespaces to be set in your environment, contact BlueCat Customer Care for assistance.

Each namespace is configured with forwarder DNS addresses, and optionally, match list(s) and exception list(s). When you change the DNS forwarders for a namespace, all of the sites that are currently set to use that namespace (without overrides) are updated.
Note: Service Point v3 instances and Service Point v4 instances will now, by default, load balance queries to the forwarders defined within a namespace based on a health check status and load.

Creating a namespace and changing the DNS forwarders

  1. In the top navigation bar, click and select Namespaces.
  2. To add a new namespace, click New or select an existing namespace and click Edit.
  3. Add or edit the name and description.
  4. Select Cisco Umbrella integration to configure the namespace to use the Cisco Umbrella integration. If you select this option, you can also select Encrypt queries using DNS over HTTPS which ensures queries that are routed to Cisco Umbrella are encrypted.
    Attention:
    • Selecting Cisco Umbrella integration displays a message indicating that the two applicable Cisco Umbrella IP addresses have been added to the Forwarders field.
    • Selecting Encrypt queries using DNS over HTTPS disables the Forwarder field and adds the URL that is used for encrypting the queries that are routed to Cisco Umbrella.
  5. Select Set maximum TTL to override the TTL of the response. In the Maximum TTL field, enter the TTL of the response in seconds. The value must be between 0 and 2147483647 inclusively.
  6. Select EDNS Client Subnet to configure the EDNS Client Subnet option. The EDNS Client Subnet option allows the namespace to forward the subnet information in DNS queries to downstream servers for geographical evaluation. In the IPv4 Source Prefix field, enter a number between 0-24 of the IPv4 prefix of the subnet. In the IPv6 Source Prefix field, enter a number between 0-56 of the IPv6 prefix of the subnet.

    If you select Override, the namespace applies the specified IPv4 or IPv6 prefix as the ECS value, overriding any existing ECS value of incoming DNS queries. On the response, the inbound ECS value will be restored.

    If Override is not selected, the existing ECS value is forwarded in queries and responses if the value is present on the incoming query. For queries that do not contain an ECS value, one will be added using the specified IPv4 Source Prefix or IPv6 Source Prefix. On the response, the inbound ECS value will be restored.

    If you do not configure the EDNS Client Subnet fields, the ECS value is removed from incoming DNS queries before they are forwarded, but is restored on the response.

  7. The Serve Expired Queries from cache option allows you to get answers from cache expired responses when responses would be SERVFAIL, or answers cannot be retrieved and generate SERVFAIL for various reasons, such as timeout. Select one of the following options:
    • Do not serve expired queries from cache
    • Serve expired queries from cache for a period of 1 hour from time of expiry (Default)
    • Serve expired queries from cache for a period of 24 hours from time of expiry
  8. For Response Codes, enter one or more DNS query response codes. The DNS query response code can be one of the following:
    • NOERROR
    • FORMERR
    • SERVFAIL
    • NXDOMAIN
    • NOTIMP
    • REFUSED
    • YXDOMAIN
    • YXRRSET
    • NXRRSET
    • NOTAUTH
    • NOTZONE
    • DSOTYPENI
    • BADVERS
    • BADSIG
    • BADKEY
    • BADTIME
    • BADMODE
    • BADNAME
    • BADALG
    • BADTRUNC
    • BADCOOKIE

    If any of the configured DNS query responses are returned to this namespace, the next namespace within a site will attempt to resolve the DNS queries. By default, NXDOMAIN is configured.

    Note: This only applies to sites configured with more than one namespace.
  9. For Forwarders, type one or more remote DNS server IPv4 or IPv6 addresses. Optionally, you can define a custom port number or forwarders that listen on ports other than the standard DNS port. For example, 1.2.3.4:123 for IPv4 addresses or [2001:db8:1111:2222:3333:4444:5555:6666:7777]:123 or IPv6 addresses.
    Attention:
    • If you do not define a port, the BlueCat Edge Service Point forwards all queries on destination port 53.
    • If you modify the forwarders of an existing namespace, the cached answer to a query might differ from what the newly configured forwarder would return. BlueCat recommends clearing the cache of the site once a forwarder has been modified to ensure that the DNS resolver service uses the answer from the updated forwarder. For more information on clearing the cache of a site, refer to Clearing the cache of DNS resolver service.
    As you enter addresses, they appear below the Forwarders field. You can enter multiple addresses separated by commas. To remove an address, click the blue X beside it.
    Note:
    • You must only use IPv4 or IPv6 destinations supported by the service point network connection. For example, if you configure the service point using only an IPv4 address, the forwarders must only be IPv4 addresses.
    • If you configure multiple forwarders within a namespace, queries are load balanced based on the following criteria:
      • The server with the least number of queries 'in the air' is selected.
      • In the event of a tie, the server with the lowest measured latency is selected. The lowest measured latency is calculated over an average on the last 128 queries answered by that server.
    • BlueCat Edge performs a health check on all configured forwarders in a namespace. If a server is unreachable, it is skipped and the next forwarder is used.
  10. Add domain lists (optional):
    • Under Match List, enter the domain list(s) you want this forwarder to be used for. If there is no match list, then this namespace will be used for all queries, except any exceptions.
    • Under Exception List, add any domain list(s) that contain exceptions, if applicable.
    In total, you can add up to 20 domain lists, each with a maximum of 100,000 domains. Also, there is a 100 MB limit to the combined size of all domain lists associated with all of the namespaces.
    • If match lists are added, the namespace applies to queries matching the domains in the list.
    • If a query is in both the match list and the exception list, the exception applies.
    • If no match lists are added, the namespace applies to all queries other than those in exception lists.
  11. Add IP lists (optional):
    • Under Match List, enter the IP list(s) you want this forwarder to be used for. If there is no match list, then this namespace will be used for all queries, except any exceptions.
    • Under Exception List, add any IP list(s) that contain exceptions, if applicable.
  12. Click Save.
  13. To set namespaces as active default forwarders, click . You can have up to three active default namespaces.
  14. To delete a namespace, select it and click Delete. If the namespace is active and associated with one or more sites, you can't delete the namespace unless you deactivate it.

Setting and ordering the default namespaces

When you create a new site, it inherits the namespaces currently set as defaults. You can set and order the default namespaces in the Set Default Namespaces dialog.
Note:
  • At least one default namespace must be assigned to a site.
  • You can have a maximum of three default namespaces.
  • The order of default namespaces set in the Namespaces page is the order inherited by a newly created site.
  • Changes to default namespaces will only affect newly created sites.
To set and order the default namespaces:
  1. In the top navigation bar, click and select Namespaces.
  2. Click .

  3. Type the name of the namespace to be added as a default.
  4. Once you have all desired namespaces added, you can reorder the namespaces using drag and drop.
  5. Click SET DEFAULTS.

Namespaces and sites

When you create a new site, it inherits the namespaces currently set as defaults. You can further customize a site’s namespace configuration and select existing namespaces (default or non-default namespaces).
Note:
  • The order in which you add a namespace to a site determines its relative order to the other namespaces attached to the site. Every new namespace attached to a site is added last in the site's namespace configuration.
  • You can attach up to three namespaces onto a site and each site must have at least one namespace.
  • You can enter overrides that replace the forwarders of any namespace.
  • To ensure optimal latency in sites using more than three namespaces, BlueCat recommends using Domain Lists to configure appropriate routing criteria.
All of the service points associated with a site receive the namespace configuration as part of a scheduled cycle, and use the namespaces in the order that they are attached to that site. Resolution follows these rules:
  • When more than one namespace is configured for a site, BlueCat Edge attempts resolution against all matching namespaces in the order they're defined, until a response other than NXDOMAIN is returned.
    • When any response other than NXDOMAIN, including SRVFAIL, is returned, no further namespaces are evaluated.
    • If the resolution returns NXDOMAIN, continue with the next namespace.
  • If all of the namespaces are evaluated and none return a non-NXDOMAIN response, the last namespace's NXDOMAIN is returned.
  • If the query cycles through all of the selected Namespaces and no match is found because the query doesn't match the domain list on any namespace, or is included in an exception list, then a synthetic NXDOMAIN response is returned.
Attention: Some Namespace features might not be applied as expected on service points within Sites that are running an older service point version. BlueCat recommends running the latest service point version to ensure that all Namespace features function as expected.

Namespaces and policies

BlueCat Edge evaluates policies first, then namespaces. Consider the following example:
  1. A policy is set up to redirect all queries from a range of source IPs to a redirect target of google.com.
  2. None of the configured namespaces include google.com on any match list, or all of the namespaces DO include google.com on an exception list.
  3. One of the clients in the IP range affected by the redirect policy makes a query, which is redirected to google.com.
  4. Namespaces are evaluated, checking whether google.com can be resolved, but it's not on any match list, or it's on an exception list.
  5. An NXDOMAIN response is returned to the client, with a policy action of Block.