GitBucket
Toggle navigation
Pull requests
Issues
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Commit Graphs
Network
Fork
: 0
server
/
certbot-dns-inwx
Browse code
eck record type
master
1 parent
4fb96e0
commit
25478dac9a9f0cd2f825c6e873861dbb27483c32
Pascal Gollor
authored
on 29 Dec 2018
Patch
Unified
Split
Showing
3 changed files
+2
-0
■
■
■■■
.gitignore
+3
-0
■
■
■
■■
README.md
+1
-5
■
■
■
■
■
update-record.py
Ignore Space
Show notes
View
2
■
■
■■■
.gitignore
0 → 100644
conf
.
cfg
Ignore Space
Show notes
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
Ignore Space
Show notes
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
):
Show line notes below