Skip to content
adguard-home logo

AdGuard Home Management

adguard-home

Manage, troubleshoot, configure, analyze, and review AdGuard Home DNS server. Use when working with AdGuard Home, DNS blocking, ad blocking, network-wide filtering, DNS queries, blocklists, client management, DHCP, or DNS rewrites. Supports REST API and SSH access.

SKILL.md

Full skill instructions

AdGuard Home Management

This skill provides comprehensive management capabilities for AdGuard Home DNS server running on Ubuntu Server.

Prerequisites

Before using this skill, ensure you have:

  1. Environment variables configured (in .env or shell):

    ADGUARD_URL=https://your-adguard-domain.local
    ADGUARD_USER=admin
    ADGUARD_PASS=your-password
    ADGUARD_SSH_HOST=192.168.x.x
    ADGUARD_SSH_USER=your-ssh-user
    
  2. Python packages installed:

    pip install requests paramiko
    
  3. SSH key authentication (recommended) or password access to Ubuntu server

Quick Reference

API Authentication

All API calls use HTTP Basic Auth:

curl -u "$ADGUARD_USER:$ADGUARD_PASS" "$ADGUARD_URL/​control/​status"

Common Tasks

TaskAPI EndpointMethod
Get status/​control/​statusGET
Get DNS info/​control/​dns_infoGET
Query log/​control/​querylogGET
Get stats/​control/​statsGET
List clients/​control/​clientsGET
Filter status/​control/​filtering/​statusGET
Clear cache/​control/​cache_clearPOST

Core Management Tasks

1. Status & Health Check

Check AdGuard Home status:

python scripts/​adguard_api.py status

Or via curl:

curl -u "$ADGUARD_USER:$ADGUARD_PASS" "$ADGUARD_URL/​control/​status"

2. Query Log Analysis

Analyze DNS queries to troubleshoot issues:

python scripts/​adguard_api.py querylog --limit 100 --search "blocked"

Filter by response status: all, filtered, blocked, blocked_safebrowsing, blocked_parental, whitelisted, rewritten, safe_search, processed

3. Filter Management

View current filters:

python scripts/​adguard_api.py filters

Add a blocklist:

python scripts/​adguard_api.py add-filter --name "My List" --url "https://example.com/​blocklist.txt"

Add custom filtering rule:

# Block domain
||ads.example.com^

# Allow domain (whitelist)
@@||allowed.example.com^

# Block with regex
/​ads[0-9]+\.example\.com/

4. Client Management

List all clients:

python scripts/​adguard_api.py clients

Add/​configure client:

python scripts/​adguard_api.py add-client --name "Living Room TV" --ids "192.168.1.50"

5. DNS Rewrites

List rewrites:

python scripts/​adguard_api.py rewrites

Add rewrite:

python scripts/​adguard_api.py add-rewrite --domain "myserver.local" --answer "192.168.1.100"

6. Statistics & Analytics

Get statistics:

python scripts/​adguard_api.py stats

Reset statistics:

python scripts/​adguard_api.py reset-stats

SSH Server Management

For tasks requiring direct server access:

Service Management

# Check service status
ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "systemctl status AdGuardHome"

# Restart service
ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "sudo systemctl restart AdGuardHome"

# View logs
ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "sudo journalctl -u AdGuardHome -n 100"

Configuration File

Location: /​opt/​AdGuardHome/​AdGuardHome.yaml

# Backup config
ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "sudo cp /​opt/​AdGuardHome/​AdGuardHome.yaml /​opt/​AdGuardHome/​AdGuardHome.yaml.bak"

# View config
ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "sudo cat /​opt/​AdGuardHome/​AdGuardHome.yaml"

Update AdGuard Home

ssh $ADGUARD_SSH_USER@$ADGUARD_SSH_HOST "cd /​opt/​AdGuardHome && sudo ./​AdGuardHome -s stop && sudo ./​AdGuardHome --update && sudo ./​AdGuardHome -s start"

Troubleshooting Guide

See troubleshooting.md for common issues and solutions including:

  • DNS resolution failures
  • Clients not using AdGuard Home
  • High latency issues
  • Blocklist update failures
  • Service startup problems

Best Practices

See best-practices.md for configuration recommendations including:

  • Recommended upstream DNS servers
  • Optimal blocklist selection
  • Security hardening
  • Performance tuning
  • Backup strategies

