1 .\" Copyright (C) 2006 Red Hat, Inc. All rights reserved.
2 .\" Author: Ulrich Drepper <drepper@redhat.com>
4 .\" SPDX-License-Identifier: GPL-2.0-only
6 .TH GAI.CONF 5 2020-06-09 "Linux" "Linux Programmer's Manual"
8 gai.conf \- getaddrinfo(3) configuration file
12 might return multiple answers.
13 According to RFC\ 3484 these answers must be sorted so that
14 the answer with the highest success rate is first in the list.
15 The RFC provides an algorithm for the sorting.
16 The static rules are not always adequate, though.
18 the RFC also requires that system administrators should have the possibility
19 to dynamically change the sorting.
20 For the glibc implementation, this can be achieved with the
24 Each line in the configuration file consists of a keyword and its parameters.
25 White spaces in any place are ignored.
26 Lines starting with \(aq#\(aq are comments and are ignored.
28 The keywords currently recognized are:
30 \fBlabel\fR \fInetmask\fR \fIprecedence\fR
31 The value is added to the label table used in the RFC\ 3484 sorting.
32 If any \fBlabel\fR definition is present in the configuration file,
33 the default table is not used.
34 All the label definitions
35 of the default table which are to be maintained have to be duplicated.
36 Following the keyword,
37 the line has to contain a network mask and a precedence value.
39 \fBprecedence\fR \fInetmask\fR \fIprecedence\fR
40 This keyword is similar to \fBlabel\fR, but instead the value is added
41 to the precedence table as specified in RFC\ 3484.
43 presence of a single \fBprecedence\fR line in the configuration file
44 causes the default table to not be used.
46 \fBreload\fR <\fByes\fR|\fBno\fR>
47 This keyword controls whether a process checks whether the configuration
48 file has been changed since the last time it was read.
50 "\fByes\fR", the file is reread.
51 This might cause problems in multithreaded
52 applications and is generally a bad idea.
53 The default is "\fBno\fR".
55 \fBscopev4\fR \fImask\fR \fIvalue\fR
56 Add another rule to the RFC\ 3484 scope table for IPv4 address.
57 By default, the scope IDs described in section 3.2 in RFC\ 3438 are used.
58 Changing these defaults should hardly ever be necessary.
65 file is supported by glibc since version 2.5.
67 The default table according to RFC\ 3484 would be specified with the
68 following configuration file:
79 precedence 2002::/16 30
81 precedence ::ffff:0:0/96 10
85 .\" Ulrich Drepper <drepper@redhat.com>