eck record type
1 parent 4fb96e0 commit 25478dac9a9f0cd2f825c6e873861dbb27483c32
@Pascal Gollor Pascal Gollor authored on 29 Dec 2018
Showing 3 changed files
View
2
■■■
.gitignore 0 → 100644
conf.cfg
View
3
■■
README.md
Tested with debian 9 and ubuntu 16.04.
 
 
## requirements
 
There mus be exist an uniqe combination of subdomain and record type!
 
A file `conf.cfg` with inwx settings must e exist in the repository root folder like:
```
[live]
username = [USERNAME]
password = [PASSWORD]
shared_secret = your_shared_secret
```
 
 
## example usage
 
### command line
View
6
update-record.py
ret = inwx_conn.nameserver.info({'domain': domain})
records = ret['resData']['record']
 
for r in records:
if (r['name'] == args.domain):
if (r['name'] == args.domain and r['type'] == args.record_type):
subId = r['id']
if (verbose):
print(r)
# end if
break
# end if
# end for
 
if (verbose):
print('subdomain id: ' + str(subId))
# end if
 
if (args.delete):
if (subId >= 0):
if (verbose):