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, be‐
39 low.
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 al‐
46 ready exists, its SOA record will be updated (from the external
47 source), all resource records for that zone are purged, and a
48 new set of resource records is loaded from the external source.
49
50
51 --notrim
52 Normally the zone origin is removed from labels when importing,
53 in order to save space in the database. In other words,
54 host.example.com. becomes just host. Using the --notrim option
55 inhibits this behavior.
56
57
58 -D, --database=dbname
59 Use the database called dbname.
60
61
62 -h, --host=hostname
63 Connect to database server at hostname.
64
65
66 -p, --pass=password
67 Supply password when connecting to the database server. If the
68 password argument is omitted, it will be prompted on the tty.
69
70
71 -t, --tinydns=file
72 Load zone information from the specified file, which is in
73 tinydns-data format. When importing from a tinydns data file,
74 zone may be omitted from the command line, in which case all
75 zones found in the file are imported.
76
77
78 -u, --user=username
79 Use username when connecting to the database server.
80
81
82 -v, --verbose
83 Enable verbose output while running.
84
85
86 --help Display program help and exit.
87
88
89 --version
90 Output version number and exit.
91
92
93
95 When started with the -o (--output) option, mydnsimport outputs lines
96 in the following format:
97
98
99 SOA "soa" <TAB> origin <TAB> ns <TAB> mbox <TAB> serial <TAB> re‐
100 fresh <TAB> retry <TAB> expire <TAB> minimum <TAB> ttl
101
102
103 RR "rr" <TAB> name <TAB> type <TAB> data <TAB> aux <TAB> ttl
104
105
106 PTR "ptr" <TAB> address <TAB> name <TAB> ttl
107
108
109
111 Don Moore <bboy@bboy.net> Howard Wilkinson <howard@cohtech.com>
112
113
114
116 http://mydns.bboy.net
117
118
119
121 mydns(8), mydns.conf(5), mydnscheck(8), mydnsexport(8)
122
123
124
125
126
127mydns 1.2.8.32 Feb 2021 mydnsimport(8)