100 Commits (master)
 

Author SHA1 Message Date
Vitaliy Filippov c03be448e0 Send empty replies to AAAA requests
In conformance with https://tools.ietf.org/html/rfc4074 # Expected Behavior
3 years ago
Vitaliy Filippov 57dfab11eb Enable TCP by default and add option to disable it 3 years ago
Vitaliy Filippov 42c7d2b5e6 Add dns_address cli parameter 3 years ago
Vitaliy Filippov 63a7cc1603 Add systemd unit 3 years ago
Vitaliy Filippov 6de1109854 Change to a non-root user after starting the server 3 years ago
Justin Riley 5805c65dc4 Merge branch 'daemon-log-sync-errors' into 'master'
catch and log all sync exceptions in daemon

See merge request !3
6 years ago
Justin Riley 1d7f8dcf63 catch and log all sync exceptions in daemon
...instead of crashing.
6 years ago
Justin Riley 29ac797907 Merge branch 'add-version-flag' into 'master'
add --version flag

Closes #1

See merge request !2
6 years ago
Justin Riley 16dd655a94 add --version flag
closes #1
6 years ago
Justin Riley 7d410cf195 Merge branch 'gitlab-ci' into 'master'
build docker container after tests pass

See merge request !1
6 years ago
Justin Riley 4dd482eb3d build docker container after tests pass 6 years ago
Justin Riley 763616c132 Merge branch 'daemon-sync-interval' 7 years ago
Justin Riley f71b8080cc daemon: sync with opennebula on defined interval
- Added --sync-interval option that defaults to 5 minutes
7 years ago
Justin Riley 16d697f18d add docker image for onedns 7 years ago
Justin Riley 198fa9f770 daemon: set default dns port to 53 7 years ago
Justin Riley 3c38aa9baa README: fix badge urls [ci-skip] 7 years ago
Justin Riley 2b821f4a61 gitlab-ci: enable pip cache 7 years ago
Justin Riley 9c188b6022 limit test discovery to onedns directory [ci-skip] 7 years ago
Justin Riley 3cb6146c80 remove unnecessary after script
...this is redundant given that we have --cov-report in [tool:pytest] in
setup.cfg
7 years ago
Justin Riley c06c7bbbce Merge branch 'gitlab-ci' 7 years ago
Justin Riley ab73b9acb7 remove 'coverage {combine,html}' commands 7 years ago
Justin Riley 26fb8c0abb bump pytest and plugins to latest versions 7 years ago
Justin Riley 40dfd97292 gitlab-ci: setup ONE_AUTH for tests 7 years ago
Justin Riley 9246a4b813 README: add build and coverage status 7 years ago
Justin Riley ceb941d501 add gitlab continuous integration config 7 years ago
Justin Riley 74cd3fb003 add test-requirements.txt for test dependencies 7 years ago
Justin Riley 999adab4b2 Merge branch 'dnslib' 7 years ago
Justin Riley f05db7d322 tests: add fixtures from opennebula test instance 7 years ago
Justin Riley b4d64b327f README: add usage 7 years ago
Justin Riley f9554f7f79 resolver: remove unused future print import 7 years ago
Justin Riley 9ca71db458 server: sanitize VM names in _get_vm_dns_entries
...using the same method as 15-hostname in OpenNebula/addon-context-linux
7 years ago
Justin Riley 9b47eb8f08 setup.cfg: use [tool:pytest] instead of [pytest]
...[pytest] is deprecated
7 years ago
Justin Riley abd1744553 utils: add tests for get_fqdn 7 years ago
Justin Riley 5475be37f2 add tests for onedns.server (now at 100% coverage) 7 years ago
Justin Riley 4c245819ce server: implement tiebreaker for VMs with same name/IP
The tiebreaker is first-come first serve - ie whichever VM had the name
or IP first wins (based on VM id). The sync() method now sorts the VM
list by id in order to evaluate the tiebreaker correctly (VM list comes
that way from ONED but just in case...).
7 years ago
Justin Riley a7051e0689 server: build new zone and replace live copy in sync
Instead of clearing the live zone and iterating through and adding
records from OpenNebula we build an entirely new zone, sync it with
OpenNebula, and instantaneously swap it with the currently live zone.
This minimizes the amount of time that the DNS server is missing entries
while its syncing with OpenNebula.
7 years ago
Justin Riley 3a07adba10 resolver: add zone kwarg to {add,remove}_host methods 7 years ago
Justin Riley bc88849e31 add utils for verifying presence/absence in DNS 7 years ago
Justin Riley 8bad8b47d4 add tests for onedns base exception 7 years ago
Justin Riley a97e9f687c add tests for cli 7 years ago
Justin Riley b735c84a04 resolver: add thread mutex and use new zone module 7 years ago
Justin Riley 2c0283fdb7 add zone module with in-memory zone implementation 7 years ago
Justin Riley 56f6998753 add vms fixture that gets recorded using vcrpy
Should help prevent creating duplicate vcrpy yaml's in
onedns/tests/fixtures for the same 'get all vms' request in multiple
tests.
7 years ago
Justin Riley 6892508b9e resolver: add zone kwarg to add_host
This will allow OneDNS.sync to build a new zone and instantly swap it
with the currently active zone to minimize downtime.
7 years ago
Justin Riley ec8c1902ab move get_fqdn to onedns.utils module 7 years ago
Justin Riley 7f2a3ca8a8 add kwargs for server, port, and tcp to dnsquery 7 years ago
Justin Riley 6fecaed95a add optional vms kwarg to sync for testing 7 years ago
Justin Riley 9ba49ee677 tests: move dns query code to onedns.tests.utils 7 years ago
Justin Riley e6a1724251 fix flake8 failures 7 years ago
Justin Riley 2c32c03ab4 vcr: scrub ONE xmlrpc auth from recordings 7 years ago