2019-04-15 13:33:51 +00:00
|
|
|
namespace dns {
|
|
|
|
export interface AddressTarget {
|
|
|
|
target_ip: string;
|
|
|
|
target_port?: number;
|
|
|
|
}
|
2019-10-24 16:05:11 +00:00
|
|
|
|
2019-04-15 13:33:51 +00:00
|
|
|
export interface ResolveOptions {
|
|
|
|
timeout?: number;
|
|
|
|
allow_cache?: boolean;
|
|
|
|
max_depth?: number;
|
|
|
|
|
|
|
|
allow_srv?: boolean;
|
|
|
|
allow_cname?: boolean;
|
|
|
|
allow_any?: boolean;
|
|
|
|
allow_a?: boolean;
|
|
|
|
allow_aaaa?: boolean;
|
|
|
|
}
|
2019-10-24 16:05:11 +00:00
|
|
|
|
2019-04-15 13:33:51 +00:00
|
|
|
export const default_options: ResolveOptions = {
|
|
|
|
timeout: 5000,
|
|
|
|
allow_cache: true,
|
2019-10-24 16:05:11 +00:00
|
|
|
max_depth: 5
|
2019-04-15 13:33:51 +00:00
|
|
|
};
|
|
|
|
}
|