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. Triggers on adguard, DNS blocki...

SKILL.md

Full skill instructions

AdGuard Home Management

Comprehensive management capabilities for AdGuard Home DNS server.

Prerequisites

Environment Variables

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

Python Packages

pip install requests paramiko

Quick Reference

API Authentication

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

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

2. Query Log Analysis

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

Filter by response status: all, filtered, blocked, blocked_safebrowsing, blocked_parental, whitelisted, rewritten, 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"

Custom filtering rules:

# 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

python scripts/​adguard_api.py stats
python scripts/​adguard_api.py reset-stats

SSH Server Management

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"

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

Troubleshooting

DNS Resolution Failures

  1. Check AdGuard Home service status
  2. Verify upstream DNS servers
  3. Check network connectivity
  4. Review query log for errors

Clients Not Using AdGuard Home

  1. Verify client DHCP settings
  2. Check if client has hardcoded DNS
  3. Review router DNS configuration
  4. Check firewall rules

High Latency

  1. Check upstream DNS performance
  2. Review blocklist count
  3. Enable DNS caching
  4. Consider local upstream resolver

Best Practices

  1. Use encrypted DNS - DoH/​DoT for upstream
  2. Regular blocklist updates - Keep filters current
  3. Monitor query patterns - Watch for anomalies
  4. Backup configuration - Before major changes
  5. Enable safebrowsing - Additional protection
  6. Configure rate limiting - Prevent abuse
  7. Use client groups - Different policies per device
  8. Regular log review - Security monitoring

When to Use This Skill

  • Managing AdGuard Home installation
  • Troubleshooting DNS issues
  • Configuring blocklists and filters
  • Setting up client-specific rules
  • Analyzing DNS queries
  • Managing DNS rewrites
  • Performing security audits

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
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