# Create SRV record at the DNS server

**URL:** <https://discourse.mailinabox.email/t/create-srv-record-at-the-dns-server/225>\
**Category:** uncategorized\
**Created:** [December 24, 2014, 10:33am UTC](https://discourse.mailinabox.email/t/create-srv-record-at-the-dns-server/225 "2014-12-24T10:33:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![fjuan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/fjuan/32/63_2.png) [@fjuan](https://discourse.mailinabox.email/u/fjuan)\
**Post date:** [December 24, 2014, 10:33am UTC](https://discourse.mailinabox.email/t/create-srv-record-at-the-dns-server/225/1 "2014-12-24T10:33:53Z")

</div>

Hi

I’ve installed an XMPP / Jabber server and need to add the [SRV record](http://wiki.xmpp.org/web/SRV_Records) to the DNS of my domain so other users can find me.

Those records look like next:

```
_xmpp-client._tcp.example.net. 86400 IN SRV 5 0 5222 example.net.
_xmpp-server._tcp.example.net. 86400 IN SRV 5 0 5269 example.net.

```

The current API only allow for A/AAAA/MX/TXT records and SRV is really needed on some cases.

Is there a workaround to add this kind of records? How could we add this to the API?

Thanks

---

<div class="post-metadata">

**Author:** ![JoshData](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/joshdata/32/2153_2.png) [@JoshData](https://discourse.mailinabox.email/u/JoshData)\
**Post date:** [January 2, 2015, 11:39pm UTC](https://discourse.mailinabox.email/t/create-srv-record-at-the-dns-server/225/2 "2015-01-02T23:39:53Z")

</div>

This will be fixed in the next update hopefully in a few days, thanks.

---

<div class="post-metadata">

**Author:** ![fjuan](https://discourse.mailinabox.email/user_avatar/discourse.mailinabox.email/fjuan/32/63_2.png) [@fjuan](https://discourse.mailinabox.email/u/fjuan)\
**Post date:** [January 4, 2015, 9:30am UTC](https://discourse.mailinabox.email/t/create-srv-record-at-the-dns-server/225/3 "2015-01-04T09:30:12Z")

</div>

Great! It works as expected.

I’ve created a [pull-request on github](https://github.com/mail-in-a-box/mailinabox/pull/288) that adds extra documentation to the DNS API regarding SRV recorrds.

Thanks
