Enhancement #2715

DNS SRV record for XMPP protocol

Added by Davide Principi over 7 years ago. Updated about 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-ejabberd
Target version:v6.5
Resolution: NEEDINFO:No

Description

nethserver-ejabberd could add XMPP SRV records to dnsmasq to help XMPP client in auto-discovery of service parameters.

See

http://wiki.xmpp.org/web/SRV_Records

History

#1 Updated by Davide Principi over 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

This is a working custom template:

$ cat /etc/e-smith/templates-custom/etc/dnsmasq.conf/80xmpp_srv_record
#
# 80xmpp_srv_records (custom)
#
#
# -W, --srv-host=<_service>.<_prot>.[<domain>],[<target>[,<port>[,<priority>[,<weight>]]]]
#              Return a SRV DNS record. See RFC2782 for details. If not supplied, the domain defaults to that given by --domain.  The  default  for  the  target  domain  is
#              empty,  and  the  default  for  port is one and the defaults for weight and priority are zero. Be careful if transposing data from BIND zone files: the port,
#              weight and priority numbers are in a different order. More than one SRV record for a given service/domain is allowed, all that match are returned.
#

srv-host=_xmpp-client._tcp.{$DomainName},{$SystemName . '.' . $DomainName},5222,0,5
srv-host=_xmpp-server._tcp.{$DomainName},{$SystemName . '.' . $DomainName},5269,0,5

#2 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#3 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#4 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
Package in nethserver-testing:
  • nethserver-ejabberd-1.0.3-2.0git92de73a4.ns6.noarch.rpm
Test case 1
  • Check SRV record. Given the domain as example.org:
    dig _xmpp-client._tcp.example.org SRV @localhost
    dig _xmpp-server._tcp.example.org SRV @localhost
    
  • The command must return the server ip address
Test case 2
  • Clients should be able to configure jabber accounts without explicitly set server address/fqdn.

#5 Updated by Stefano Fancello about 7 years ago

  • Assignee set to Stefano Fancello

#6 Updated by Stefano Fancello about 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

#7 Updated by Stefano Fancello about 7 years ago

  • Assignee deleted (Stefano Fancello)

#8 Updated by Giacomo Sanchietti about 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-ejabberd-1.0.4-1.ns6.noarch.rpm

Also updated all manuals.

Also available in: Atom PDF