New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mydnsbackend: Add getAllDomains #5043

Merged
merged 1 commit into from Feb 27, 2017

Conversation

Projects
None yet
4 participants
@cmouse
Contributor

cmouse commented Feb 16, 2017

Short description

Add getAllDomains implementation for mydns, so that it can be used with b2b-migrate tool.

Checklist

I have:

@cmouse

This comment has been minimized.

Show comment
Hide comment
@cmouse

cmouse Feb 16, 2017

Contributor

Tested by running test suite for mydns and after that

pdnsutils --config-dir=. --config-name=mydns list-all-zones
Contributor

cmouse commented Feb 16, 2017

Tested by running test suite for mydns and after that

pdnsutils --config-dir=. --config-name=mydns list-all-zones
@pieterlexis

This comment has been minimized.

Show comment
Hide comment
@pieterlexis

pieterlexis Feb 23, 2017

Member

This PR allows for properly doing a pdnsutil b2b-migrate mydns gmysql:

lieter $ ./pdns/pdnsutil --config-dir=.. list-all-zones
example.com
2.0.192.in-addr.arpa
test.dyndns
cdnskey-cds-test.com
delegated.dnssec-parent.com
dnssec-parent.com
minimal.com
nztest.com
secure-delegated.dnssec-parent.com
stest.com
test.com
tsig.com
wtest.com
All zonecount: 13

lieter $ ./pdns/pdnsutil --config-dir=.. b2b-migrate mydns gmysql
Moving zone(s) from mydns to gmysql
Processing 'example.com'
Moved 20134 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing '2.0.192.in-addr.arpa'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'test.dyndns'
Moved 22 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'cdnskey-cds-test.com'
Moved 5 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'delegated.dnssec-parent.com'
Moved 6 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'dnssec-parent.com'
Moved 15 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'minimal.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'nztest.com'
Moved 7 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'secure-delegated.dnssec-parent.com'
Moved 6 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'stest.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'test.com'
Moved 28 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'tsig.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'wtest.com'
Moved 18 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Moved 0 TSIG key(s)
Remember to drop the old backend and run rectify-all-zones

# Changed pdns.conf to disable mydns

lieter $ ./pdns/pdnsutil --config-dir=.. list-all-zones
example.com
2.0.192.in-addr.arpa
test.dyndns
cdnskey-cds-test.com
delegated.dnssec-parent.com
dnssec-parent.com
minimal.com
nztest.com
secure-delegated.dnssec-parent.com
stest.com
test.com
tsig.com
wtest.com
All zonecount: 13
Member

pieterlexis commented Feb 23, 2017

This PR allows for properly doing a pdnsutil b2b-migrate mydns gmysql:

lieter $ ./pdns/pdnsutil --config-dir=.. list-all-zones
example.com
2.0.192.in-addr.arpa
test.dyndns
cdnskey-cds-test.com
delegated.dnssec-parent.com
dnssec-parent.com
minimal.com
nztest.com
secure-delegated.dnssec-parent.com
stest.com
test.com
tsig.com
wtest.com
All zonecount: 13

lieter $ ./pdns/pdnsutil --config-dir=.. b2b-migrate mydns gmysql
Moving zone(s) from mydns to gmysql
Processing 'example.com'
Moved 20134 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing '2.0.192.in-addr.arpa'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'test.dyndns'
Moved 22 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'cdnskey-cds-test.com'
Moved 5 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'delegated.dnssec-parent.com'
Moved 6 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'dnssec-parent.com'
Moved 15 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'minimal.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'nztest.com'
Moved 7 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'secure-delegated.dnssec-parent.com'
Moved 6 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'stest.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'test.com'
Moved 28 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'tsig.com'
Moved 2 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Processing 'wtest.com'
Moved 18 record(s), 0 comment(s), 0 metadata(s) and 0 cryptokey(s)
Moved 0 TSIG key(s)
Remember to drop the old backend and run rectify-all-zones

# Changed pdns.conf to disable mydns

lieter $ ./pdns/pdnsutil --config-dir=.. list-all-zones
example.com
2.0.192.in-addr.arpa
test.dyndns
cdnskey-cds-test.com
delegated.dnssec-parent.com
dnssec-parent.com
minimal.com
nztest.com
secure-delegated.dnssec-parent.com
stest.com
test.com
tsig.com
wtest.com
All zonecount: 13

@pieterlexis pieterlexis merged commit d4c0503 into PowerDNS:master Feb 27, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

pieterlexis added a commit to pieterlexis/pdns that referenced this pull request Nov 7, 2017

pieterlexis added a commit to pieterlexis/pdns that referenced this pull request Nov 13, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment