Skip to content
OpenSmartRoute
Skillv1.0.0

x-dns

DNS configuration management utilities. View current DNS settings, list available DNS servers, and refresh DNS cache on the system. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-

by x-cmd(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from x-cmd/x-cmd (mod/dns/SKILL.md). Install upstream with npx skills add x-cmd/x-cmd --skill dns. Copyright stays with the author (Apache-2.0).

x dns - DNS Configuration Utilities

DNS (Domain Name System) configuration management utilities.


Quick Start

# Show current DNS configuration
x dns

# List available DNS servers
x dns ls

# Refresh DNS cache
x dns refresh

Features

  • Current DNS: View current DNS configuration
  • DNS List: List available DNS server addresses
  • DNS Refresh: Flush and refresh DNS cache
  • Multiple Formats: JSON, YAML, CSV output support

Commands

Command Description
x dns Show current DNS configuration (default)
x dns current View detailed current DNS settings
x dns ls List all available DNS servers
x dns ls --json List DNS servers in JSON format
x dns ls --yml List DNS servers in YAML format
x dns ls --csv List DNS servers in CSV format
x dns refresh Refresh system DNS cache

Examples

View DNS Configuration

# Show current DNS
x dns

# View detailed settings
x dns current

List DNS Servers

# List all available DNS servers
x dns ls

# JSON format
x dns ls --json

# YAML format
x dns ls --yml

# CSV format
x dns ls --csv

Refresh DNS Cache

# Flush and refresh DNS cache
x dns refresh

Platform Notes

  • Linux: Uses systemd-resolve, NetworkManager, or resolv.conf
  • macOS: Uses scutil and dscacheutil
  • Windows: Uses ipconfig and netsh

Related

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/x-cmd-x-cmd-dns/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

x-cmd-x-cmd-dns.ocm.jsonjson
{
  "ocm": "1",
  "id": "x-cmd-x-cmd-dns",
  "kind": "skill",
  "name": "x-dns",
  "description": "DNS configuration management utilities. View current DNS settings, list available DNS servers, and refresh DNS cache on the system. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation.",
  "publisher": "x-cmd",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "x-cmd",
      "network",
      "dns",
      "configuration",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "DNS configuration management utilities. View current DNS settings, list available DNS servers, and refresh DNS cache on the system. **Dependency**: This is an x-cmd module. Install x-cmd first (see x-cmd skill for installation options). see x-cmd skill for installation."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/x-cmd/x-cmd",
      "path": "mod/dns/SKILL.md",
      "ref": "e18c1ef8b4695c7556c4e847b2eb7eaac13b9230",
      "url": "https://github.com/x-cmd/x-cmd/blob/e18c1ef8b4695c7556c4e847b2eb7eaac13b9230/mod/dns/SKILL.md",
      "key": "x-cmd/x-cmd/mod/dns/SKILL.md"
    },
    "compatibility": "POSIX Shell",
    "license": "Apache-2.0"
  },
  "instructions": "# x dns - DNS Configuration Utilities\n\n> DNS (Domain Name System) configuration management utilities.\n\n---\n\n## Quick Start\n\n```bash\n# Show current DNS configuration\nx dns\n\n# List available DNS servers\nx dns ls\n\n# Refresh DNS cache\nx dns refresh\n```\n\n---\n\n## Features\n\n- **Current DNS**: View current DNS configuration\n- **DNS List**: List available DNS server addresses\n- **DNS Refresh**: Flush and refresh DNS cache\n- **Multiple Formats**: JSON, YAML, CSV output support\n\n---\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `x dns` | Show current DNS configuration (default) |\n| ",
  "cost": {
    "context_tokens": 368
  }
}

Fetch it by URL: GET /api/v1/registry/x-cmd-x-cmd-dns/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.