Skip to content

Commit 042a221

Browse files
feat: add HTTPS DNS type support (#488)
1 parent 1c024cb commit 042a221

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Diff for: public/demo/globals.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const ALLOWED_LOCATION_TYPES = [ 'continent', 'region', 'country', 'state', 'cit
88
const ALLOWED_TRACE_PROTOCOLS = [ 'TCP', 'UDP', 'ICMP' ];
99

1010
// dns
11-
const ALLOWED_DNS_TYPES = [ 'A', 'AAAA', 'ANY', 'CNAME', 'DNSKEY', 'DS', 'MX', 'NS', 'NSEC', 'PTR', 'RRSIG', 'SOA', 'TXT', 'SRV' ];
11+
const ALLOWED_DNS_TYPES = [ 'A', 'AAAA', 'ANY', 'CNAME', 'DNSKEY', 'DS', 'HTTPS', 'MX', 'NS', 'NSEC', 'PTR', 'RRSIG', 'SOA', 'TXT', 'SRV' ];
1212
const ALLOWED_DNS_PROTOCOLS = [ 'UDP', 'TCP' ];
1313

1414
// mtr

Diff for: public/v1/components/schemas.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ components:
324324
- CNAME
325325
- DNSKEY
326326
- DS
327+
- HTTPS
327328
- MX
328329
- NS
329330
- NSEC

Diff for: src/measurement/schema/command-schema.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const tracerouteSchema = Joi.object({
7979
port: Joi.number().port().default(COMMAND_DEFAULTS.traceroute.port),
8080
}).default().messages(schemaErrorMessages);
8181

82-
const allowedDnsTypes = [ 'A', 'AAAA', 'ANY', 'CNAME', 'DNSKEY', 'DS', 'MX', 'NS', 'NSEC', 'PTR', 'RRSIG', 'SOA', 'TXT', 'SRV' ];
82+
const allowedDnsTypes = [ 'A', 'AAAA', 'ANY', 'CNAME', 'DNSKEY', 'DS', 'HTTPS', 'MX', 'NS', 'NSEC', 'PTR', 'RRSIG', 'SOA', 'TXT', 'SRV' ];
8383
const allowedDnsProtocols = [ 'UDP', 'TCP' ];
8484

8585
// Dns

Diff for: src/measurement/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type MtrResult = TestResult & {
8686
hops: MtrResultHop[];
8787
};
8888

89-
type DnsQueryTypes = 'A' | 'AAAA' | 'ANY' | 'CNAME' | 'DNSKEY' | 'DS' | 'MX' | 'NS' | 'NSEC' | 'PTR' | 'RRSIG' | 'SOA' | 'TXT' | 'SRV';
89+
type DnsQueryTypes = 'A' | 'AAAA' | 'ANY' | 'CNAME' | 'DNSKEY' | 'DS' | 'HTTPS' | 'MX' | 'NS' | 'NSEC' | 'PTR' | 'RRSIG' | 'SOA' | 'TXT' | 'SRV';
9090

9191
type DnsTest = {
9292
query: {

0 commit comments

Comments
 (0)