MEDIUM: dns: implement a DNS resolver
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 13 Apr 2015 21:40:55 +0000 (23:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Jun 2015 20:07:35 +0000 (22:07 +0200)
commit325137d603aa81bd24cbd8c99d816dd42291daa7
treefd32134a64c0d9ac13c7f771cf34c2769c3ff93d
parent5d4e4f7a570021e3dec473c45343b83c0dfecfb3
MEDIUM: dns: implement a DNS resolver

Implementation of a DNS client in HAProxy to perform name resolution to
IP addresses.

It relies on the freshly created UDP client to perform the DNS
resolution. For now, all UDP socket calls are performed in the
DNS layer, but this might change later when the protocols are
extended to be more suited to datagram mode.

A new section called 'resolvers' is introduced thanks to this patch. It
is used to describe DNS servers IP address and also many parameters.
Makefile
include/proto/dns.h [new file with mode: 0644]
include/types/dns.h [new file with mode: 0644]
include/types/global.h
src/cfgparse.c
src/dns.c [new file with mode: 0644]
src/haproxy.c