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:
Tatsuhiro Tsujikawa 2011-02-08 23:05:40 +09:00
parent cf546810e4
commit f0682a98c0
11 changed files with 110 additions and 4 deletions

View file

@ -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 {