[Pdns-users] office365 and powerdns

Stefan Schmidt zaphodb at zaphods.net
Wed Oct 31 10:35:31 UTC 2012


On Wed, Oct 31, 2012 at 11:14 AM, Steffan Noord <steffannoord at gmail.com>wrote:

> Hello list,
>

Hello Steffan,

A client ask me to update his dns for office 365
> No problem but he also want to add a srv record
> How do i need to set this up ?
>
> Type: SRV
> Service: _sip
> Portocol: _tls
> Port: 443
> Weight: 1
> Priority: 100
> TTL 1 Hour
> Domainnaam: example.com
> Target:sipdir.online.lync.com


http://doc.powerdns.com/types.html has a few words to say which basically
boils down to "When encoding, the priority field is used to encode the
priority."

For my Jabber Server and the gmysql backend i am running fine with the
following values:
mysql> select * from dns_record where type='SRV' and id=1406\G
*************************** 1. row ***************************
         id: 1406
  domain_id: 11
       name: _xmpp-client._tcp.mandelbrot.zaphods.net
       type: SRV
    content: 0 5222 mandelbrot.zaphods.net
        ttl: 86400
       prio: 5
description:
    dynamic: 0
  ordername:
       auth: 1
1 row in set (0.00 sec)

Via dig this then gives:
_xmpp-client._tcp.mandelbrot.zaphods.net. 86400 IN SRV 5 0 5222
mandelbrot.zaphods.net.
;; Received 116 bytes from 217.197.86.169#53(217.197.86.169) in 10 ms

Service and Protocol in SRV are encoded in the name of the record.
There also is a nice Wikipedia article for SRV that clears this up:
http://en.wikipedia.org/wiki/SRV_record

 Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20121031/39a9b4fe/attachment-0001.html>


More information about the Pdns-users mailing list