// Runnable example: Live DNS Lookup (GET /v2.0/dns/live) // Run it from the Getting Started project: gradle run -PmainClass=DnsLiveKt // Parameters for dnsLive (GET /v2.0/dns/live): // - domainName (string, optional) // - ipAddress (string, optional): Use for PTR lookups // - type (string, required): all or comma-separated: A,MX,NS,TXT,SOA,SPF,AAAA,CNAME // - format (string (one of: json, xml), optional) import com.whoisfreaks.client.apis.DNSApi import com.whoisfreaks.client.infrastructure.ApiClient fun main() { ApiClient.apiKey["apiKey"] = System.getenv("WHOISFREAKS_API_KEY") // set once, sent with every call val api = DNSApi() val result = api.dnsLive("A,MX,TXT", domainName = "whoisfreaks.com") println(result) }