mirror of
https://github.com/vbrandl/bind9-api.git
synced 2025-07-23 00:57:17 +02:00
Compare commits
18 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
8dd1a1b0fa
|
||
|
d87cbf9d0f
|
||
|
3af4ccf2d2
|
||
|
d50bfb83dc
|
||
|
811ff79a60
|
||
|
106a7cad2b
|
||
|
cfda91af97
|
||
|
33f9eedce1
|
||
|
4302f7e70c
|
||
|
48bb9264f6
|
||
|
cbc89e6d37
|
||
|
171b98d307
|
||
|
6c1efac41b
|
||
|
5202f65f78
|
||
|
50fcfaf736
|
||
|
a5506eadfe
|
||
|
28b486a9b0
|
||
|
db74a8525e
|
@@ -1,16 +1,23 @@
|
||||
sudo: required
|
||||
language: rust
|
||||
services:
|
||||
- docker
|
||||
script:
|
||||
- docker run --rm -it -v "$(pwd)":/home/rust/src ekidd/rust-musl-builder sh -c 'sudo chown -R rust . && cargo test && cargo build --release'
|
||||
|
||||
cache: cargo
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: never
|
||||
|
||||
before_deploy:
|
||||
- ./ci/before_deploy.sh
|
||||
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
secure: "GHjOIiBMx3/0hqRsg4fAaNKeTbcgmS55AvzHGQUB8ZYIxbhRysIGk6ovdBS5RHE9t6uPlp3zdZ8Iw9s63zTH+z/l+eLA+9quT+Ls9g6/MKpTfmLgu+Fg5ilJllEzDG1MBEbneoU38hpBECJuoUX78JN8ss7Xu61vgXf/5R2lBtoxwqMLwUse0vbHnR8NQNsBKrOC1XETWRXTBnC1X2dJ4JbI5FprihHtxmkh4mC+gJRm/1RIO+oegRnR5H8d/w3A9cou750neR9rESh6NBZBgjLR+odwE+nZRJXqoYfhExKAa9MAK1HAj0f9IXGw4tRApUF4fU0dKHa5E4I2MjNJoLw88lG6Rt/+897LJrGN+Csf65vmvLANlKlhdme/+nyG0vOcTuuv5tTl/2DaytShw2Jjp7eT4iHVyS0/nuk2Z80nZyhlBoDyg2VwBfMoMYslphqbV3PVBnsnTp7LOBb7m6WpHZIB/QsXVUMhIoQGE7kgZxSA+TfiX5BGO7fYihFqdoqB4ddEm63ciJVE3ZQv2wYgHIuStoY7wu8nPzK4X0h5r84BaGGnuiL1nyKe3NgTHdU59LHLbM66//M0rJzxqjV7SjnQag/F8G/EbD0aq6CF4fXOUvIf+vXBVOPR45QTayjdbljm5GLPoGqHNyaaULsh5O2W4onn40PcaXKOkSs="
|
||||
secure: "fdLXKxM5eLdQq/TrFjwp2NpJP6e7zp4yjtxaXvHSvETkEGz5ZiLFbIhP0Qql6f4qjDAfipoQZUD47ibYlcKDYoX9iXDOPWGqpTvrmGer43voZRhPJXuqfJIevRBnFm15xZKJtnIa4COF+LhOSCLsueajtZQOC1MV6GV2E1PBnkprawtusvmnjQDo2KiEBwQ4W5VfKtemXoihc+JF+efwpCv9tvsjkhtiyxxxFXVb1wGa+kY3vIBzXm7lao8oYhq9qS8nD/dsxZ3HywKM2y3YJDxwDg+S2e+NutleppnqDbjr9NjijF382PJlLhqTBu3C+Zi+yLZeTGPf4fR14Y8ZoycTYkPg+2fjL5HbIWd/NtHQVF25Pk3vkgMX6D+jLJ5pLGatl7eYw1cSolNy/RGmIzOsgFTy2a1N4kVJB+azcLLQHaG6UPL/DhN6xozlrtOR7PyIBSvW6DZrLmaCgIPquuZ4iHtNJZkEFYaL+/NIsgMHiSGNNtaY5jzDifFL/FKzG6/nu6MCagxIME2sLcoCWAmVCiA/JKKxc0+1+S3Z+duHcJ+WtRb7dLDZAr23qo1CmEWK3W60XMGVHGO+RuYu7+0nVUqe3GY3TRDWmxkz+t/VHUtYKQHc2jixSWeK2o5j8yeU7LnpS/H3rCnm1CJmiWi7wyGUx78GPaczHtgcOdM="
|
||||
file_glob: true
|
||||
file:
|
||||
- deploy/*
|
||||
|
14
README.md
14
README.md
@@ -1,5 +1,9 @@
|
||||
# BIND9 API
|
||||
|
||||
[](https://travis-ci.org/vbrandl/bind9-api)
|
||||
[](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-MIT)
|
||||
[](https://github.com/vbrandl/bind9-api/blob/master/LICENSE-APACHE)
|
||||
|
||||
This is an attempt to implement an API to create, update or delete DNS records
|
||||
on a BIND9 DNS server.
|
||||
|
||||
@@ -108,6 +112,14 @@ In `letsencrypt/`, two example scripts can be found to use the client as a
|
||||
certbot hook for DNS challenges. It assumes that the client is located somewhere
|
||||
in `$PATH` and that the configurations file exists.
|
||||
|
||||
To obtain a new certificate, certbot can be invoked as followed:
|
||||
|
||||
```
|
||||
certbot certonly -n --agree-tos --server https://acme-v02.api.letsencrypt.org/directory --preferred-challenges=dns-01
|
||||
--manual --manual-auth-hook /usr/lib/letsencrypt-bind9/certbot-bind9-auth --manual-cleanup-hook
|
||||
/usr/lib/letsencrypt-bind9/certbot-bind9-cleanup --manual-public-ip-logging-ok -d example.com -d '*.example.com'
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
This project is licensed under either of
|
||||
@@ -117,4 +129,4 @@ This project is licensed under either of
|
||||
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
||||
http://opensource.org/licenses/MIT)
|
||||
|
||||
at your option.
|
||||
at your option.
|
||||
|
@@ -3,13 +3,13 @@
|
||||
set -ex
|
||||
|
||||
main() {
|
||||
local src=$(pwd) \
|
||||
stage=$src/deploy
|
||||
local src=$(pwd)
|
||||
local stage=$src/deploy
|
||||
|
||||
mkdir -p $deploy
|
||||
mkdir -p $stage
|
||||
|
||||
test -f Cargo.lock || cargo generate-lockfile
|
||||
cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS_TAG:1}-x86_64-musl
|
||||
cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS_TAG:1}-x86_64-musl
|
||||
}
|
||||
|
||||
cp target/x86_64-unknown-linux-musl/release/bind9-api $stage/bind9-api-${TRAVIS-TAG:1}-x86_64-musl
|
||||
cp target/x86_64-unknown-linux-musl/release/bind9-api-client $stage/bind9-api-client-${TRAVIS-TAG:1}-x86_64-musl
|
||||
}
|
||||
main
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bind9-api-client"
|
||||
version = "0.1.0"
|
||||
version = "0.1.3"
|
||||
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
|
||||
description = "Client for the BIND9 API"
|
||||
license = "MIT/Apache-2.0"
|
||||
@@ -18,4 +18,4 @@ reqwest = "0.8.6"
|
||||
serde = "1.0.69"
|
||||
serde_derive = "1.0.69"
|
||||
serde_json = "1.0.22"
|
||||
toml = "0.4.6"
|
||||
toml = "0.4.6"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "bind9-api"
|
||||
version = "0.1.0"
|
||||
version = "0.1.3"
|
||||
authors = ["Valentin Brandl <vbrandl@riseup.net>"]
|
||||
description = "Web API to create, update and remove DNS entries in bind9"
|
||||
license = "MIT/Apache-2.0"
|
||||
@@ -15,4 +15,4 @@ futures = "0.1.21"
|
||||
log = "0.4.3"
|
||||
pretty_env_logger = "0.2.3"
|
||||
serde = "1.0.69"
|
||||
serde_json = "1.0.22"
|
||||
serde_json = "1.0.22"
|
||||
|
Reference in New Issue
Block a user