Skip to content

Commit

Permalink
Fixed DNS lookup type
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Jan 7, 2024
1 parent 39d1579 commit 6a8647d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ Note: prior to v9.3.0 the Maven groupId was `com.helger`.

# News and noteworthy

* v10.1.7 - 2023-01-07
* Fixed the DNS query type in `NonCachingDnsResolver.createDefaultLookup()` to not use `ANY`
* v10.1.6 - 2024-01-05
* Updated to Apache HttpClient v5.3
* `HttpClientFactory.createConnectionManager` now returns a logging version if `HttpDebugger.isEnabled ()`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,13 @@ public NonCachingDnsResolver ()
@Nonnull
public static Lookup createDefaultLookup (@Nonnull final String sHost) throws TextParseException
{
final Lookup aDNSLookup = new Lookup (sHost, Type.ANY);
return createDefaultLookup (sHost, Type.A);
}

@Nonnull
public static Lookup createDefaultLookup (@Nonnull final String sHost, final int nType) throws TextParseException
{
final Lookup aDNSLookup = new Lookup (sHost, nType);
try
{
aDNSLookup.setResolver (new SimpleResolver ());
Expand Down

0 comments on commit 6a8647d

Please sign in to comment.