Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

mkapra/adguard-sync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AdguardSync

This script syncs the DNS-Rewrite list with the given config file.

Example:

>>> from adguard_sync import AdguardSync
>>> AdguardSync('config.yml')

Configuration File:

---

adguards:
  - hostname: https://10.0.0.3
    username: adguard
    password: adguard_pass
    verify_ssl: False # (Optional, default = True)
  - hostname: https://10.0.0.4
    username: adguard
    password: adguard_pass

dns_records:
  - domain: adguard.test
    address: 10.0.0.3
  - domain: adguard2.test
    address: 10.0.0.4