Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jan-tennert/dnsplugin
A Ktor Plugin for resolving and caching dns ip address on request
https://github.com/jan-tennert/dnsplugin
Last synced: 10 days ago
JSON representation
A Ktor Plugin for resolving and caching dns ip address on request
- Host: GitHub
- URL: https://github.com/jan-tennert/dnsplugin
- Owner: jan-tennert
- Created: 2022-05-11T13:05:01.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-05-11T14:22:38.000Z (over 2 years ago)
- Last Synced: 2024-11-08T04:05:32.171Z (2 months ago)
- Language: Kotlin
- Size: 66.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DNS Plugin
A Ktor plugin for resolving and caching DNS queries when making a request with ktor.
## Installation
```kotlin
implementation("io.github.jan-tennert.dnsplugin:DnsPlugin:1.1")
```## Usage
```kotlin
val http = HttpClient(CIO) {
install(DnsPlugin) {
cacheTime = 8.minutes
dnsResolver = MiniDnsResolver //also available: JvmDnsResolver
}
}
```