DNS SRV RECORD FOR XMPP SERVER

DNS SRV RECORD FOR XMPP SERVER

SRV RECORD?

SRV stand for  services record of domain, SRV is a specifications of data in the Domain Name system defining the location e.g hostname & port number of server for specified services.

Why we need SRV XMPP Record?

By using SRV record we can allow transparent DNS-Level redirects of XMPP services to another domain or port & same domain or port. Let’s take a example to understand the concept of SRV XMPP record.

When you want to users have address like jack@how2isntall.in , but your XMPP Ejabberd server is really installed on xmpp.how2isntall.in.  In this case SRV record helps us.

SRV records are not XMPP-specific, but are defined for a number of protocols. XMPP actually has 2 different types of SRV records, those for clients to use (client-to-server, or ‘c2s’), and those for other XMPP servers to use when they look up your domain (server-to-server, or ‘s2s’).

Ejabberd XMPP default client-to-server(c2s) working on port number 5222.

Ejabberd XMPP default Server-to-Server(s2s) working on port number 5269.

SRV XMPP Record Syntax:-

_xmpp-client._tcp.how2install.in. 18000 IN SRV 0 10 5222 xmpp.how2install.in.
_xmpp-server._tcp.how2install.in. 18000 IN SRV 0 10  5269 xmpp.how2install.in.

Here:

18000 –TTL Value
0—Priority
10 –Weight
5222—Port
xmpp.how2install.in -- Ejabberd XMMP Server

Now our domain how2install.in 5222 & 5269 port traffic forward to xmpp.how2isntall.in

Here I am demonstrate you, how to put SRV XMPP Record on WHM panel & mitsu.in domain Registrar .

WMP Panel:

Login with root user in WHM panel —> Home —> DNS Functions —> Edit DNS Zone —> Select your domain 

whm

 

 

 

 

 

Mitsu Registrar:-

Login with your  user name and password —> Select domain list —>Select Domain —> DNS Management —> Select SRV Record.

srv

 

 

 

 

 

 

 

 

 

 

How to check SRV Record in LINUX OR WINDOWS:–

Linux, OS X> host -t SRV _xmpp-client._tcp.how2install.in
Linux, OS X> host -t SRV _xmpp-server._tcp.how2install.in
Linux, OS X> dig _xmpp-client._tcp.how2install.in SRV
Linux, OS X> dig _xmpp-server._tcp.how2install.in SRV
Linux, OS X, Windows> nslookup -querytype=SRV _xmpp-client._tcp.how2install.in
Linux, OS X, Windows> nslookup -querytype=SRV _xmpp-server._tcp.how2install.in

{#moods_dlg.WellDone}

Leave a Reply

Time limit is exhausted. Please reload the CAPTCHA.