I am developing devices that call home. Instead of having our server DNS hardcoded, I want to use a DNS server. I want the device to rely the least on the network infrastructure, so I would like to have only https requests, without any DNS requests. The documentation suggests to use:
However, for this query to work there must be a successful regular DNS query to find the IP of cloudflare-dns.com.
I found out that this query works, which doesn’t require the additional regular DNS query:
curl --resolve cloudflare-dns.com:443:22.214.171.124 'https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=example.com&type=AAAA'
My questions are:
- Is this guaranteed to work, so I can rely on this working for my devices to call home?
- If it is guaranteed to work, I think it’s a good idea to add this to the documentation.
Thank you very much,