https://github.com/stariy95/dns-client
Small DNS client library intended primary for network utilities and testing applications
https://github.com/stariy95/dns-client
Last synced: 8 months ago
JSON representation
Small DNS client library intended primary for network utilities and testing applications
- Host: GitHub
- URL: https://github.com/stariy95/dns-client
- Owner: stariy95
- License: other
- Created: 2015-12-14T09:55:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-28T16:22:00.000Z (over 3 years ago)
- Last Synced: 2025-01-05T04:43:40.611Z (10 months ago)
- Language: Java
- Homepage:
- Size: 177 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DNS Client
[](https://github.com/stariy95/dns-client/actions/workflows/build.yml)
[](https://search.maven.org/artifact/com.kendamasoft/dns-client)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
```com.kendamasoft
dns-client
1.1.0```
## Usage:
```java
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);
}
}
}
```