Fully Qualified Domain API - Dart/Flutter Client

Fully Qualified Domain resolves an IP address to its fully qualified domain name using reverse DNS PTR records. It returns the host FQDN, base domain, TLD, subdomain, and domain level count.

pub package License: MIT

This is the Dart/Flutter client for the Fully Qualified Domain API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_fullyqualifieddomain: ^1.2.5

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_fullyqualifieddomain/apiverve_fullyqualifieddomain.dart';

void main() async {
  final client = FullyqualifieddomainClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'ip': '199.30.24.0'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "ip": "199.30.24.0",
    "baseDomain": "msn.com",
    "fqdn": "msnbot-199-30-24-0.search.msn.com",
    "tld": "com",
    "subdomain": "msnbot-199-30-24-0.search",
    "domainLevels": 5,
    "detected": true
  }
}

API Reference

Authentication

All requests require an API key. Get yours at apiverve.com.

License

MIT License - see LICENSE for details.


Built with Dart for APIVerve

Libraries

apiverve_fullyqualifieddomain
Fully Qualified Domain API client for Dart/Flutter