Skip to content

United-NetworX/Nepustil-RDNS-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nepustil RDNS API

Python API um PTR DNS Records für IP Adressen eines Subnetz zu setzen.

Usage

In der main.py die Variablen User und Passwort setzen.

BASE_URL="https://dnsadm.nepustil.net/index.cgi"
user=""
password=""

Zum Import der Library:

from nepustil_dns_api import existsRecord, removeRecord, addRecord, getRecords

# Check if Record Exists
if(existsRecord("111")):
    # Remove Record if Exists
    removeRecord("111")
# Add Record
addRecord("test.de", "111")
# Print all Records
print(getRecords())