documentation: remove plibc mention.
[oweals/gnunet.git] / doc / man / gnunet-zoneimport.1
1 .\" This file is part of GNUnet.
2 .\" Copyright (C) 2001-2019 GNUnet e.V.
3 .\"
4 .\" Permission is granted to copy, distribute and/or modify this document
5 .\" under the terms of the GNU Free Documentation License, Version 1.3 or
6 .\" any later version published by the Free Software Foundation; with no
7 .\" Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.  A
8 .\" copy of the license is included in the file
9 .\" FDL-1.3.
10 .\"
11 .\" A copy of the license is also available from the Free Software
12 .\" Foundation Web site at http://www.gnu.org/licenses/fdl.html.
13 .\"
14 .\" Alternately, this document is also available under the General
15 .\" Public License, version 3 or later, as published by the Free Software
16 .\" Foundation.  A copy of the license is included in the file
17 .\" GPL3.
18 .\"
19 .\" A copy of the license is also available from the Free Software
20 .\" Foundation Web site at http://www.gnu.org/licenses/gpl.html
21 .\"
22 .\" SPDX-License-Identifier: GPL3.0-or-later OR FDL1.3-or-later
23 .\"
24 .Dd April 23, 2018
25 .Dt GNUNET-ZONEIMPORT 1
26 .Os
27 .Sh NAME
28 .Nm gnunet-zoneimport
29 .Nd
30 import DNS zone into GNS zone
31 .Sh SYNOPSIS
32 .Nm
33 .Op Fl c Ar FILENAME | \-config= Ns Ar FILENAME
34 .Op Fl h | \-help
35 .Op Fl m Ar RELATIVETIME | Fl \-minimum-expiration= Ns Ar RELATIVETIME
36 .Op Fl s Ar MAPSIZE | Fl \-size= Ns Ar MAPSIZE
37 .Op Ar \IP
38 .Sh DESCRIPTION
39 .Nm
40 reads a list of domain names (FQDN) from stdin and issues DNS queries for each of the domain names given.
41 It then checks if a local ego with a name matching the domain exists.
42 Specifically, if the domain name is "example.fr", it will check if an ego "fr" exists, while for a domain "example.com.fr" it will look for an ego called "com.fr").
43 If so, it will convert the DNS records into GNS records (in particular converting NS records and glue records to GNS2DNS records) and add them to the namestore under the label ("example" in the examples above).
44 .Pp
45 The arguments given to gnunet-zoneimport is a list of IP addresses of DNS servers to query.
46 .Pp
47 gnunet-zoneimport will usually never terminate: it will check when DNS records expire, and re-issue requests when the old DNS records have expired so that GNS always has the latest data.
48 .Pp
49 gnunet-zoneimport will issue many DNS queries in parallel, but is rate-limited in various ways, so most DNS servers should easily handle the load.
50 gnunet-zoneimport will perform a limited number of retries if queries fail.
51 .Pp
52 gnunet-zoneimport operates incrementally.
53 It will check if the namestore already has (non-expired) records stored for a given name in the respective zone and not issue those requests again.
54 Thus, it is fine to restart gnunet-zoneimport whenever the list of domain names changes.
55 .Pp
56 Finally, gnunet-zoneimport keeps information for each domain name in memory.
57 This consumes about 200 bytes per domain name, or 1 GB for 5 million labels.
58 .Bl -tag -width indent
59 .It Fl c Ar FILENAME | \-config= Ns Ar FILENAME
60 Use the configuration file FILENAME.
61 .It Fl h | \-help
62 Print short help on options.
63 .It Fl m Ar RELATIVETIME | Fl \-minimum-expiration= Ns Ar RELATIVETIME
64 Ensure that imported DNS records never have an expiration time that is less than RELATIVETIME into the future.
65 RELATIVETIME is a time given like "1 week" or "1 h".
66 If DNS returns records with a shorter lifetime, gnunet\-zoneimport will simply bump the lifetime to the specified value (relative to the time of the import).
67 Default is zero.
68 .It Fl s Ar MAPSIZE | Fl \-size= Ns Ar MAPSIZE
69 Specifies the size (in number of entries) to use for the main hash map.
70 The value provided should be at least twice the number of domain names that will be given to the tool.
71 This option is required for very large zones where the number of records encountered is too large for the automatic growth mechanism to work (that one is limited to at most 16 MB allocations for security reasons).
72 Do not worry about this unless you are importing millions of domain names from a zone.
73 .It Ar \IP
74 IP Is the list of IPs given.
75 .El
76 .Sh EXAMPLES
77 Typical invocaton would be:
78 .Pp
79 .Dl $ gnunet\-zoneimport 1.2.3.4 < names.txt
80 .Sh SEE ALSO
81 .Xr gnunet-gns 1 ,
82 .Xr gnunet-namestore 1
83 .sp
84 The full documentation for gnunet is maintained as a Texinfo manual.
85 If the
86 .Xr info 1
87 and gnunet programs are properly installed at your site, the command
88 .Pp
89 .Dl info gnunet
90 .Pp
91 should give you access to the complete handbook,
92 .Pp
93 .Dl info gnunet-c-tutorial
94 .Pp
95 will give you access to a tutorial for developers.
96 .sp
97 Depending on your installation, this information is also available in
98 .Xr gnunet 7 and
99 .Xr gnunet-c-tutorial 7 .
100 .\".Sh HISTORY
101 .\".Sh AUTHORS
102 .Sh BUGS
103 Report bugs by using
104 .Lk https://bugs.gnunet.org
105 or by sending electronic mail to
106 .Aq Mt gnunet-developers@gnu.org .