Options Type
Constructors
| Constructor |
Description
|
Full Usage:
Options(?enableBuiltInResolver, ?enableHappyEyeballs, ?secureDnsMode, ?secureDnsServers, ?enableAdditionalDnsQueryTypes)
Parameters:
bool
-
Whether the built-in host resolver is used in preference to getaddrinfo. When enabled, the built-in resolver will attempt to
use the system's DNS settings to do DNS lookups itself. Enabled by default on macOS, disabled by default on Windows
and Linux.
?enableHappyEyeballs : bool
-
Whether the Happy Eyeballs V3 algorithm should be used in creating network connections. When enabled, hostnames resolving to multiple
IP addresses will be attempted in parallel to have a chance at establishing a connection more quickly.
?secureDnsMode : SecureDnsMode
-
Can be 'off', 'automatic' or 'secure'. Configures the DNS-over-HTTP mode. When 'off', no DoH lookups will be performed. When
'automatic', DoH lookups will be performed first if DoH is available, and insecure DNS lookups will be performed as a
fallback. When 'secure', only DoH lookups will be performed. Defaults to 'automatic'.
?secureDnsServers : string[]
-
A list of DNS-over-HTTP server templates. See RFC8484 § 3 for details on the template format. Most servers support
the POST method; the template for such servers is simply a URI. Note that for some DNS providers, the resolver
will automatically upgrade to DoH unless DoH is explicitly disabled, even if there are no DoH servers provided in this
list.
?enableAdditionalDnsQueryTypes : bool
-
Controls whether additional DNS query types, e.g. HTTPS (DNS type 65) will be allowed besides the traditional A and
AAAA queries when a request is being made via insecure DNS. Has no effect on Secure DNS which always allows
additional types. Defaults to true.
Returns: Options
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.enableAdditionalDnsQueryTypes
|
Controls whether additional DNS query types, e.g. HTTPS (DNS type 65) will be allowed besides the traditional A and AAAA queries when a request is being made via insecure DNS. Has no effect on Secure DNS which always allows additional types. Defaults to true. |
Full Usage:
this.enableBuiltInResolver
|
Whether the built-in host resolver is used in preference to getaddrinfo. When enabled, the built-in resolver will attempt to use the system's DNS settings to do DNS lookups itself. Enabled by default on macOS, disabled by default on Windows and Linux. |
Full Usage:
this.enableHappyEyeballs
|
Whether the Happy Eyeballs V3 algorithm should be used in creating network connections. When enabled, hostnames resolving to multiple IP addresses will be attempted in parallel to have a chance at establishing a connection more quickly. |
Full Usage:
this.secureDnsMode
|
Can be 'off', 'automatic' or 'secure'. Configures the DNS-over-HTTP mode. When 'off', no DoH lookups will be performed. When 'automatic', DoH lookups will be performed first if DoH is available, and insecure DNS lookups will be performed as a fallback. When 'secure', only DoH lookups will be performed. Defaults to 'automatic'. |
Full Usage:
this.secureDnsServers
|
A list of DNS-over-HTTP server templates. See RFC8484 § 3 for details on the template format. Most servers support the POST method; the template for such servers is simply a URI. Note that for some DNS providers, the resolver will automatically upgrade to DoH unless DoH is explicitly disabled, even if there are no DoH servers provided in this list. |
fable-electron-docs-api