https://github.com/mikej81/adguard_automator
https://github.com/mikej81/adguard_automator
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikej81/adguard_automator
- Owner: Mikej81
- License: mit
- Created: 2024-04-19T13:19:00.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-20T00:54:47.000Z (about 1 year ago)
- Last Synced: 2025-02-12T17:31:51.531Z (4 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AdGuard Automator
This tool provides a command-line interface to manage DNS rewrites via the AdGuard API. It allows users to add or remove DNS rewrite rules easily using basic authentication.
## Prerequisites
Before you run this tool, make sure you have the following installed:
- Access to an AdGuard server with the API enabled
## Installation
### Option 1
Download the binary.
### Option 2
1. **Clone the repository**
```bash
git clone https://github.com/Mikej81/adguard_automator.git
cd adguard_automator
go build -o ./agauto .
```## Usage
### Add Rewrite
```bash
./agauto --add --url --username --password --domain --value
```Example
```bash
./agauto --add --url http://example.com/control --username admin --password secret --domain example.com --value 192.168.1.1```
### Remove Rewrite
```bash
./agauto --remove --url --username --password --domain --value
```Example
```bash
./agauto --remove --url http://example.com/control --username admin --password secret --domain example.com --value 192.168.1.1```
## Limitations
Today the tool only handles DNS Rewrites, I will add more as I need it.