TeaWeb/shared/js/dns.ts

22 lines
432 B
TypeScript
Raw Normal View History

2020-03-30 11:44:18 +00:00
export interface AddressTarget {
target_ip: string;
target_port?: number;
}
2020-03-30 11:44:18 +00:00
export interface ResolveOptions {
timeout?: number;
allow_cache?: boolean;
max_depth?: number;
2019-04-15 13:33:51 +00:00
2020-03-30 11:44:18 +00:00
allow_srv?: boolean;
allow_cname?: boolean;
allow_any?: boolean;
allow_a?: boolean;
allow_aaaa?: boolean;
}
2020-03-30 11:44:18 +00:00
export const default_options: ResolveOptions = {
timeout: 5000,
allow_cache: true,
max_depth: 5
};