mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
Added --async-dns-server option.
This option accepts comma separated list of DNS server address used in asynchronous DNS resolver. Usually asynchronous DNS resolver reads DNS server addresses from /etc/resolv.conf. When this option is used, it uses DNS servers specified in this option instead of ones in /etc/resolv.conf. You can specify both IPv4 and IPv6 address. This option is useful when the system does not have /etc/resolv.conf and user does not have the permission to create it.
This commit is contained in:
parent
cf546810e4
commit
f0682a98c0
11 changed files with 110 additions and 4 deletions
|
@ -84,7 +84,7 @@ bool DHTEntryPointNameResolveCommand::execute()
|
|||
} else {
|
||||
family = AF_INET;
|
||||
}
|
||||
resolver_.reset(new AsyncNameResolver(family));
|
||||
resolver_.reset(new AsyncNameResolver(family, e_->getAsyncDNSServers()));
|
||||
}
|
||||
#endif // ENABLE_ASYNC_DNS
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue