Bug 1722294 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Hmm, there is no SRV record for the address book. Try this in the console:

`
var { DNS } = ChromeUtils.import("resource:///modules/DNS.jsm");
var hostname = "aegee.org";
var recs = await DNS.srv(`_carddavs._tcp.${hostname}`); recs;
`

The SRV record is just one item, which is for caldav.

`
var txts = await DNS.txt(`_carddavs._tcp.cal.aegee.org`); txts;
`
Gives no results

`
var txts = await DNS.txt(`_carddavs._tcp.aegee.org`); txts;
`
.. does give back an array, and array[0] object data: "path=/dav/addressbooks"

But, we looked at the DNS TXT for the calendar, not the address book
https://searchfox.org/comm-central/rev/93487d295e3d3365c3082104ea980c7a0dfceeef/mailnews/addrbook/modules/CardDAVUtils.jsm#287

Not sure if there's a bug here. Shouldn't we get back the carddav SRV record to begin with?
Hmm, there is no SRV record for the address book. Try this in the console:

```
var { DNS } = ChromeUtils.import("resource:///modules/DNS.jsm");
var hostname = "aegee.org";
var recs = await DNS.srv(`_carddavs._tcp.${hostname}`); recs;
```

The SRV record is just one item, which is for caldav.

```
var txts = await DNS.txt(`_carddavs._tcp.cal.aegee.org`); txts;
```
Gives no results

```
var txts = await DNS.txt(`_carddavs._tcp.aegee.org`); txts;
```
.. does give back an array, and array[0] object data: "path=/dav/addressbooks"

But, we looked at the DNS TXT for the calendar, not the address book
https://searchfox.org/comm-central/rev/93487d295e3d3365c3082104ea980c7a0dfceeef/mailnews/addrbook/modules/CardDAVUtils.jsm#287

Not sure if there's a bug here. Shouldn't we get back the carddav SRV record to begin with?

Back to Bug 1722294 Comment 2