In this section:
The SBC Core supports domain name resolution through external DNS servers. Each IP address context defines one or more DNS server groups. Each DNS server group contains up to eight DNS servers. The zone and/or SIP Trunk Group indicates the DNS Server Group to use for the requests, which require a DNS resolution. The Zone of a particular Address Context is associated with the DNS Group of another Address Context. For example, the DNS Group (D1) is configured in the Address Context (AC1). The SBC supports associating Zone of Address Context (AC2) with DNS Group (D1) of the Address Context (AC1). The ipInterfaceGroup
( that the DNS group uses) is restricted to the same addressContext
as the DNS Group. When configuring the DNS group, the SBC associates the IP Interface Group of the same Address Context only.
Within a DNS server group, each server has both a priority and a weight. The SBC sends the requests to the server with highest priority (lower value) first. It uses the servers with lower priority when all higher priority servers are marked unavailable due to previous timeouts. If multiple servers of the same priority exist, requests are load-balanced across servers in proportion to their weights.
The SBC supports the following functionality:
The SBC uses the DNS procedures RFC3263 to resolve a SIP Uniform Resource Identifier (URI) into the IP address, port, and transport protocol of the next hop to contact.
When an SIP endpoint (such as UAC) sends a request to a resource identified by a SIP or Secure SIP (SIPS) URI, it resolves that URI into the IP address, port, and transport protocol. This URI either identifies the desired resource where the request is targeted the URI in the Request-URI), or it identifies an intermediate hop towards that resource (the URI in the Route header).
For a SIP call with an unknown transport protocol, or if the URI cannot derive the transport protocol, the SIP endpoint performs a Naming Authority Pointer (NAPTR) query for the domain name in the URI. After the transport protocol is found from the records returned by the NAPTR query, the client uses the Location of Services (SRV) query on the protocol to target host FQDN and port number. Finally, the client performs an Address (A) record query to resolve the domain names returned by the SRV query to obtain the IP address of the server.
For network configurations where SIP Server domain resolution is not available from external DNS servers, the SBC supports a local DNS cache. In this scenario, the SBC performs DNS queries against either external DNS servers or the local cache. The following DNS record types can be configured in the local cache:
The SBC supports all DNS queries over UDP from the DNS client with no option to configure the transport protocol for DNS servers. Additionally, the SBC supports DNS servers over TCP using the transportProtocol
configuration object with two options: udp
or tcp
. The default value is udp
. The flag tcpFallback
supports TCP fallback when the configured protocol is UDP. The default value is disabled
.
The DNS Group Transport Protocol option allows the user to choose either UDP or TCP transport protocol for a DNS query for the associated DNS Group.
The figure below depicts DNS support when the transport protocol for the DNS server is configured as TCP.
The SBC sends DNS queries as UDP messages to serve DNS requests. UDP messages are preferred over TCP messages as TCP connections consume computing resources for each connection. DNS servers get numerous connections per second and using TCP can add too much overhead. However, when the response data is received with TC flag, then DNS Client uses TCP as transport protocol to resolve the request.
Enable the tcpFallback
flag per DNS server to notify the DNS client to support TCP fallback, when the DNS response on the UDP is received with TC flag.
When enabled, the tcpFallback
and the DNS client receive the TC flag in the response over UDP, and the DNS Client sends the same query again over TCP to the same server.
The figure below depicts TCP Fallback when the initial transport protocol is UDP and tcpFallback
flag is enabled for that particular DNS server:
To support backward compatibility, disable the tcpFallback
flag. The default value is disabled. The DNS over TCP works for both IPv4 and IPv6 transport protocol based on the configured address of the DNS server.
The SBC supports, by default, 1,300 Maximum Transmission Unit (MTU) bytes, and the MTU size used by the SBC is configurable. If the initial INVITE message size exceeds the default MTU value, the SBC sends the data over the TCP transport protocol. The TCP transport protocol is used if it is allowed by the transport profile irrespective of its preference order.
The DNS client maintains the TCP connections in the TCP Pool in order to enable the DNS client to reuse those TCP connections to deliver the DNS query to the same server.Thus, the DNS client avoids opening TCP connection each time the DNS query comes for the same server. However, the DNS client removes the TCP connections periodically from the TCP Pool which are least recently used and their ideal timer expires.
The SBC supports the following functionalities:
The SBC clears a DNS cache for:
The SBC supports the following FQDN scenarios:
SBC overrides the TTL value with a new value if the matching FQDN and record type is found in the given DNS Group. If that FQDN value is not matching, it returns an error.
The SBC performs a manual query when the cache receives updates of the IP address updates, TTL and port in response to the query sent to the server.. The SBC updates the response if the record is already present; otherwise, it creates a new entry.
Two types of manual queries:
Manual queries which do not include the server: The SBC sends the query to the first server in the list. If the SBC does not receive the response from that server, it continues to the next server, and so on, until it receives the response.
If the SBC does not receive a response to the DNS query, it displays an error after a configurable timeout. The manual DNS query supports resending a request over TCP if the response is received with the TC (truncation flag) set, and if TCP Fallback is enabled
The SBC raises an alarm when the server is blacklisted.
The SBC blacklists the server when one of the following conditions exist:
In the above scenarios, the SBC generates the sonusSbxDnsServerBlacklistedNotification alarm. The alarm is cleared by the sonusSbxDnsServerRecoveredNotification alarm.
For more information, refer to Domain Name Server (DNS) Alarms.
The SBC supports the following SRV functionality:
hostPort
configuration under ipPeer pathCheck
option is updated to 5060
. To enable this feature, set hostPort
under ipPeer pathCheck
option to 0
.When the pathCheck
profile is attached to an FQDN based IP peer with hostPort
set to 0
, the pathCheck
task performs SRV lookup to resolve the port numbers. The resolved port numbers are used to send OPTIONS ping to the IP peer.
pathCheck
profile is attached to an FQDN based IP peer configured with a hostPort
(other than the value 0
), the pathCheck
task does not perform SRV lookup. It uses the configured port to send OPTIONS ping to the IP peer.The pathCheck
task processes DNS SRV response as follows:
pathCheck
task sorts SRV records based on weight and priority and saves all the records. The pathCheck
task then continues through all the SRV records in the same order after the sorting to perform A/AAAA query on each SRV record.The pathCheck
task processes DNS A/AAAA response for each SRV record as follows:
For example, the pathCheck
task performs an SRV query for a given FQDN target, and two SRV records are returned: SRV1 and SRV2. The records are in the same order, after sorting, based on the weight and priority.
The SBC then sends an A or AAAA query for SRV1, followed by SRV2. Assume that the SRV query resulted in two A records.
At this point, there are total of two SRV records with two A records each. The pathCheck
task now sends an OPTIONS ping to all of the IP Address/Port combinations (A1:SRV1, A2:SRV1, A3:SRV2, and A4:SRV2).
The pathCheck
task maintains overall status of an FQDN-based Peer just like it does for the IP based Peer: It tracks and updates status of the FQDN peer using the OPTIONS ping messages sent to all learned SRV record combinations. When the pathCheck
task tries the multiple IP Address/Port combinations:
If a DNS query for an FQDN target fails (error, timeout, or no answer records), the pathCheck
task retries the DNS query after the configured retry duration in the pathCheck
profile.
If an FQDN peer to which the pathCheck
profile is attached to is deleted, the pathCheck
task clears all associated saved DNS records.
If an FQDN peer to which the pathCheck
profile is attached to is modified with a new FQDN, the pathCheck
task clears the associated DNS records for the earlier FQDN and performs a fresh DNS query using the newly updated FQDN.
If the SBC receives an error response (except for 0) toward the DNS query, it raises an alarm to notify the user to resolve the IP address of the far end carrier.
The SBC uses the DNS Server IP as a key in the alarm.
If the alarm is raised for the current RCODE error, it displays the following fields:
If the SBC observes the RCODE error within the configured monitor interval, then the alarms displays only the DNS server IP and DNS Zone name.
Even though the DNS server observes multiple RCODE errors, it generates a single alarm for that DNS server. In other words, the SBC does not raise an alarm for each of the RCODE errors that the DNS server observes ,and subsequently limits, the rate of alarms generated for a given server.
The SBC generates INFO logs which include Server IP, FQDN, Record Type and RCODE values for every RCODE error that it encounters.
View the INFO logs by entering the following command:
% show table alarm current status
For more information, refer to DNS - DNS Group and DNS Group - CLI