Citrix ADC

DNS查询NAPTR记录时配置GSLB

In a typical Global Server Load Balancing (GSLB) deployment, the Citrix ADC appliance receives DNS queries for A/AAAA records, selects the most appropriate GSLB service according to the configured load balancing method, and returns the service’s IP address as a reply to the DNS query. You can now configure the appliance to receive DNS queries for NAPTR records and respond with the list of services configured for a domain. The appliance also monitors the health of the services, and in the response it provides a list of only the services that are up.

例子:

在Telco部署中,您可以将Citrix ADC设备配置为从客户端(如移动管理实体(MMEs))接收带有NAPTR记录的DNS查询,这些客户端扮演DNS解析器的角色,发现由域名提供的所有服务。该设备用所有启动的服务的NAPTR记录响应查询。MME可以使用该NAPTR响应运行S-NAPTR程序,根据所提供的服务、位置、拓扑的紧密程度等来选择节点。

如果多个节点符合选择条件,MME可以使用Citrix ADC设备的NAPTR记录中的首选项字段来确定节点。

NAPTR记录格式

在响应带有NAPTR记录的DNS查询时,Citrix ADC设备为每个GSLB服务构造一个响应NAPTR记录。

下表列出了NAPTR记录中的文件:

GSLB域
TTL 可以缓存NAPTR记录的时间量。
班级记录。默认情况下,该值设置为IN。
类型 DNS记录类型。
订单 指定处理NAPTR记录的顺序。您可以在GSLB服务中指定顺序。否则,设置为1。
偏好 指定处理具有相同“订单”值的NAPTR记录的顺序,低数字在高数字之前处理。如果GSLB服务中没有指定顺序,则将其设置为1。
旗帜 控制记录中的重写和解释的方面。Citrix ADC设备将此值设置为A.
服务 指定可用的服务。
正则表达式 不支持正则表达式,因此此值设置为NULL。
更换 服务所在节点的域名。

配置程序

有关GSLB配置的详细说明,请参阅配置全局服务器负载平衡(GSLB). 确保您执行以下操作:

  • 添加GSLB虚拟服务器时设置以下参数:
    • ServiceType:Any.
    • dnsRecordType: NAPTR
    • lbMethod: CUSTOMLOAD

例子:

添加gslb vserver gslb_vs ANY-dnsRecordType NAPTR-lbMethod CUSTOMLOAD<--需要复制-->
  • 在添加GSLB站点时,设置naptrReplacementSuffix参数设置为要嵌入到NAPTR记录中的域名。

例子:

add gslb site site1 10.10.218.200 -naptrReplacementSuffix example.com 
  • 添加GSLB服务时设置以下参数:
    • naptreplacement.
    • 纳特罗德
    • naptrServices
    • naptrDomainTTL
    • naptrPreference

示例配置

添加gslb vserver gslb_vs任何-dnsrecordtype naptr -lbmethod covingload dode添加gslb站点site1 10.102.218.200 -naptrreplacementsuffix example.com doad添加gslb service sgw1 3.3.3.13任何* -sitename site1 -naptreplacement sgw1.site1。-naptrorder 2-naptrservices x-3gpp-sgw:x-s5-gtp -naptredainttl 20-naptrpreference 200完成添加gslb service sgw2 3.3.3.11任何* -sitename site1-naptrreplacement sgw2.site1。-naptrorder 5 -naptrservices x-3gpp-sgw:x-s5-gtp -naptrdomainttl 20 naptrpreference 100 dode add gslb service sgw3 3.3.3.12任何* -sitename site2 -naptreplacement sgw3.site1。-naptrorder 10 -naptrservices x-3gpp-sgw:x-s5-gtp -naptredtremainttl 20 naptrpreference 300绑定gslb vserver gslb_vs -servicename sgw1 dode bind gslb vserver gslb_vs -servicename sgw2 dode bind gslb vserver gslb_vs -servicename sgw3完成绑定gslb service sgw1  -MonitorName Ping DoneD Tend GSLB服务SGW2 -MonitorName Ping DoneD Tend GSLB服务SGW3 -MonitorName Ping Donn Donn Donn Donn Donn Donnet Good GSLB vserver GSLB_VS -DOMAINNAME GSLB.com -TTL 5 DONE <! -  CELTCOPY  - >

请注意

父子配置中不支持使用NAPTR记录的DNS查询。

DNS查询NAPTR记录时配置GSLB