diff --git a/client/src/Types/Monitor.ts b/client/src/Types/Monitor.ts index 3dced0a6c..a4317e1ff 100644 --- a/client/src/Types/Monitor.ts +++ b/client/src/Types/Monitor.ts @@ -15,10 +15,14 @@ export const MonitorTypes = [ "game", "grpc", "websocket", + "dns", "unknown", ] as const; export type MonitorType = (typeof MonitorTypes)[number]; +export const DnsRecordTypes = ["A", "AAAA", "CNAME", "MX", "TXT", "NS"] as const; +export type DnsRecordType = (typeof DnsRecordTypes)[number]; + export const GeoCheckSupportedTypes: readonly MonitorType[] = ["http", "ping"] as const; export const supportsGeoCheck = (type: MonitorType | undefined): boolean => { @@ -78,6 +82,8 @@ export interface Monitor { geoCheckEnabled?: boolean; geoCheckLocations?: GeoContinent[]; geoCheckInterval?: number; + dnsServer?: string; + dnsRecordType?: DnsRecordType; recentChecks: CheckSnapshot[]; createdAt: string; updatedAt: string;