Skip to content

Commit

Permalink
feat: add https to dns type
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-yarmosh committed Jan 30, 2024
1 parent 1c024cb commit 3049360
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/demo/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const ALLOWED_LOCATION_TYPES = [ 'continent', 'region', 'country', 'state', 'cit
const ALLOWED_TRACE_PROTOCOLS = [ 'TCP', 'UDP', 'ICMP' ];

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

// mtr
Expand Down
1 change: 1 addition & 0 deletions public/v1/components/schemas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ components:
- CNAME
- DNSKEY
- DS
- HTTPS
- MX
- NS
- NSEC
Expand Down
2 changes: 1 addition & 1 deletion src/measurement/schema/command-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const tracerouteSchema = Joi.object({
port: Joi.number().port().default(COMMAND_DEFAULTS.traceroute.port),
}).default().messages(schemaErrorMessages);

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

// Dns
Expand Down
2 changes: 1 addition & 1 deletion src/measurement/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type MtrResult = TestResult & {
hops: MtrResultHop[];
};

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

type DnsTest = {
query: {
Expand Down

0 comments on commit 3049360

Please sign in to comment.