API Reference

See reference.md for complete API endpoint documentation.

Example Workflows

Investigate Blocked Request

  1. Check query log for the blocked domain
  2. Identify which filter blocked it
  3. Add whitelist rule if false positive
  4. Clear DNS cache
  5. Test resolution

Add New Device with Custom Settings

  1. Identify device IP/​MAC
  2. Create client configuration
  3. Set custom upstream DNS if needed
  4. Configure blocked services
  5. Set parental controls if applicable

Security Audit

  1. Review client list for unknown devices
  2. Check query log for suspicious domains
  3. Verify safebrowsing is enabled
  4. Review TLS configuration
  5. Check for software updates

More skills from diegosouzapw

accessibility logo
diegosouzapw/awesome-omni-skill

accessibility

Accessibility guidelines for VS Code features — covers accessibility help dialogs, accessible views, verbosity settings, accessibility signals, ARIA alerts/status announcements, keyboard navigation, and ARIA labels/roles. Applies to both new interactive UI surfaces and updates to existing feature...

62 1
View
mermaid-diagrams logo
diegosouzapw/awesome-omni-skill

mermaid-diagrams

Mermaid diagram creation for flowcharts, sequences, ERDs, and more. Generate diagrams from text in markdown files. Use for documentation, architecture diagrams, and visual representations. Triggers on mermaid, flowchart, sequence diagram, ERD, entity relationship, gantt chart, pie chart, class di...

62 1
View
tauri2-react-rust logo
diegosouzapw/awesome-omni-skill

tauri2-react-rust

Guides development of cross-platform desktop apps with Tauri 2, TypeScript, React, and Rust. Use when building Tauri apps, implementing IPC, designing Rust backend or TypeScript/React frontend, when researching or cloning a website (open site, snapshot elements), when verifying local dev or built...

62 1
View
fp-ts-errors logo
diegosouzapw/awesome-omni-skill

fp-ts-errors

Handle errors as values using fp-ts Either and TaskEither for cleaner, more predictable TypeScript code. Use when implementing error handling patterns with fp-ts.

62 0
View
ring:pre-dev-research logo
diegosouzapw/awesome-omni-skill

ring:pre-dev-research

Gate 0 research phase for pre-dev workflow. Dispatches 3 parallel research agents to gather codebase patterns, external best practices, and framework documentation BEFORE creating PRD/TRD. Outputs research.md with file:line references.

62 0
View
create-assistant logo
diegosouzapw/awesome-omni-skill

create-assistant

Create and configure Vapi voice AI assistants with models, voices, transcribers, tools, hooks, and advanced settings. Use when building voice agents, phone bots, customer support assistants, or any conversational AI that handles phone or web calls.

62 0
View
codex-headless logo
diegosouzapw/awesome-omni-skill

codex-headless

Delegiere Aufgaben an OpenAI Codex CLI im Headless-Mode. Nutzt ChatGPT Subscription (KEIN API Key). Nur Workspace-Zugriff, KEIN System-Zugriff. Auto-Accept mit --full-auto. Web-Recherche mit --search.

62 0
View
social-media-scheduler logo
diegosouzapw/awesome-omni-skill

social-media-scheduler

Generate a full week of social media content for any topic. Outputs platform-optimized posts for Twitter/X, LinkedIn, and Instagram with hashtags and posting times.

62 0
View
Data Privacy Compliance logo
diegosouzapw/awesome-omni-skill

Data Privacy Compliance

Data privacy and regulatory compliance specialist for GDPR, CCPA, HIPAA, and international data protection laws. Use when implementing privacy controls, conducting data protection impact assessments, ensuring regulatory compliance, or managing data subject rights. Expert in consent management, da...

62 0
View
triple-review logo
diegosouzapw/awesome-omni-skill

triple-review

Reviews a task using the TRIPLE protocol, as the review agent.

62 0
View
Tech Stack & Architecture Decision logo
diegosouzapw/awesome-omni-skill

Tech Stack & Architecture Decision

Define and document the technology stack and architecture decisions for a project. Use when the user needs to choose a tech stack, make architecture decisions, define infrastructure choices, or document technology selections. Triggers on requests like "define the tech stack", "choose technologies...

62 0
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View