When using Pi-DNS normal or DoH AWS internal load balancer IP's are not resolved.
Normal DNS
Using CloudFlare
$ dig @1.1.1.1 internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com
; <<>> DiG 9.10.6 <<>> @1.1.1.1 internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1849
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1232
;; QUESTION SECTION:
;internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com. IN A
;; ANSWER SECTION:
internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com. 60 IN A 10.1.28.204
;; Query time: 384 msec
;; SERVER: 1.1.1.1#53(1.1.1.1)
;; WHEN: Tue Aug 11 22:31:52 IST 2020
;; MSG SIZE rcvd: 205
Using Pi-DNS
$ dig @185.213.26.187 internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com
; <<>> DiG 9.10.6 <<>> @185.213.26.187 internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32969
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 4, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 1472
;; QUESTION SECTION:
;internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com. IN A
;; AUTHORITY SECTION:
us-east-1.elb.amazonaws.com. 1462 IN NS ns-1119.awsdns-11.org.
us-east-1.elb.amazonaws.com. 1462 IN NS ns-1793.awsdns-32.co.uk.
us-east-1.elb.amazonaws.com. 1462 IN NS ns-235.awsdns-29.com.
us-east-1.elb.amazonaws.com. 1462 IN NS ns-934.awsdns-52.net.
;; Query time: 252 msec
;; SERVER: 185.213.26.187#53(185.213.26.187)
;; WHEN: Tue Aug 11 22:32:32 IST 2020
;; MSG SIZE rcvd: 246
DoH
Using CloudFlare
$ curl -sSL -H 'accept: application/dns-json' 'https://cloudflare-dns.com/dns-query?name=internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com&type=A' | jq .
{
"Status": 0,
"TC": false,
"RD": true,
"RA": true,
"AD": false,
"CD": false,
"Question": [
{
"name": "internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com",
"type": 1
}
],
"Answer": [
{
"name": "internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com",
"type": 1,
"TTL": 60,
"data": "10.1.28.204"
}
]
}
Using Pi-DNS
$ curl -sSL -H 'accept: application/dns-json' 'https://doh.pi-dns.com/dns-query?name=internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com&type=A' | jq .
{
"Status": 0,
"TC": false,
"RD": true,
"RA": true,
"AD": false,
"CD": false,
"Question": [
{
"name": "internal-af90b8a66a8624061b5e32cc076dd867-1295241024.us-east-1.elb.amazonaws.com.",
"type": 1
}
],
"Authority": [
{
"name": "us-east-1.elb.amazonaws.com.",
"type": 2,
"TTL": 33,
"Expires": "Tue, 11 Aug 2020 17:05:00 UTC",
"data": "ns-1119.awsdns-11.org."
},
{
"name": "us-east-1.elb.amazonaws.com.",
"type": 2,
"TTL": 33,
"Expires": "Tue, 11 Aug 2020 17:05:00 UTC",
"data": "ns-1793.awsdns-32.co.uk."
},
{
"name": "us-east-1.elb.amazonaws.com.",
"type": 2,
"TTL": 33,
"Expires": "Tue, 11 Aug 2020 17:05:00 UTC",
"data": "ns-235.awsdns-29.com."
},
{
"name": "us-east-1.elb.amazonaws.com.",
"type": 2,
"TTL": 33,
"Expires": "Tue, 11 Aug 2020 17:05:00 UTC",
"data": "ns-934.awsdns-52.net."
}
],
"edns_client_subnet": "61.2.213.0/0"
}