Skip to content

feat: add HTTPS DNS type support #488

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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