[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | ![]() |
The only import option supported at this time is the `-a, --axfr'
option. Pretty much every name server on the market supports DNS-based
zone transfers via AXFR
. Make sure your MyDNS server has
permission to request a zone transfer for the zone you wish to import,
then specify the host name and zone name with the `--axfr' option.
If you want to test permissions, you can use something like:
# dig @bind.example.com axfr example.com |
Let's say you have a BIND server located at bind.example.com
and
you are going to get rid of it and switch to MyDNS. Great! You want to
import the zones example.com
and example.net
, as well as
the PTR records from 1.168.192.in-addr.arpa
. You would issue
the following commands:
# mydnsimport --axfr=bind.example.com example.com example.net | mysql mydns # mydnsimport --axfr=bind.example.com 1.168.192.in-addr.arpa | mysql mydns |
As you can see, in the example I'm piping the output from mydnsimport
into the mysql
program. That's because mydnsimport
outputs
SQL statements. If you're the cautious type, you can redirect the output
to a file and examine it first, before actually adding the records to
your database.
For an explanation of all available options, please see the `mydnsimport(8)' man page.