1mydnsimport(8) System Administrator's Manual mydnsimport(8)
2
3
4
6 mydnsimport - Import zone data from external sources.
7
9 mydnsimport [-a, --axfr=host] [-D, --database=dbname] [-h, --host=host‐
10 name] [-o, --output] [-p, --password[=password]] [-r, --replace] [-t,
11 --tinydns=file] [--notrim] [-u, --user=username] [-v, --verbose]
12 [--help] [--version] ZONE [...]
13
14
15
17 mydnsimport imports zone data into MyDNS from an external source. If
18 an import technique is specified (for example, via the --axfr option),
19 the specified zone data will be loaded and mydnsimport will add the
20 zone data to your database.
21
22 Currently, --axfr and --tinydns are the only import techniques recog‐
23 nized.
24
25
26
28 -a, --axfr=hostname[:port]
29 Load zone information from the specified hostname via the DNS-
30 based AXFR command.
31
32
33 -o, --output
34 If this option is specified, mydnsimport outputs zone data in a
35 computer-friendly format instead of modifying the database.
36 Each line of output consists of a line type (soa, rr, or ptr)
37 followed by multiple fields. Fields within each line are sepa‐
38 rated by the TAB (ASCII 0x09) character. See LINE SYNTAX,
39 below.
40
41
42 -r, --replace
43 When importing, if the zone specified already exists, mydnsim‐
44 port will refuse to make changes to the database unless this
45 flag is provided. When this flag is provided, if the zone
46 already exists, its SOA record will be updated (from the exter‐
47 nal source), all resource records for that zone are purged, and
48 a new set of resource records is loaded from the external
49 source.
50
51
52 --notrim
53 Normally the zone origin is removed from labels when importing,
54 in order to save space in the database. In other words,
55 host.example.com. becomes just host. Using the --notrim option
56 inhibits this behavior.
57
58
59 -D, --database=dbname
60 Use the database called dbname.
61
62
63 -h, --host=hostname
64 Connect to database server at hostname.
65
66
67 -p, --pass=password
68 Supply password when connecting to the database server. If the
69 password argument is omitted, it will be prompted on the tty.
70
71
72 -t, --tinydns=file
73 Load zone information from the specified file, which is in
74 tinydns-data format. When importing from a tinydns data file,
75 zone may be omitted from the command line, in which case all
76 zones found in the file are imported.
77
78
79 -u, --user=username
80 Use username when connecting to the database server.
81
82
83 -v, --verbose
84 Enable verbose output while running.
85
86
87 --help Display program help and exit.
88
89
90 --version
91 Output version number and exit.
92
93
94
96 When started with the -o (--output) option, mydnsimport outputs lines
97 in the following format:
98
99
100 SOA "soa" <TAB> origin <TAB> ns <TAB> mbox <TAB> serial <TAB>
101 refresh <TAB> retry <TAB> expire <TAB> minimum <TAB> ttl
102
103
104 RR "rr" <TAB> name <TAB> type <TAB> data <TAB> aux <TAB> ttl
105
106
107 PTR "ptr" <TAB> address <TAB> name <TAB> ttl
108
109
110
112 Don Moore <bboy@bboy.net> Howard Wilkinson <howard@cohtech.com>
113
114
115
117 http://mydns.bboy.net
118
119
120
122 mydns(8), mydns.conf(5), mydnscheck(8), mydnsexport(8)
123
124
125
126
127
128mydns 1.2.8.32 Mar 2020 mydnsimport(8)