Advanced DNS configuration: SRV records for carddavs / caldavs

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 14.0.4.2
Operating system and version (eg, Ubuntu 17.04): Alpine Linux 3.8.0
Apache or nginx version (eg, Apache 2.4.25): 1.14.1
PHP version (eg, 7.1): 7.2.12

The issue you are facing:
What is the directory of carddavs / caldavs?

This directory would be needed to complete the DNS configuration when using SRV records as suggested here:

_imap._tcp          IN SRV     0 1 143   mail.example.org.
_imaps._tcp         IN SRV     0 1 993   mail.example.org.
_pop3._tcp          IN SRV     0 1 110   mail.example.org.
_pop3s._tcp         IN SRV     0 1 995   mail.example.org.
_submission._tcp    IN SRV     0 1 587   mail.example.org.
_smtps._tcp         IN SRV     0 1 465   mail.example.org.
_sieve._tcp         IN SRV     0 1 4190  mail.example.org.
_autodiscover._tcp  IN SRV     0 1 443   mail.example.org.
_carddavs._tcp      IN SRV     0 1 443   mail.example.org.
_carddavs._tcp      IN TXT     "path=/SOGo/dav/"
_caldavs._tcp       IN SRV     0 1 443   mail.example.org.
_caldavs._tcp       IN TXT     "path=/SOGo/dav/"

This example is related to a mail server hosting carddav / caldav service.
With Nextcloud these services are hosted on the nextcloud server.
Therefore I would need to know the path to the dav-directory.

THX

The path to the dav directory is:
/remote.php/dav

Do you mean in root dir?
There’s no dir /remote.php/dav.

ct117-nextcloud:~# ls -l /var/www/nextcloud/
total 148
drwxr-x--- 33 www-data www-data  4096 Nov 23 20:24 3rdparty
-rw-r-----  1 www-data www-data 12063 Nov 22 14:14 AUTHORS
-rw-r-----  1 www-data www-data 34520 Nov 22 14:14 COPYING
drwxr-x--- 56 www-data www-data  4096 Dec 13 13:02 apps
drwxr-x---  2 www-data www-data  4096 Nov 23 21:14 config
-rw-r-----  1 www-data www-data  3650 Nov 22 14:14 console.php
drwxr-x--- 18 www-data www-data  4096 Nov 23 20:24 core
-rw-r-----  1 www-data www-data  4979 Nov 22 14:14 cron.php
drwxr-x---  3 www-data www-data  4096 Nov 23 20:30 data
-rw-r-----  1 www-data www-data   179 Nov 22 14:14 index.html
-rw-r-----  1 www-data www-data  3171 Nov 22 14:14 index.php
drwxr-x---  6 www-data www-data  4096 Nov 23 20:24 lib
-rw-r-----  1 www-data www-data   283 Nov 22 14:14 occ
drwxr-x---  2 www-data www-data  4096 Nov 23 20:24 ocm-provider
drwxr-x---  2 www-data www-data  4096 Nov 23 20:24 ocs
drwxr-x---  2 www-data www-data  4096 Nov 23 20:24 ocs-provider
-rw-r-----  1 www-data www-data  2971 Nov 22 14:14 public.php
-rw-r-----  1 www-data www-data  5139 Nov 22 14:14 remote.php
drwxr-x---  4 www-data www-data  4096 Nov 23 20:24 resources
-rw-r-----  1 www-data www-data    26 Nov 22 14:14 robots.txt
drwxr-x--- 12 www-data www-data  4096 Nov 23 20:24 settings
-rw-r-----  1 www-data www-data  2232 Nov 22 14:14 status.php
drwxr-x---  3 www-data www-data  4096 Nov 23 20:24 themes
drwxr-x---  2 www-data www-data  4096 Nov 23 20:24 updater
-rw-r-----  1 www-data www-data   362 Nov 22 14:17 version.php

Sorry I meant the dav endpoint. There is no such directory. It is handled by Nextcloud.