File: srv-records-support.md

package info (click to toggle)
apt 3.1.13
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 22,764 kB
  • sloc: cpp: 71,085; sh: 31,750; xml: 5,553; perl: 217; python: 197; ansic: 191; makefile: 41
file content (22 lines) | stat: -rw-r--r-- 834 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DNS SRV record support in apt
=============================

Apt supports a subset of the DNS SRV server records protocol as
described in [RFC 2782](https://tools.ietf.org/html/rfc2782) for service discovery.

Before connecting to the requested server APT will send a SRV
record request of the form `_$protocol._tcp._$host`, e.g.
`_http._tcp.ftp.debian.org` or `_http._tcp.security.debian.org`.

If the server sends SRV records
as a reply APT will use those to connect to the server(s) in
this reply. It will honor the `priority` field in the reply.

However it does not implement the `weight` algorithm as described
in RFC 2782. It will use an equal weight for each server of the
same priority.

If connecting to a server fails APT will retry with the next one
and remove the server from the list of valid servers for this
session.