NAME
gai.conf - getaddrinfo(3) configuration file
DESCRIPTION
A call to getaddrinfo(3) might return multiple answers. According to RFC 3484 these answers must be sorted so that the answer with the highest success rate is first in the list. The RFC provides an algorithm for the sorting. The static rules are not always adequate, though. For this reason, the RFC also requires that system administrators should have the possibility to dynamically change the sorting. For the glibc implementation, this can be achieved with the /etc/gai.conf file. Each line in the configuration file consists of a keyword and its parameters. White spaces in any place are ignored. Lines starting with '#' are comments and are ignored. The keywords currently recognized are: label netmask precedence The value is added to the label table used in the RFC 3484 sorting. If any label definition is present in the configuration file, the default table is not used. All the label definitions of the default table which are to be maintained have to be duplicated. Following the keyword, the line has to contain a network mask and a precedence value. precedence netmask precedence This keyword is similar to label, but instead the value is added to the precedence table as specified in RFC 3484. Once again, the presence of a single precedence line in the configuration file causes the default table to not be used. reload <yes|no> This keyword controls whether a process checks whether the configuration file has been changed since the last time it was read. If the value is "yes", the file is reread. This might cause problems in multithreaded applications and is generally a bad idea. The default is "no". scopev4 mask value Add another rule to the RFC 3484 scope table for IPv4 address. By default, the scope IDs described in section 3.2 in RFC 3438 are used. Changing these defaults should hardly ever be necessary.
FILES
/etc/gai.conf
VERSIONS
The gai.conf file is supported by glibc since version 2.5.
EXAMPLE
The default table according to RFC 3484 would be specified with the following configuration file: label ::1/128 0 label ::/0 1 label 2002::/16 2 label ::/96 3 label ::ffff:0:0/96 4 precedence ::1/128 50 precedence ::/0 40 precedence 2002::/16 30 precedence ::/96 20 precedence ::ffff:0:0/96 10
SEE ALSO
getaddrinfo(3), RFC 3484
COLOPHON
This page is part of release 4.09 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/.
More Linux Commands
manpages/qsort.3.html
qsort(3) - sorts an array (Library - Linux man page)........
The qsort() function sorts an array with nmemb elements of size size. The base argument points to the start of the array. The contents of the array are sorted i
manpages/vsnprintf.3.html
vsnprintf(3) - formatted output conversion - Linux man page
The functions in the printf() family produce output according to a format as described below. The functions printf() and vprintf() write output to stdout, the s
manpages/FcConfigGetRescanInterval.3.html
FcConfigGetRescanInterval(3) - Get config rescan interval...
Returns the interval between automatic checks of the configuration (in seconds) specified in config. The configuration is checked during a call to FcFontList wh
manpages/XML::XPath::Node::Attribute.3pm.html
XML::XPath::Node::Attribute(3pm) - a single attribute.......
new ( key, value, prefix ) Create a new attribute node. getName Returns the key for the attribute getLocalName As getName above, but without namespace informati
manpages/Tk_StrictMotif.3.html
Tk_StrictMotif(3) - Return value of tk_strictMotif variable
This procedure returns the current value of the tk_strictMotif variable in the interpreter associated with tkwins application. The value is returned as an integ
manpages/ecvt_r.3.html
ecvt_r(3) - convert a floating-point number to a string.....
ecvt_r.3 - The functions ecvt_r(), fcvt_r(), qecvt_r() and qfcvt_r() are identical to ecvt(3), fcvt(3), qecvt(3) and qfcvt(3), respectively, except that they do
manpages/tfind.3.html
tfind(3) - manage a binary tree (Library - Linux man page)
tsearch(), tfind(), twalk(), and tdelete() manage a binary tree. They are generalized from Knuth (6.2.2) Algorithm T. The first field in each node of the tree i
manpages/XShapeGetRectangles.3.html
XShapeGetRectangles(3) - X nonrectangular shape functions...
The X11 Nonrectangular Window Shape Extension adds nonrectangular windows to the X Window System. PREDEFINED VALUES Operations: ShapeSet ShapeUnion ShapeInterse
manpages/Tcl_ConvertElement.3.html
Tcl_ConvertElement(3) - manipulate Tcl lists (Man Page).....
These procedures may be used to disassemble and reassemble Tcl lists. Tcl_SplitList breaks a list up into its constituent elements, returning an array of pointe
manpages/Tcl_FSGetCwd.3.html
Tcl_FSGetCwd(3) - procedures to interact with any filesystem
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta
manpages/git-credential-cache.1.html
git-credential-cache(1) Helper to temporarily store password
This command caches credentials in memory for use by future Git programs. The stored credentials never touch the disk, and are forgotten after a configurable ti
manpages/djpeg.1.html
djpeg(1) - decompress a JPEG file to an image file (ManPage)
djpeg decompresses the named JPEG file, or the standard input if no file is named, and produces an image file on the standard output. PBMPLUS (PPM/PGM), BMP, GI
