Create and Verify DNS SRV and A Records for Client Automatic Client Sign-in for OCS Server and Client

Create and Verify DNS SRV and A Records for Client Automatic Client Sign-in

You must create DNS SRV records in your internal DNS for every SIP domain. The procedure assumes that your internal DNS has zones for your SIP user domains.

To create a DNS SRV record

· On the DNS server, click Start, click Control Panel, click Administrative Tools, and then click DNS.

· In the console tree for your SIP domain, expand Forward Lookup Zones, and then right-click the SIP domain in which your Office Communications Server will be installed.

· Click Other New Records.

· In Select a resource record type, click Service Location (SRV) , and then click Create Record.

· Click Service, and then type _sipinternaltls.

· Click Protocol, and then type _tcp.

· Click Port Number, and then type 5061.

· Click Host offering this service, and then type the FQDN of the pool.

· Click OK.

· Click Done.

After you have created the DNS SRV record, create a DNS A for each pool FQDN and URL FQDN that is not the same as the server FQDN.

To create a DNS A record

· Click Start, click Control Panel, click Administrative Tools, and then click DNS.

· In the console tree for your domain, expand Forward Lookup Zones, and then right-click the domain in which your Office Communications Server will be installed.

· Click New Host (A) .

· Click Name (uses parent domain name if blank) , and then type the name of the pool.

· Click IP Address, and then enter the VIP of the load balancer. If you will deploy only one Enterprise Edition Server that is connected to the back-end without a load balancer, type the IP address of the Enterprise Edition server. (A load balancer is required if you deploy more than one Enterprise Edition server in a pool). Click Add Host, and then click OK.

· To create an additional A record, repeat steps 4 and 5.

· When you are finished creating all the A records that you need as described earlier in click Done.To verify that the required records have been created successfully, wait for DNS replication (if you have just added the records), and then verify that the records were created as described in the next procedure.

To verify the creation of a DNS SRV record

Log on to a client computer in the domain with an account that is a member of the Administrators group or has equivalent permissions.

· Click Start, and then click Run. In the Open box, type cmd, and then click OK.

· At the command prompt, type nslookup, and then press ENTER.

· Type set type=srv, and then press ENTER.

· Type _sipinternaltls._tcp.example.com, and then press ENTER. The output displayed for the TLS record is as follows:

Server: <dns server>.corp.example.com

Address: <IP address of DNS server>

Non-authoritative answer:

_sipinternaltls._tcp.example.com SRV service location:

priority = 0

weight = 0

port = 5061

svr hostname = poolname.example.com

poolname.example.com internet address = <virtual IP Address of the load balancer> or <IP address of a single Enterprise Edition Server for pools with only one Enterprise Edition Server>

5.       When you are finished, at the command prompt, type exit.

After you configure the DNS records, verify that the FQDN of the Enterprise pool can be resolved by DNS.

To verify that the FQDN of the Enterprise pool can be resolved

1) Log on to a client computer in the domain.

2) Click Start, and then click Run. In the Open box, type cmd, and then click OK.

3) At the command prompt, type ping <FQDN of the pool> , and then press ENTER.

4) Verify that you receive a response similar to the following, where the IP address returned is the IP address of the load balancer for your Enterprise pool or, in the case of an Enterprise pool with a single Enterprise Edition Server, the IP address of the Enterprise Edition Server.

Reply from 172.27.176.117: bytes=32 time<1ms TTL=127

Reply from 172.27.176.117: bytes=32 time<1ms TTL=127

Reply from 172.27.176.117: bytes=32 time<1ms TTL=127

Reply from 172.27.176.117: bytes=32 time<1ms TTL=127

How Client DNS Queries Work

During DNS lookup, SRV records are queried in parallel and returned in the following order to the client.

_sipinternaltls._tcp.<domain> - for internal TLS connections

_sipinternal._tcp. <domain> - for internal TCP connections (performed only if TCP is allowed)

_sip._tls. <domain> - for external TLS connections

_sip._tcp.<domain> - for external TCP connections

where <domain> is the SIP domain used by your internal clients

The client uses the SRV record that is returned and is successful and does not try any other SRV records.

After the SRV record is returned, a query is performed for the DNS A record for the host name that is returned by the SRV record. If no records are found during the DNS SRV query, the client performs an explicit lookup of sip.<domain> . If the explicit lookup does not produce results, the client performs a lookup for sipinternal.<domain> . If the client does not find sipinternal.<domain> , it performs a lookup for sipexternal.<domain> .

If your DNS infrastructure prohibits configuration of these DNS records, you can manually edit the client registry to point to the appropriate home server.

Comments

  • Anonymous
    March 15, 2011
    The comment has been removed

  • Anonymous
    December 31, 2011
    I'm trying, thanks ... www.radiosabalera.com.ar

  • Anonymous
    June 16, 2014
    Hi, when i type _sipinternaltls._tcp.example.com, it returns: Server : Unkwon Address: 10.148.202.69 why my "server" is unkown? and I cannot connect to sip server:( telnet 10.148.202.13 5061 Could not open connection to the host, on port 5061:connect failed what should i do? thanks...