Noprint | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
Panel | ||||
---|---|---|---|---|
In this section:
|
This section provides an example for configuring DNS Groups and explains how to configure DNS A/SRV and NAPTR queries.
The
Spacevars | ||
---|---|---|
|
When a DNS group is configured at the Address Context level for an interface, it must also be configured at the Zone level in that Address Context. For example, the CLI command examples listed below accomplish the following:
Set DNS group to zone within Address Context.
Code Block | ||
---|---|---|
| ||
% set addressContext default dnsGroup DNG-1 type ip interface IPIG-1
% set addressContext default dnsGroup DNG-1 localRecord RECORD1 data 1 hostName HOST-1 order roundrobin state enabled
% set addressContext default dnsGroup DNG-1 server SERVER1 ipAddress 1.1.1.1 priority 1 recursionDesired true weight 10
% set addressContext default zone ZONE_AS dnsGroup DNG-1 |
Include Page DNSGroup_Limit DNSGroup_Limit
The
Spacevars | ||
---|---|---|
|
Spacevars | ||
---|---|---|
|
Perform the following steps to configure the DNS server for DNS A/SRV and NAPTR queries:
Create a DNS group and add a DNS server in the group.
Tip |
---|
More than one DNS server can be added. Each is selected based on its weight and the priority. |
Code Block | ||
---|---|---|
| ||
% set addressContext a1 dnsGroup <dnsgroupname> server <servername> ipAddress <DNS ipaddress> state enabled |
In the SIP Trunk Group services, create a Static route for the DNS Server.
Code Block | ||
---|---|---|
| ||
% set addressContext a1 zone <zone_name> sipTrunkGroup <trunkgrp name> services dnsSupportType a-srv-naptr
% set addressContext a1 staticRoute <dns ip address> <prefix> <gateway ip> <Intfce> <if_ethx> preference 10 |
In the IP Signaling Profile, enable the "noPortNumber5060" flag.
Code Block | ||
---|---|---|
| ||
% set profiles signaling ipSignalingProfile <SIP IP signaling profile name> commonIpAttributes flags noPortNumber5060 enable |
Ensure that IP Peer returns the domain name so the SBC can send the query to the DNS Server.
Code Block | ||
---|---|---|
| ||
% set addressContext a1 zone <dnsgroupname> ipPeer <peer name> policy sip fqdn <Domain name> fqdnPort <port> |
Note |
---|
For NAPTR/SRV lookups, ensure the port number is not configured under IP Peer on the SBC, or IP Signaling Peer Group in the PSX, if external PSX is used. If only A-record lookups are required, the port must be configured. |
Check the DNS server status and statistics:
Code Block | ||
---|---|---|
| ||
% show table/status addressContext a1 dnsGroup DNSGroup1 dnsServerStatistics
% show table/status addressContext a1 dnsGroup DNSGroup1 dnsEntryStatus
% show table/status addressContext a1 dnsGroup DNSGroup1 dnsEntryDataStatus |
Info |
---|
Refer to the following pages for command syntax details: |
Pagebreak |
---|