Skip to content

Multiple answers

ebal requested to merge multiple_answers into master

testing usecases

$ ./bin/doh-cli libreops.cc
185.199.108.153
185.199.109.153
185.199.111.153
185.199.110.153

$ ./bin/doh-cli libredns.gr
116.202.176.26
116.203.115.192

$ ./bin/doh-cli ipv4.balaskas.gr
158.255.214.14
$ ./bin/doh-cli libreops.cc MX
10 spool.mail.gandi.net.
50 fb.mail.gandi.net.
$ ./bin/doh-cli libreops.cc MX --output json
[{"Query": "libreops.cc.", "TTL": "10794", "RR": "MX", "Answer": ["10", "spool.mail.gandi.net."]}]
[{"Query": "libreops.cc.", "TTL": "10794", "RR": "MX", "Answer": ["50", "fb.mail.gandi.net."]}]
$ ./bin/doh-cli libreops.cc MX --output json | jq .
[
  {
    "Query": "libreops.cc.",
    "TTL": "10792",
    "RR": "MX",
    "Answer": [
      "10",
      "spool.mail.gandi.net."
    ]
  }
]
[
  {
    "Query": "libreops.cc.",
    "TTL": "10792",
    "RR": "MX",
    "Answer": [
      "50",
      "fb.mail.gandi.net."
    ]
  }
]

Merge request reports