dns-client

Compact DNS client library intended primary for network utilities and testing applications

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

com.kendamasoft
ArtifactId

ArtifactId

dns-client
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

dns-client
Compact DNS client library intended primary for network utilities and testing applications
Project URL

Project URL

https://github.com/stariy95/dns-client
Source Code Management

Source Code Management

https://github.com/stariy95/dns-client

Download dns-client

How to add to project

<!-- https://jarcasting.com/artifacts/com.kendamasoft/dns-client/ -->
<dependency>
    <groupId>com.kendamasoft</groupId>
    <artifactId>dns-client</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.kendamasoft/dns-client/
implementation 'com.kendamasoft:dns-client:1.1.0'
// https://jarcasting.com/artifacts/com.kendamasoft/dns-client/
implementation ("com.kendamasoft:dns-client:1.1.0")
'com.kendamasoft:dns-client:jar:1.1.0'
<dependency org="com.kendamasoft" name="dns-client" rev="1.1.0">
  <artifact name="dns-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.kendamasoft', module='dns-client', version='1.1.0')
)
libraryDependencies += "com.kendamasoft" % "dns-client" % "1.1.0"
[com.kendamasoft/dns-client "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

DNS Client

Verify build Maven Central

Compact DNS client library intended primary for network utilities and testing applications. It is fully compatible with Android 2.3 and newer and with standalone JRE 7 and newer.

Release Notes

1.1.0

  • Initial support for DNS-over-HTTPS protocol
  • Support additional records types

1.0.0

  • Initial release

Installation:

Gradle

dependencies {
    compile 'com.kendamasoft:dns-client:1.1.0'
}

Maven

<dependency>
   <groupId>com.kendamasoft</groupId>
   <artifactId>dns-client</artifactId>
   <version>1.1.0</version>
</dependency>

Usage:

import java.io.IOException;
import com.kendamasoft.dns.protocol.*;

public class DnsTest {

    static public void main(String... args) throws IOException {
        Message request = new MessageBuilder()
                .setName("example.com")
                .setType(RecordType.ANY)
                .build();

        Message response = new DnsConnectionAuto().doRequest(request);
        for (ResourceRecord record : response.getAllRecords()) {
            System.out.println(record);
        }
    }
}

Versions

Version
1.1.0
1.0.0
0.9.5
0.9.4