Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
}

}
```