netty5/common/src/main/java/io/netty/util
Scott Mitchell 54c9ecf682 DnsNameResolver should respect /etc/resolv.conf and /etc/resolver
Motivation:
The JDK uses gethostbyname for blocking hostname resoltuion. gethostbyname can be configured on Unix systems according to [1][2]. This may impact the name server that is used to resolve particular domains or just override the default fall-back resolver. DnsNameResolver currently ignores these configuration files which means the default resolution behavior is different than the JDK. This may lead to unexpected resolution failures which succeed when using the JDK's resolver.

Modifications:
- Add an interface which can override what DnsServerAddressStream to use for a given hostname
- Provide a Unix specific implementation of this interface and implement [1][2]. Some elements may be ignored sortlist, timeout, etc...

Result:
DnsNameResolver behaves more like the JDK resolver by default.

[1] https://linux.die.net/man/5/resolver
[2] https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man5/resolver.5.html
2017-02-13 11:54:09 -08:00
..
concurrent Restore add(Promise) and addAll(Promise...) methods to PromiseCombiner. 2017-01-30 09:23:11 +01:00
internal DnsNameResolver should respect /etc/resolv.conf and /etc/resolver 2017-02-13 11:54:09 -08:00
AbstractConstant.java Improvement: simplified AbstractConstant compareTo. 2016-08-03 09:53:49 +02:00
AbstractReferenceCounted.java Remove usage of own Atomic*FieldUpdater in favor of JDKs 2016-12-15 08:09:06 +00:00
AsciiString.java Cleanup inappropriate @throws javadoc of some AsciiString util methods 2016-11-04 15:37:16 +01:00
AsyncMapping.java Allow to do async mappings in the SniHandler 2016-01-18 21:02:13 +01:00
Attribute.java [#4351] Add warnings for Attribute.remove() and Attribute.getAndRemove() 2016-07-29 15:12:36 +02:00
AttributeKey.java Fix errors reported by javadoc 2015-12-27 08:36:45 +01:00
AttributeMap.java
BooleanSupplier.java DefaultHttp2Connection.close Reentrant Modification 2016-05-09 14:16:30 -07:00
ByteProcessor.java HttpConversionUtil remove throws from method signature 2016-01-15 10:53:34 +01:00
CharsetUtil.java Add CharsetUtil.encoder/decoder() methods 2016-03-07 10:48:31 +00:00
Constant.java
ConstantPool.java Improvement : constant pool now less concurrent 2016-08-04 08:22:37 +02:00
DefaultAttributeMap.java Remove usage of own Atomic*FieldUpdater in favor of JDKs 2016-12-15 08:09:06 +00:00
DomainMappingBuilder.java Replace DomainMappingBuilder with DomainNameMappingBuilder 2016-05-18 12:03:14 +02:00
DomainNameMapping.java Fix NPE when creating DomainNameMapping via a builder 2016-05-18 19:26:28 +09:00
DomainNameMappingBuilder.java Replace DomainMappingBuilder with DomainNameMappingBuilder 2016-05-18 12:03:14 +02:00
HashedWheelTimer.java Deprecate and ignore ResourceLeakDetector's maxActive parameter 2017-02-08 19:59:58 -08:00
HashingStrategy.java Removed unused imports 2016-01-04 14:32:29 +01:00
IllegalReferenceCountException.java
IntSupplier.java Allow to customize NIO (channel) select strategies. 2016-03-30 15:01:25 -07:00
Mapping.java
NetUtil.java Wrap operations requiring SocketPermission with doPrivileged blocks 2017-01-19 21:12:52 +01:00
package-info.java
Recycler.java Add assert to ensure we not create an endless loop and fix unsafe publication 2017-01-11 12:14:27 +01:00
ReferenceCounted.java
ReferenceCountUtil.java Eliminate usage of releaseLater(...) to reduce memory usage during tests 2016-11-18 09:34:11 +01:00
ResourceLeak.java Fix false-positives when using ResourceLeakDetector. 2016-12-04 09:01:39 +01:00
ResourceLeakDetector.java Deprecate and ignore ResourceLeakDetector's maxActive parameter 2017-02-08 19:59:58 -08:00
ResourceLeakDetectorFactory.java Deprecate and ignore ResourceLeakDetector's maxActive parameter 2017-02-08 19:59:58 -08:00
ResourceLeakException.java
ResourceLeakHint.java
ResourceLeakTracker.java Fix false-positives when using ResourceLeakDetector. 2016-12-04 09:01:39 +01:00
Signal.java
ThreadDeathWatcher.java Ensure we use a MPMC queue in ThreadDeathWatcher as it may be used from multiple threads at the same time. 2016-12-21 07:31:20 +01:00
Timeout.java
Timer.java Added optional pending timeouts counter parameter to HashedWheelTimer constructor and ensured that pending timeouts don't exceed provided max pending timeouts. 2016-11-09 10:58:35 +01:00
TimerTask.java
Version.java