SlideShare une entreprise Scribd logo
1  sur  103
Télécharger pour lire hors ligne
© Men & Mice http://menandmice.com
DNS High-Availability Tools
Open-Source Load Balancing
Solutions
1
1Wednesday 7 December 16
© Men & Mice http://menandmice,com
Resolver HA
• The DNS protocol has built-in high availability for authoritative DNS
servers, but client machines can see a degraded DNS service if a DNS
resolver (caching DNS server) is failing
• In this webinar, we will look into
• how the DNS clients in popular operating systems (Windows, Linux,
macOS/iOS) choose the DNS resolver among a list of available servers
• and how a DNS resolver service can be made failure-tolerant with
open-source solutions such as “dnsdist” from PowerDNS and “relayd”
from OpenBSD.
2Wednesday 7 December 16
© Men & Mice http://menandmice,com
Authoritative DNS
3Wednesday 7 December 16
© Men & Mice http://menandmice,com
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 2
Roundtrip Time
4Wednesday 7 December 16
© Men & Mice http://menandmice,com
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 2
Roundtrip Time
4Wednesday 7 December 16
© Men & Mice http://menandmice,com
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
What is the address
of
ftp.menandmice.is.
a
b
c
Name
Server
RTT
a 3
b 5
c 2
Roundtrip Time
4Wednesday 7 December 16
© Men & Mice http://menandmice,com
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 2
Roundtrip Time
5Wednesday 7 December 16
© Men & Mice http://menandmice,com
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 2
What is the address
of
ftp.menandmice.is.
Roundtrip Time
5Wednesday 7 December 16
© Men & Mice http://menandmice,com
2
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c
Roundtrip Time
6Wednesday 7 December 16
© Men & Mice http://menandmice,com
2
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c
Here is a list of
“is.” Name
Servers
Roundtrip Time
6Wednesday 7 December 16
© Men & Mice http://menandmice,com
338
ftp://ftp.menandmice.is.
“”
is.
menandmice.is.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c
Here is a list of
“is.” Name
Servers
Roundtrip Time
6Wednesday 7 December 16
© Men & Mice http://menandmice,com
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 338
Roundtrip Time
7Wednesday 7 December 16
© Men & Mice http://menandmice,com
http://www.yahoo.fr.
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 338
Roundtrip Time
7Wednesday 7 December 16
© Men & Mice http://menandmice,com
http://www.yahoo.fr.
“”
fr.
yahoo.fr.
local caching
DNS Server
What is the address
of
www.yahoo.fr.
a
b
c
Name
Server
RTT
a 3
b 5
c 338
Roundtrip Time
7Wednesday 7 December 16
© Men & Mice http://menandmice,com
http://www.yahoo.fr.
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 338
Roundtrip Time
8Wednesday 7 December 16
© Men & Mice http://menandmice,com
http://www.yahoo.fr.
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c 338
What is the address
of
www.yahoo.fr.
Roundtrip Time
8Wednesday 7 December 16
© Men & Mice http://menandmice,com
331
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c
http://www.yahoo.fr.
Roundtrip Time
9Wednesday 7 December 16
© Men & Mice http://menandmice,com
331
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 3
b 5
c
Here is a list of
“fr.” Name
Servers
http://www.yahoo.fr.
Roundtrip Time
9Wednesday 7 December 16
© Men & Mice http://menandmice,com
331
85
“”
fr.
yahoo.fr.
local caching
DNS Server
a
b
c
Name
Server
RTT
a
b 5
c
Here is a list of
“fr.” Name
Servers
http://www.yahoo.fr.
Roundtrip Time
9Wednesday 7 December 16
© Men & Mice http://menandmice,com
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 85
b 5
c 331
Roundtrip Time
10Wednesday 7 December 16
© Men & Mice http://menandmice,com
dig @ns.berkeley.edu
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 85
b 5
c 331
Roundtrip Time
10Wednesday 7 December 16
© Men & Mice http://menandmice,com
dig @ns.berkeley.edu
“”
edu.
berkeley.edu.
local caching
DNS Server
What is the address
of
ns.berkeley.edu.
a
b
c
Name
Server
RTT
a 85
b 5
c 331
Roundtrip Time
10Wednesday 7 December 16
© Men & Mice http://menandmice,com
dig @ns.berkeley.edu.
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 85
b 5
c 331
Roundtrip Time
11Wednesday 7 December 16
© Men & Mice http://menandmice,com
dig @ns.berkeley.edu.
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a 85
b 5
c 331
What is the address
of
ns.berkeley.edu.
Roundtrip Time
11Wednesday 7 December 16
© Men & Mice http://menandmice,com
5
83
324
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a
b
c
dig @ns.berkeley.edu.
Roundtrip Time
12Wednesday 7 December 16
© Men & Mice http://menandmice,com
5
83
324
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a
b
c
Here is a list of
“edu.” Name
Servers
dig @ns.berkeley.edu.
Roundtrip Time
12Wednesday 7 December 16
© Men & Mice http://menandmice,com
315
83
324
“”
edu.
berkeley.edu.
local caching
DNS Server
a
b
c
Name
Server
RTT
a
b
c
Here is a list of
“edu.” Name
Servers
dig @ns.berkeley.edu.
Roundtrip Time
12Wednesday 7 December 16
© Men & Mice http://menandmice,com
UNIX / Linux Stub Resolver
13Wednesday 7 December 16
© Men & Mice http://menandmice,com
UNIX / Linux Stub Resolver
•UNIX/Linux stub resolvers use a configuration file called
resolv.conf
•This file is usually found in the /etc directory
14Wednesday 7 December 16
© Men & Mice http://menandmice,com
Name Server List
• Syntax:
• nameserver <IP address>
• Example:
• nameserver 192.168.0.1
• Notes:
• Most UNIX/Linux servers allow up to 3 nameserver entries
• If multiple are listed, they are queried in the order given
15Wednesday 7 December 16
© Men & Mice http://menandmice,com
Unix DNS-Client Resolver
timeout
Attempt
1 DNS-
Resolver
2 DNS-
Resolver
3 DNS-
Resolver
1 5s 2x 5s 3x 5s
2 10s 2x 5s 3x 3s
Total 15s 20s 24s
16Wednesday 7 December 16
© Men & Mice http://menandmice,com
Unix DNS-Client Resolver
timeout
• the Unix-DNS Resolver timeout can be changed in the file
/etc/resolv.conf
option timeout:1 attempts:4
nameserver 100.64.1.100
nameserver 100.64.2.120
• attempts: how many queries send to each DNS resolver (max 5)
• timeout: initial timeout for a query to a name server in resolv.conf (max
30s). For the second and successive rounds of queries, the resolver still
doubles the initial timeout and divides by the number of name servers in
resolv.conf
17Wednesday 7 December 16
© Men & Mice http://menandmice,com
Unix DNS-Client Resolver
“Round-Robin”
•the order in which the DNS-Resolvers are queried can be
tweaked in
/etc/resolv.conf
option rotate
nameserver 100.64.1.100
nameserver 100.64.2.120
•rotate: use all DNS-Resolvers in each resolver-session. Only
take effect if the client program sends multiple queries after
opening the DNS-Client resolver. Not many programs do this.
18Wednesday 7 December 16
© Men & Mice http://menandmice,com
Send Client-Resolver options
via DHCP (1/2)
•there are not standard DHCP options to transport the
attempt, timeout and rotate resolver options
•in the ISC-DHCP Server, add a new option definition
(file /etc/dhcp/dhcpd.conf)
option resolv-options code 232 = text;
option resolv-options "timeout:2 attempts:4 rotate";
19Wednesday 7 December 16
© Men & Mice http://menandmice,com
Send Client-Resolver options
via DHCP (2/2)
•on each ISC-DHCP Client, add a new option definition
(file /etc/dhcp/dhclient.conf)
option resolv-options code 232 = text;
request resolv-options;
•and also add a new DHCP-Script hook
(File /etc/dhcp/dhclient-enter-hooks.d/resolvoptions)
if [ "$new_resolv_options" ]; then
echo "options $new_resolv_options" >> /etc/resolv.conf
fi
20Wednesday 7 December 16
© Men & Mice http://menandmice,com
Windows Stub Resolver
21Wednesday 7 December 16
© Men & Mice http://menandmice,com
22Wednesday 7 December 16
© Men & Mice http://menandmice,com
Obtain DNS servers via DHCP
22Wednesday 7 December 16
© Men & Mice http://menandmice,com
Obtain DNS servers via DHCP
Configure listed DNS servers
manually
22Wednesday 7 December 16
© Men & Mice http://menandmice,com
23Wednesday 7 December 16
© Men & Mice http://menandmice,com
23Wednesday 7 December 16
© Men & Mice http://menandmice,com
24Wednesday 7 December 16
© Men & Mice http://menandmice,com
List of additional DNS-Resolver
to query
24Wednesday 7 December 16
© Men & Mice http://menandmice,com
Windows DNS-Client Resolver
Timeouts, 1 DNS-Server
Time DNS Query
0s initial query, wait 1s
1s 2nd query, wait 1s
2s 3rd query, wait 2s
4s 4th query, wait 4s
8s 5th query, wait 4s
12s Client-Resolver gives up
https://support.microsoft.com/de-de/kb/2834226
25Wednesday 7 December 16
© Men & Mice http://menandmice,com
Windows DNS-Client Resolver
Timeouts, 2 DNS-Server
Time DNS Query
0s
initial query to 1st DNS server in the
list, wait 1s
1s
initial query to the 2nd DNS server in the
list, wait 1s
2s
2nd query to the 2nd DNS server in the
list, wait 2s
4s
query to all DNS server in the list,
wait 4s
8s
query to all DNS server in the list,
wait 4s
12s Client-Resolver gives up
https://support.microsoft.com/de-de/kb/2834226
26Wednesday 7 December 16
© Men & Mice http://menandmice,com
Windows DNS-Client Resolver
Timeouts, 3+ DNS-Server
Time DNS Query
0s
initial query to 1st DNS server in the
list, wait 1s
1s
initial query to the 2nd DNS server in the
list, wait 1s
2s
initial query to the 3rd DNS server in the
list, wait 2s
4s
query to all DNS server in the list,
wait 4s
8s
query to all DNS server in the list,
wait 4s
12s Client-Resolver gives up
https://support.microsoft.com/de-de/kb/2834226
27Wednesday 7 December 16
© Men & Mice http://menandmice,com
Adjusting the Windows DNS-
CLient timeouts
•The DNS-Client timeouts can be customized using the
registry value
HKLMSystemCurrentControlSetServicesdnscacheParametersDNSQueryTimeouts
•This value does not exist by default and then the pre-
defined default values are used
• https://blogs.technet.microsoft.com/stdqry/2011/12/02/dns-clients-and-timeouts-part-1/
• https://blogs.technet.microsoft.com/stdqry/2011/12/14/dns-clients-and-timeouts-part-2/
28Wednesday 7 December 16
© Men & Mice http://menandmice,com
Demo Setup
29Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver without HA
30
Internet
30Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver without HA
31
Internet
172.22.1.210 172.22.1.217
31Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver without HA
31
Internet
/etc/resolv.conf
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210 172.22.1.217
31Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver without HA
31
Internet
/etc/resolv.conf
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210 172.22.1.217
31Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver without HA
31
Internet
/etc/resolv.conf
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210 172.22.1.217
31Wednesday 7 December 16
© Men & Mice http://menandmice,com
Unix resolver demo
32Wednesday 7 December 16
© Men & Mice http://menandmice,com
OpenBSD relayd
33Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd
•relayd is a daemon to relay and dynamically redirect
incoming connections to a target host
•available on OpenBSD (and older versions on
FreeBSD)
•relayd can dynamically reconfigure the OpenBSD
firewall “pf” to redirect traffic
•relayd can also work as an application layer proxy
34Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with relayd
35
Internet
172.22.1.210
172.22.1.206
172.22.1.217
172.22.1.206
CARP-Protocol
35Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with relayd
35
Internet
/etc/resolv.conf
nameserver 172.22.1.206
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210
172.22.1.206
172.22.1.217
172.22.1.206
CARP-Protocol
35Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with relayd
35
Internet
/etc/resolv.conf
nameserver 172.22.1.206
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210
172.22.1.206
172.22.1.217
172.22.1.206
CARP-Protocol
35Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with relayd
35
Internet
/etc/resolv.conf
nameserver 172.22.1.206
nameserver 172.22.1.210
nameserver 172.22.1.217
172.22.1.210
172.22.1.206
172.22.1.217
172.22.1.206
CARP-Protocol
35Wednesday 7 December 16
© Men & Mice http://menandmice.com
relayd redirect configuration
36
# Layer 3 forwarding
table <dnsserver> {
172.22.1.210,
172.22.1.217 }
redirect dnsbalance {
listen on 172.22.1.206 tcp port 53
listen on 172.22.1.206 udp port 53
forward to <dnsserver> check tcp
}
file /etc/relayd.conf
36Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
37
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
Layer 3 redirect
37Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
38
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
Layer 3 redirect
38Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
39
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
configures
PF rules
Layer 3 redirect
39Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
40
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
configures
PF rules
DNS-Query
Layer 3 redirect
40Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
41
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
configures
PF rules
DNS-Query
DNS-Query
Layer 3 redirect
41Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
42
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
DOWN
relayd
PF-Firewall
probes
Layer 3 redirect
42Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
43
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
configures
PF rules
DNS-Server
(BIND 9)
DOWN
Layer 3 redirect
43Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
44
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
configures
PF rules
DNS-Query
DNS-Server
(BIND 9)
DOWN
Layer 3 redirect
44Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
45
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
configures
PF rules
DNS-Query
DNS-Query
DNS-Server
(BIND 9)
DOWN
Layer 3 redirect
45Wednesday 7 December 16
© Men & Mice http://menandmice.com
relayd relay configuration
46
# Layer 7 Application Layer Proxy
table <dnsserver> { 172.22.1.210, 172.22.1.217 }
dns protocol "dnsproto"
relay dnsbalance {
protocol dnsproto
listen on 172.22.1.206 port 53
forward to <dnsserver> check tcp
}
file /etc/relayd.conf
46Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
47
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
Layer 7 proxy
47Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
48
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
Layer 7 proxy
48Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
49
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
Layer 7 proxy
49Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
50
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
DNS-Query
DNS-Query
Layer 7 proxy
50Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
51
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
relayd
PF-Firewall
probes
OK
DNS-Query
DNS-Query
Layer 7 proxy
DNS-Query
51Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
52
OpenBSD Kernel
Userspace
DNS-Server
(BIND 9)
DOWN
relayd
PF-Firewall
probes
Layer 7 proxy
52Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
53
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
DNS-Server
(BIND 9)
DOWN
Layer 7 proxy
53Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
54
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
DNS-Query
DNS-Server
(BIND 9)
DOWN
Layer 7 proxy
DNS-Query
54Wednesday 7 December 16
© Men & Mice http://menandmice.com
OpenBSD relayd
55
OpenBSD Kernel
Userspace
relayd
PF-Firewall
probes
Not-OK
DNS-Query
DNS-Query
DNS-Server
(BIND 9)
DOWN
Layer 7 proxy
DNS-Query
55Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd demo
56Wednesday 7 December 16
© Men & Mice http://menandmice,com
PowerDNS dnsdist
57Wednesday 7 December 16
© Men & Mice http://menandmice.com
dnsdist
“dnsdist” is an DNS aware application level gateway
• part of PowerDNS, but DNS server agnostic (can
be used with any DNS resolver or authoritative
server)
• supports various load-balancing schemes (least
outstanding, firstAvailable, weighted hash,
weighted random, round-robin ...)
• can do more than load balancing (filter, block,
rewrite DNS traffic ...)
58
58Wednesday 7 December 16
© Men & Mice http://menandmice.com
dnsdist
“dnsdist” is an DNS aware application level gateway
• Lua-configuration and Lua-scriptable
• available for Linux (Debian, Raspbian, Suse,
Ubuntu, CentOS), FreeBSD
• should work on other Unix-ish systems
• Free Software (GPLv2 License)
59
http://dnsdist.org
59Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
/etc/resolv.conf
nameserver 172.22.1.200
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
/etc/resolv.conf
nameserver 172.22.1.200
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
/etc/resolv.conf
nameserver 172.22.1.200
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
/etc/resolv.conf
nameserver 172.22.1.200
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
DNS-Resolver with dnsdist
60
Internet
/etc/resolv.conf
nameserver 172.22.1.200
172.22.1.210 172.22.1.217
Heartbeat
172.22.1.200
(dnsdist)
172.22.1.200
(dnsdist)
60Wednesday 7 December 16
© Men & Mice http://menandmice.com
starting dnsdist
simple dnsdist startup without configuration file
# dnsdist -l 172.22.1.200 172.22.1.210 172.22.1.217
61
local IP to
listen for
DNS
queries
DNS server
to forward
queries
61Wednesday 7 December 16
© Men & Mice http://menandmice,com
dnsdist demo
62Wednesday 7 December 16
© Men & Mice http://menandmice,com
dnsdist statistics demo
63Wednesday 7 December 16
© Men & Mice http://menandmice,com
comparing relayd and dnsdist
64Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd vs. dnsdist
•relayd -- only available on OpenBSD (FreeBSD)
•dnsdist -- available on many Linux/Unix systems
65Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd vs. dnsdist
•relayd -- fast layer 3 forwarding in kernel space and
userspace proxying
•dnsdist -- only userspace proxying (but still pretty fast)
66Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd vs. dnsdist
•relayd -- simple health monitoring and reporting
•dnsdist -- online DNS statistics and Web-UI statistics
67Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd vs. dnsdist
•relayd -- filtering with “pf” firewall
•dnsdist -- DNS aware filtering with Lua-Scripting
option
68Wednesday 7 December 16
© Men & Mice http://menandmice,com
relayd vs. dnsdist
•relayd -- BSD license
•dnsdist -- GPLv3 License
69Wednesday 7 December 16
© Men & Mice http://menandmice,com
Men & Mice Training
• February 13 – 17 -- Redwood City, California, US
Introduction to DNS & BIND Hands-On class and
Introduction & Advanced DNS and BIND Topics Hands-on
•March 6 – 10, -- Amsterdam (NL) or Osnabrueck (DE)
Introduction to DNS & BIND Hands-On class and
Introduction & Advanced DNS and BIND Topics Hands-on
https://www.menandmice.com/support-training/training/
70Wednesday 7 December 16
© Men & Mice http://menandmice.com
Webinar schedule 2017
This is our schedule for the webinars in the beginning
of 2017
• 2nd Feb 2017
BIND 9 logging best practices
• 23rd March 2017
DNSSEC zone signing tutorial
• 13th April 2017
SMTP STS (Strict Transport Security) vs. SMTP with DANE
71
71Wednesday 7 December 16
© Men & Mice http://menandmice.com
Webinar schedule 2017
Additional webinar topics coming in 2017
• DNSSEC key management with BIND 9 "keymgr"
• BIND 9 (and Men & Mice) on Docker (Linux)
• Men & Mice Suite on Docker with Windows 2016 Server
• How to manage DMARC-, SPF-, DKIM-, multi-part TXT-,
CAA-, DANE-records in DNS zones
• DNS over TCP: new developments from the IETF
• DNS Server with SQL-Databases: PowerDNS and BIND 9
72
72Wednesday 7 December 16
© Men & Mice http://menandmice,com
Thank you!
Questions? Comments?
73
73Wednesday 7 December 16

Contenu connexe

Tendances

What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDShapeBlue
 
TC Flower Offload
TC Flower OffloadTC Flower Offload
TC Flower OffloadNetronome
 
VMware NSX - Lessons Learned from real project
VMware NSX - Lessons Learned from real projectVMware NSX - Lessons Learned from real project
VMware NSX - Lessons Learned from real projectDavid Pasek
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name SystemPeter R. Egli
 
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;Barry Greene
 
Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)Andriy Berestovskyy
 
eBPF Perf Tools 2019
eBPF Perf Tools 2019eBPF Perf Tools 2019
eBPF Perf Tools 2019Brendan Gregg
 
Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1Duncan Epping
 
VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014David Davis
 
VMware HCI solutions - 2020-01-16
VMware HCI solutions - 2020-01-16VMware HCI solutions - 2020-01-16
VMware HCI solutions - 2020-01-16David Pasek
 
Ansible ex407 and EX 294
Ansible ex407 and EX 294Ansible ex407 and EX 294
Ansible ex407 and EX 294IkiArif1
 
Active directory
Active directory Active directory
Active directory deshvikas
 
DPDK in Containers Hands-on Lab
DPDK in Containers Hands-on LabDPDK in Containers Hands-on Lab
DPDK in Containers Hands-on LabMichelle Holley
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntuSim Janghoon
 

Tendances (20)

What CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBDWhat CloudStackers Need To Know About LINSTOR/DRBD
What CloudStackers Need To Know About LINSTOR/DRBD
 
TC Flower Offload
TC Flower OffloadTC Flower Offload
TC Flower Offload
 
VMware NSX - Lessons Learned from real project
VMware NSX - Lessons Learned from real projectVMware NSX - Lessons Learned from real project
VMware NSX - Lessons Learned from real project
 
DNS - Domain Name System
DNS - Domain Name SystemDNS - Domain Name System
DNS - Domain Name System
 
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;
BIND’s New Security Feature: DNSRPZ - the &quot;DNS Firewall&quot;
 
Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)Network Programming: Data Plane Development Kit (DPDK)
Network Programming: Data Plane Development Kit (DPDK)
 
eBPF Perf Tools 2019
eBPF Perf Tools 2019eBPF Perf Tools 2019
eBPF Perf Tools 2019
 
Active Directory
Active DirectoryActive Directory
Active Directory
 
Dns security
Dns securityDns security
Dns security
 
Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1Building a Stretched Cluster using Virtual SAN 6.1
Building a Stretched Cluster using Virtual SAN 6.1
 
Linux: LVM
Linux: LVMLinux: LVM
Linux: LVM
 
VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014
 
Hcx intro preso v2
Hcx intro preso v2Hcx intro preso v2
Hcx intro preso v2
 
VMware HCI solutions - 2020-01-16
VMware HCI solutions - 2020-01-16VMware HCI solutions - 2020-01-16
VMware HCI solutions - 2020-01-16
 
Ansible ex407 and EX 294
Ansible ex407 and EX 294Ansible ex407 and EX 294
Ansible ex407 and EX 294
 
Active directory
Active directory Active directory
Active directory
 
DPDK in Containers Hands-on Lab
DPDK in Containers Hands-on LabDPDK in Containers Hands-on Lab
DPDK in Containers Hands-on Lab
 
Kvm performance optimization for ubuntu
Kvm performance optimization for ubuntuKvm performance optimization for ubuntu
Kvm performance optimization for ubuntu
 
Container Networking Deep Dive
Container Networking Deep DiveContainer Networking Deep Dive
Container Networking Deep Dive
 
Linux Network Stack
Linux Network StackLinux Network Stack
Linux Network Stack
 

En vedette

How to send DNS over anything encrypted
How to send DNS over anything encryptedHow to send DNS over anything encrypted
How to send DNS over anything encryptedMen and Mice
 
Symantec (ISTR) Internet Security Threat Report Volume 22
Symantec (ISTR) Internet Security Threat Report Volume 22Symantec (ISTR) Internet Security Threat Report Volume 22
Symantec (ISTR) Internet Security Threat Report Volume 22CheapSSLsecurity
 
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...ThreatReel Podcast
 
Scripting and automation with the Men & Mice Suite
Scripting and automation with the Men & Mice SuiteScripting and automation with the Men & Mice Suite
Scripting and automation with the Men & Mice SuiteMen and Mice
 
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...
Cisco Connect Toronto  2017 - Accelerating Incident Response in Organizations...Cisco Connect Toronto  2017 - Accelerating Incident Response in Organizations...
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...Cisco Canada
 
Role of DNS in Botnet Command and Control
Role of DNS in Botnet Command and ControlRole of DNS in Botnet Command and Control
Role of DNS in Botnet Command and ControlOpenDNS
 
OISF: Regular Expressions (Regex) Overview
OISF: Regular Expressions (Regex) OverviewOISF: Regular Expressions (Regex) Overview
OISF: Regular Expressions (Regex) OverviewThreatReel Podcast
 
Social Networks And Phishing
Social Networks And PhishingSocial Networks And Phishing
Social Networks And Phishingecarrow
 
Cyber crime &amp; security
Cyber crime &amp; securityCyber crime &amp; security
Cyber crime &amp; securityAvani Patel
 
Cisco Connect Toronto 2017 - Anatomy-of-attack
Cisco Connect Toronto 2017 - Anatomy-of-attackCisco Connect Toronto 2017 - Anatomy-of-attack
Cisco Connect Toronto 2017 - Anatomy-of-attackCisco Canada
 
DerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
DerbyCon 7.0 Legacy: Regular Expressions (Regex) OverviewDerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
DerbyCon 7.0 Legacy: Regular Expressions (Regex) OverviewThreatReel Podcast
 
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurityComodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurityCheapSSLsecurity
 
Microsoft Cyber Security IT-Camp
Microsoft Cyber Security IT-CampMicrosoft Cyber Security IT-Camp
Microsoft Cyber Security IT-CampAlexander Benoit
 
Umbrella Webcast: Redefining Security for the Nomadic Worker
Umbrella Webcast: Redefining Security for the Nomadic WorkerUmbrella Webcast: Redefining Security for the Nomadic Worker
Umbrella Webcast: Redefining Security for the Nomadic WorkerOpenDNS
 
Windows Server 2016 Webinar
Windows Server 2016 WebinarWindows Server 2016 Webinar
Windows Server 2016 WebinarMen and Mice
 
Phishing Scams: 8 Helpful Tips to Keep You Safe
Phishing Scams: 8 Helpful Tips to Keep You SafePhishing Scams: 8 Helpful Tips to Keep You Safe
Phishing Scams: 8 Helpful Tips to Keep You SafeCheapSSLsecurity
 
Dns Hardening Linux Os
Dns Hardening   Linux OsDns Hardening   Linux Os
Dns Hardening Linux Osecarrow
 
Cisco umbrella overview
Cisco umbrella overviewCisco umbrella overview
Cisco umbrella overviewCisco Canada
 

En vedette (20)

How to send DNS over anything encrypted
How to send DNS over anything encryptedHow to send DNS over anything encrypted
How to send DNS over anything encrypted
 
Symantec (ISTR) Internet Security Threat Report Volume 22
Symantec (ISTR) Internet Security Threat Report Volume 22Symantec (ISTR) Internet Security Threat Report Volume 22
Symantec (ISTR) Internet Security Threat Report Volume 22
 
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
(ISC)2 Cincinnati Tri-State Chapter: Phishing Forensics - Is it just suspicio...
 
Scripting and automation with the Men & Mice Suite
Scripting and automation with the Men & Mice SuiteScripting and automation with the Men & Mice Suite
Scripting and automation with the Men & Mice Suite
 
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...
Cisco Connect Toronto  2017 - Accelerating Incident Response in Organizations...Cisco Connect Toronto  2017 - Accelerating Incident Response in Organizations...
Cisco Connect Toronto 2017 - Accelerating Incident Response in Organizations...
 
Role of DNS in Botnet Command and Control
Role of DNS in Botnet Command and ControlRole of DNS in Botnet Command and Control
Role of DNS in Botnet Command and Control
 
OISF: Regular Expressions (Regex) Overview
OISF: Regular Expressions (Regex) OverviewOISF: Regular Expressions (Regex) Overview
OISF: Regular Expressions (Regex) Overview
 
Social Networks And Phishing
Social Networks And PhishingSocial Networks And Phishing
Social Networks And Phishing
 
Cyber Security # Lec 2
Cyber Security # Lec 2Cyber Security # Lec 2
Cyber Security # Lec 2
 
Tcp udp
Tcp udpTcp udp
Tcp udp
 
Cyber crime &amp; security
Cyber crime &amp; securityCyber crime &amp; security
Cyber crime &amp; security
 
Cisco Connect Toronto 2017 - Anatomy-of-attack
Cisco Connect Toronto 2017 - Anatomy-of-attackCisco Connect Toronto 2017 - Anatomy-of-attack
Cisco Connect Toronto 2017 - Anatomy-of-attack
 
DerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
DerbyCon 7.0 Legacy: Regular Expressions (Regex) OverviewDerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
DerbyCon 7.0 Legacy: Regular Expressions (Regex) Overview
 
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurityComodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
Comodo Multi Domain SSL Certificate: Key Features by CheapSSLsecurity
 
Microsoft Cyber Security IT-Camp
Microsoft Cyber Security IT-CampMicrosoft Cyber Security IT-Camp
Microsoft Cyber Security IT-Camp
 
Umbrella Webcast: Redefining Security for the Nomadic Worker
Umbrella Webcast: Redefining Security for the Nomadic WorkerUmbrella Webcast: Redefining Security for the Nomadic Worker
Umbrella Webcast: Redefining Security for the Nomadic Worker
 
Windows Server 2016 Webinar
Windows Server 2016 WebinarWindows Server 2016 Webinar
Windows Server 2016 Webinar
 
Phishing Scams: 8 Helpful Tips to Keep You Safe
Phishing Scams: 8 Helpful Tips to Keep You SafePhishing Scams: 8 Helpful Tips to Keep You Safe
Phishing Scams: 8 Helpful Tips to Keep You Safe
 
Dns Hardening Linux Os
Dns Hardening   Linux OsDns Hardening   Linux Os
Dns Hardening Linux Os
 
Cisco umbrella overview
Cisco umbrella overviewCisco umbrella overview
Cisco umbrella overview
 

Similaire à DNS High-Availability Tools - Open-Source Load Balancing Solutions

Windows 2012 and DNSSEC
Windows 2012 and DNSSECWindows 2012 and DNSSEC
Windows 2012 and DNSSECMen and Mice
 
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]APNIC
 
DNSSEC signing Tutorial
DNSSEC signing Tutorial DNSSEC signing Tutorial
DNSSEC signing Tutorial Men and Mice
 
The DNSSEC KSK of the root rolls
The DNSSEC KSK of the root rollsThe DNSSEC KSK of the root rolls
The DNSSEC KSK of the root rollsMen and Mice
 
Resolution for a Faster Site
Resolution for a Faster SiteResolution for a Faster Site
Resolution for a Faster SiteIdo Safruti
 
dnsppt-130413003933-phpapp02.pdf
dnsppt-130413003933-phpapp02.pdfdnsppt-130413003933-phpapp02.pdf
dnsppt-130413003933-phpapp02.pdfsamarth97
 
Dns presentation
Dns presentationDns presentation
Dns presentationgaurav_c
 
DNSPresentation.pptx
DNSPresentation.pptxDNSPresentation.pptx
DNSPresentation.pptxKailashTayde
 
dns-sec-4-slides
dns-sec-4-slidesdns-sec-4-slides
dns-sec-4-slideskj teoh
 
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer NETWAYS
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Edureka!
 
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...JosephTesta9
 

Similaire à DNS High-Availability Tools - Open-Source Load Balancing Solutions (20)

Windows 2012 and DNSSEC
Windows 2012 and DNSSECWindows 2012 and DNSSEC
Windows 2012 and DNSSEC
 
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
DNSSEC Tutorial, by Champika Wijayatunga [APNIC 38]
 
DNSSEC signing Tutorial
DNSSEC signing Tutorial DNSSEC signing Tutorial
DNSSEC signing Tutorial
 
The DNSSEC KSK of the root rolls
The DNSSEC KSK of the root rollsThe DNSSEC KSK of the root rolls
The DNSSEC KSK of the root rolls
 
Resolution for a Faster Site
Resolution for a Faster SiteResolution for a Faster Site
Resolution for a Faster Site
 
dnsppt-130413003933-phpapp02.pdf
dnsppt-130413003933-phpapp02.pdfdnsppt-130413003933-phpapp02.pdf
dnsppt-130413003933-phpapp02.pdf
 
Dns presentation
Dns presentationDns presentation
Dns presentation
 
Dns
DnsDns
Dns
 
Big Data on DC/OS
Big Data on DC/OSBig Data on DC/OS
Big Data on DC/OS
 
DNS.pptx
DNS.pptxDNS.pptx
DNS.pptx
 
DNSPresentation.pptx
DNSPresentation.pptxDNSPresentation.pptx
DNSPresentation.pptx
 
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAILDNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
DNSSEC - WHAT IS IT ? INSTALL AND CONFIGURE IN CHROOT JAIL
 
ION Islamabad - Deploying DNSSEC
ION Islamabad - Deploying DNSSECION Islamabad - Deploying DNSSEC
ION Islamabad - Deploying DNSSEC
 
Domain Name System (DNS)
Domain Name System (DNS)Domain Name System (DNS)
Domain Name System (DNS)
 
dns-sec-4-slides
dns-sec-4-slidesdns-sec-4-slides
dns-sec-4-slides
 
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer
OSMC 2016 - DNS Monitoring from Several Vantage Points by Stéphane Bortzmeyer
 
RP11_XaviertTorrentGorjon
RP11_XaviertTorrentGorjonRP11_XaviertTorrentGorjon
RP11_XaviertTorrentGorjon
 
ION Bucharest - Deploying DNSSEC
ION Bucharest - Deploying DNSSECION Bucharest - Deploying DNSSEC
ION Bucharest - Deploying DNSSEC
 
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
Linux Administration Tutorial | Configuring A DNS Server In 10 Simple Steps |...
 
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...
BSides Rochester 2018: Chris Partridge: Turning Domain Data Into Domain Intel...
 

Plus de Men and Mice

Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network StrategiesCisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network StrategiesMen and Mice
 
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSPart 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSMen and Mice
 
Part 2 - Local Name Resolution in Windows Networks
Part 2 - Local Name Resolution in Windows NetworksPart 2 - Local Name Resolution in Windows Networks
Part 2 - Local Name Resolution in Windows NetworksMen and Mice
 
Namespaces for Local Networks
Namespaces for Local NetworksNamespaces for Local Networks
Namespaces for Local NetworksMen and Mice
 
The CAA-Record for increased encryption security
The CAA-Record for increased encryption securityThe CAA-Record for increased encryption security
The CAA-Record for increased encryption securityMen and Mice
 
SMTP STS (Strict Transport Security) vs. SMTP with DANE
SMTP STS (Strict Transport Security) vs. SMTP with DANESMTP STS (Strict Transport Security) vs. SMTP with DANE
SMTP STS (Strict Transport Security) vs. SMTP with DANEMen and Mice
 
Fighting Abuse with DNS
Fighting Abuse with DNSFighting Abuse with DNS
Fighting Abuse with DNSMen and Mice
 
What is new in BIND 9.11?
What is new in BIND 9.11?What is new in BIND 9.11?
What is new in BIND 9.11?Men and Mice
 
Yeti DNS - Experimenting at the root
Yeti DNS - Experimenting at the rootYeti DNS - Experimenting at the root
Yeti DNS - Experimenting at the rootMen and Mice
 
Kea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISCKea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISCMen and Mice
 
RIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinarRIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinarMen and Mice
 
Keeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitKeeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitMen and Mice
 
PowerDNS Webinar - Part 2
PowerDNS Webinar - Part 2PowerDNS Webinar - Part 2
PowerDNS Webinar - Part 2Men and Mice
 
IETF 93 Review Webinar
IETF 93 Review WebinarIETF 93 Review Webinar
IETF 93 Review WebinarMen and Mice
 
RIPE 70 Report Webinar
RIPE 70 Report WebinarRIPE 70 Report Webinar
RIPE 70 Report WebinarMen and Mice
 
DNSSEC best practices Webinar
DNSSEC best practices WebinarDNSSEC best practices Webinar
DNSSEC best practices WebinarMen and Mice
 
The KNOT DNS Server
The KNOT DNS ServerThe KNOT DNS Server
The KNOT DNS ServerMen and Mice
 
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)Men and Mice
 

Plus de Men and Mice (20)

Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network StrategiesCisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
Cisco Live 2019: New Best Practices for Hybrid and Multicloud Network Strategies
 
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOSPart 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
Part 3 - Local Name Resolution in Linux, FreeBSD and macOS/iOS
 
Part 2 - Local Name Resolution in Windows Networks
Part 2 - Local Name Resolution in Windows NetworksPart 2 - Local Name Resolution in Windows Networks
Part 2 - Local Name Resolution in Windows Networks
 
Namespaces for Local Networks
Namespaces for Local NetworksNamespaces for Local Networks
Namespaces for Local Networks
 
The CAA-Record for increased encryption security
The CAA-Record for increased encryption securityThe CAA-Record for increased encryption security
The CAA-Record for increased encryption security
 
SMTP STS (Strict Transport Security) vs. SMTP with DANE
SMTP STS (Strict Transport Security) vs. SMTP with DANESMTP STS (Strict Transport Security) vs. SMTP with DANE
SMTP STS (Strict Transport Security) vs. SMTP with DANE
 
Fighting Abuse with DNS
Fighting Abuse with DNSFighting Abuse with DNS
Fighting Abuse with DNS
 
What is new in BIND 9.11?
What is new in BIND 9.11?What is new in BIND 9.11?
What is new in BIND 9.11?
 
Yeti DNS - Experimenting at the root
Yeti DNS - Experimenting at the rootYeti DNS - Experimenting at the root
Yeti DNS - Experimenting at the root
 
Kea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISCKea DHCP – the new open source DHCP server from ISC
Kea DHCP – the new open source DHCP server from ISC
 
RIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinarRIPE 71 and IETF 94 reports webinar
RIPE 71 and IETF 94 reports webinar
 
Keeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runitKeeping DNS server up-and-running with “runit
Keeping DNS server up-and-running with “runit
 
PowerDNS Webinar - Part 2
PowerDNS Webinar - Part 2PowerDNS Webinar - Part 2
PowerDNS Webinar - Part 2
 
PowerDNS Webinar
PowerDNS Webinar PowerDNS Webinar
PowerDNS Webinar
 
IETF 93 Review Webinar
IETF 93 Review WebinarIETF 93 Review Webinar
IETF 93 Review Webinar
 
RIPE 70 Report Webinar
RIPE 70 Report WebinarRIPE 70 Report Webinar
RIPE 70 Report Webinar
 
DNSSEC best practices Webinar
DNSSEC best practices WebinarDNSSEC best practices Webinar
DNSSEC best practices Webinar
 
IETF 92 Webinar
IETF 92 WebinarIETF 92 Webinar
IETF 92 Webinar
 
The KNOT DNS Server
The KNOT DNS ServerThe KNOT DNS Server
The KNOT DNS Server
 
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
RIPE 69 & IETF 91 Webinar - DNS-Privacy, IPv6, DANE and DHCP(v6)
 

Dernier

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024The Digital Insurer
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdflior mazor
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Scriptwesley chun
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Dernier (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

DNS High-Availability Tools - Open-Source Load Balancing Solutions

  • 1. © Men & Mice http://menandmice.com DNS High-Availability Tools Open-Source Load Balancing Solutions 1 1Wednesday 7 December 16
  • 2. © Men & Mice http://menandmice,com Resolver HA • The DNS protocol has built-in high availability for authoritative DNS servers, but client machines can see a degraded DNS service if a DNS resolver (caching DNS server) is failing • In this webinar, we will look into • how the DNS clients in popular operating systems (Windows, Linux, macOS/iOS) choose the DNS resolver among a list of available servers • and how a DNS resolver service can be made failure-tolerant with open-source solutions such as “dnsdist” from PowerDNS and “relayd” from OpenBSD. 2Wednesday 7 December 16
  • 3. © Men & Mice http://menandmice,com Authoritative DNS 3Wednesday 7 December 16
  • 4. © Men & Mice http://menandmice,com “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c 2 Roundtrip Time 4Wednesday 7 December 16
  • 5. © Men & Mice http://menandmice,com ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c 2 Roundtrip Time 4Wednesday 7 December 16
  • 6. © Men & Mice http://menandmice,com ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server What is the address of ftp.menandmice.is. a b c Name Server RTT a 3 b 5 c 2 Roundtrip Time 4Wednesday 7 December 16
  • 7. © Men & Mice http://menandmice,com ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c 2 Roundtrip Time 5Wednesday 7 December 16
  • 8. © Men & Mice http://menandmice,com ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c 2 What is the address of ftp.menandmice.is. Roundtrip Time 5Wednesday 7 December 16
  • 9. © Men & Mice http://menandmice,com 2 ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c Roundtrip Time 6Wednesday 7 December 16
  • 10. © Men & Mice http://menandmice,com 2 ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c Here is a list of “is.” Name Servers Roundtrip Time 6Wednesday 7 December 16
  • 11. © Men & Mice http://menandmice,com 338 ftp://ftp.menandmice.is. “” is. menandmice.is. local caching DNS Server a b c Name Server RTT a 3 b 5 c Here is a list of “is.” Name Servers Roundtrip Time 6Wednesday 7 December 16
  • 12. © Men & Mice http://menandmice,com “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c 338 Roundtrip Time 7Wednesday 7 December 16
  • 13. © Men & Mice http://menandmice,com http://www.yahoo.fr. “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c 338 Roundtrip Time 7Wednesday 7 December 16
  • 14. © Men & Mice http://menandmice,com http://www.yahoo.fr. “” fr. yahoo.fr. local caching DNS Server What is the address of www.yahoo.fr. a b c Name Server RTT a 3 b 5 c 338 Roundtrip Time 7Wednesday 7 December 16
  • 15. © Men & Mice http://menandmice,com http://www.yahoo.fr. “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c 338 Roundtrip Time 8Wednesday 7 December 16
  • 16. © Men & Mice http://menandmice,com http://www.yahoo.fr. “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c 338 What is the address of www.yahoo.fr. Roundtrip Time 8Wednesday 7 December 16
  • 17. © Men & Mice http://menandmice,com 331 “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c http://www.yahoo.fr. Roundtrip Time 9Wednesday 7 December 16
  • 18. © Men & Mice http://menandmice,com 331 “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a 3 b 5 c Here is a list of “fr.” Name Servers http://www.yahoo.fr. Roundtrip Time 9Wednesday 7 December 16
  • 19. © Men & Mice http://menandmice,com 331 85 “” fr. yahoo.fr. local caching DNS Server a b c Name Server RTT a b 5 c Here is a list of “fr.” Name Servers http://www.yahoo.fr. Roundtrip Time 9Wednesday 7 December 16
  • 20. © Men & Mice http://menandmice,com “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a 85 b 5 c 331 Roundtrip Time 10Wednesday 7 December 16
  • 21. © Men & Mice http://menandmice,com dig @ns.berkeley.edu “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a 85 b 5 c 331 Roundtrip Time 10Wednesday 7 December 16
  • 22. © Men & Mice http://menandmice,com dig @ns.berkeley.edu “” edu. berkeley.edu. local caching DNS Server What is the address of ns.berkeley.edu. a b c Name Server RTT a 85 b 5 c 331 Roundtrip Time 10Wednesday 7 December 16
  • 23. © Men & Mice http://menandmice,com dig @ns.berkeley.edu. “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a 85 b 5 c 331 Roundtrip Time 11Wednesday 7 December 16
  • 24. © Men & Mice http://menandmice,com dig @ns.berkeley.edu. “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a 85 b 5 c 331 What is the address of ns.berkeley.edu. Roundtrip Time 11Wednesday 7 December 16
  • 25. © Men & Mice http://menandmice,com 5 83 324 “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a b c dig @ns.berkeley.edu. Roundtrip Time 12Wednesday 7 December 16
  • 26. © Men & Mice http://menandmice,com 5 83 324 “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a b c Here is a list of “edu.” Name Servers dig @ns.berkeley.edu. Roundtrip Time 12Wednesday 7 December 16
  • 27. © Men & Mice http://menandmice,com 315 83 324 “” edu. berkeley.edu. local caching DNS Server a b c Name Server RTT a b c Here is a list of “edu.” Name Servers dig @ns.berkeley.edu. Roundtrip Time 12Wednesday 7 December 16
  • 28. © Men & Mice http://menandmice,com UNIX / Linux Stub Resolver 13Wednesday 7 December 16
  • 29. © Men & Mice http://menandmice,com UNIX / Linux Stub Resolver •UNIX/Linux stub resolvers use a configuration file called resolv.conf •This file is usually found in the /etc directory 14Wednesday 7 December 16
  • 30. © Men & Mice http://menandmice,com Name Server List • Syntax: • nameserver <IP address> • Example: • nameserver 192.168.0.1 • Notes: • Most UNIX/Linux servers allow up to 3 nameserver entries • If multiple are listed, they are queried in the order given 15Wednesday 7 December 16
  • 31. © Men & Mice http://menandmice,com Unix DNS-Client Resolver timeout Attempt 1 DNS- Resolver 2 DNS- Resolver 3 DNS- Resolver 1 5s 2x 5s 3x 5s 2 10s 2x 5s 3x 3s Total 15s 20s 24s 16Wednesday 7 December 16
  • 32. © Men & Mice http://menandmice,com Unix DNS-Client Resolver timeout • the Unix-DNS Resolver timeout can be changed in the file /etc/resolv.conf option timeout:1 attempts:4 nameserver 100.64.1.100 nameserver 100.64.2.120 • attempts: how many queries send to each DNS resolver (max 5) • timeout: initial timeout for a query to a name server in resolv.conf (max 30s). For the second and successive rounds of queries, the resolver still doubles the initial timeout and divides by the number of name servers in resolv.conf 17Wednesday 7 December 16
  • 33. © Men & Mice http://menandmice,com Unix DNS-Client Resolver “Round-Robin” •the order in which the DNS-Resolvers are queried can be tweaked in /etc/resolv.conf option rotate nameserver 100.64.1.100 nameserver 100.64.2.120 •rotate: use all DNS-Resolvers in each resolver-session. Only take effect if the client program sends multiple queries after opening the DNS-Client resolver. Not many programs do this. 18Wednesday 7 December 16
  • 34. © Men & Mice http://menandmice,com Send Client-Resolver options via DHCP (1/2) •there are not standard DHCP options to transport the attempt, timeout and rotate resolver options •in the ISC-DHCP Server, add a new option definition (file /etc/dhcp/dhcpd.conf) option resolv-options code 232 = text; option resolv-options "timeout:2 attempts:4 rotate"; 19Wednesday 7 December 16
  • 35. © Men & Mice http://menandmice,com Send Client-Resolver options via DHCP (2/2) •on each ISC-DHCP Client, add a new option definition (file /etc/dhcp/dhclient.conf) option resolv-options code 232 = text; request resolv-options; •and also add a new DHCP-Script hook (File /etc/dhcp/dhclient-enter-hooks.d/resolvoptions) if [ "$new_resolv_options" ]; then echo "options $new_resolv_options" >> /etc/resolv.conf fi 20Wednesday 7 December 16
  • 36. © Men & Mice http://menandmice,com Windows Stub Resolver 21Wednesday 7 December 16
  • 37. © Men & Mice http://menandmice,com 22Wednesday 7 December 16
  • 38. © Men & Mice http://menandmice,com Obtain DNS servers via DHCP 22Wednesday 7 December 16
  • 39. © Men & Mice http://menandmice,com Obtain DNS servers via DHCP Configure listed DNS servers manually 22Wednesday 7 December 16
  • 40. © Men & Mice http://menandmice,com 23Wednesday 7 December 16
  • 41. © Men & Mice http://menandmice,com 23Wednesday 7 December 16
  • 42. © Men & Mice http://menandmice,com 24Wednesday 7 December 16
  • 43. © Men & Mice http://menandmice,com List of additional DNS-Resolver to query 24Wednesday 7 December 16
  • 44. © Men & Mice http://menandmice,com Windows DNS-Client Resolver Timeouts, 1 DNS-Server Time DNS Query 0s initial query, wait 1s 1s 2nd query, wait 1s 2s 3rd query, wait 2s 4s 4th query, wait 4s 8s 5th query, wait 4s 12s Client-Resolver gives up https://support.microsoft.com/de-de/kb/2834226 25Wednesday 7 December 16
  • 45. © Men & Mice http://menandmice,com Windows DNS-Client Resolver Timeouts, 2 DNS-Server Time DNS Query 0s initial query to 1st DNS server in the list, wait 1s 1s initial query to the 2nd DNS server in the list, wait 1s 2s 2nd query to the 2nd DNS server in the list, wait 2s 4s query to all DNS server in the list, wait 4s 8s query to all DNS server in the list, wait 4s 12s Client-Resolver gives up https://support.microsoft.com/de-de/kb/2834226 26Wednesday 7 December 16
  • 46. © Men & Mice http://menandmice,com Windows DNS-Client Resolver Timeouts, 3+ DNS-Server Time DNS Query 0s initial query to 1st DNS server in the list, wait 1s 1s initial query to the 2nd DNS server in the list, wait 1s 2s initial query to the 3rd DNS server in the list, wait 2s 4s query to all DNS server in the list, wait 4s 8s query to all DNS server in the list, wait 4s 12s Client-Resolver gives up https://support.microsoft.com/de-de/kb/2834226 27Wednesday 7 December 16
  • 47. © Men & Mice http://menandmice,com Adjusting the Windows DNS- CLient timeouts •The DNS-Client timeouts can be customized using the registry value HKLMSystemCurrentControlSetServicesdnscacheParametersDNSQueryTimeouts •This value does not exist by default and then the pre- defined default values are used • https://blogs.technet.microsoft.com/stdqry/2011/12/02/dns-clients-and-timeouts-part-1/ • https://blogs.technet.microsoft.com/stdqry/2011/12/14/dns-clients-and-timeouts-part-2/ 28Wednesday 7 December 16
  • 48. © Men & Mice http://menandmice,com Demo Setup 29Wednesday 7 December 16
  • 49. © Men & Mice http://menandmice.com DNS-Resolver without HA 30 Internet 30Wednesday 7 December 16
  • 50. © Men & Mice http://menandmice.com DNS-Resolver without HA 31 Internet 172.22.1.210 172.22.1.217 31Wednesday 7 December 16
  • 51. © Men & Mice http://menandmice.com DNS-Resolver without HA 31 Internet /etc/resolv.conf nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.217 31Wednesday 7 December 16
  • 52. © Men & Mice http://menandmice.com DNS-Resolver without HA 31 Internet /etc/resolv.conf nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.217 31Wednesday 7 December 16
  • 53. © Men & Mice http://menandmice.com DNS-Resolver without HA 31 Internet /etc/resolv.conf nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.217 31Wednesday 7 December 16
  • 54. © Men & Mice http://menandmice,com Unix resolver demo 32Wednesday 7 December 16
  • 55. © Men & Mice http://menandmice,com OpenBSD relayd 33Wednesday 7 December 16
  • 56. © Men & Mice http://menandmice,com relayd •relayd is a daemon to relay and dynamically redirect incoming connections to a target host •available on OpenBSD (and older versions on FreeBSD) •relayd can dynamically reconfigure the OpenBSD firewall “pf” to redirect traffic •relayd can also work as an application layer proxy 34Wednesday 7 December 16
  • 57. © Men & Mice http://menandmice.com DNS-Resolver with relayd 35 Internet 172.22.1.210 172.22.1.206 172.22.1.217 172.22.1.206 CARP-Protocol 35Wednesday 7 December 16
  • 58. © Men & Mice http://menandmice.com DNS-Resolver with relayd 35 Internet /etc/resolv.conf nameserver 172.22.1.206 nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.206 172.22.1.217 172.22.1.206 CARP-Protocol 35Wednesday 7 December 16
  • 59. © Men & Mice http://menandmice.com DNS-Resolver with relayd 35 Internet /etc/resolv.conf nameserver 172.22.1.206 nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.206 172.22.1.217 172.22.1.206 CARP-Protocol 35Wednesday 7 December 16
  • 60. © Men & Mice http://menandmice.com DNS-Resolver with relayd 35 Internet /etc/resolv.conf nameserver 172.22.1.206 nameserver 172.22.1.210 nameserver 172.22.1.217 172.22.1.210 172.22.1.206 172.22.1.217 172.22.1.206 CARP-Protocol 35Wednesday 7 December 16
  • 61. © Men & Mice http://menandmice.com relayd redirect configuration 36 # Layer 3 forwarding table <dnsserver> { 172.22.1.210, 172.22.1.217 } redirect dnsbalance { listen on 172.22.1.206 tcp port 53 listen on 172.22.1.206 udp port 53 forward to <dnsserver> check tcp } file /etc/relayd.conf 36Wednesday 7 December 16
  • 62. © Men & Mice http://menandmice.com OpenBSD relayd 37 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall Layer 3 redirect 37Wednesday 7 December 16
  • 63. © Men & Mice http://menandmice.com OpenBSD relayd 38 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes Layer 3 redirect 38Wednesday 7 December 16
  • 64. © Men & Mice http://menandmice.com OpenBSD relayd 39 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK configures PF rules Layer 3 redirect 39Wednesday 7 December 16
  • 65. © Men & Mice http://menandmice.com OpenBSD relayd 40 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK configures PF rules DNS-Query Layer 3 redirect 40Wednesday 7 December 16
  • 66. © Men & Mice http://menandmice.com OpenBSD relayd 41 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK configures PF rules DNS-Query DNS-Query Layer 3 redirect 41Wednesday 7 December 16
  • 67. © Men & Mice http://menandmice.com OpenBSD relayd 42 OpenBSD Kernel Userspace DNS-Server (BIND 9) DOWN relayd PF-Firewall probes Layer 3 redirect 42Wednesday 7 December 16
  • 68. © Men & Mice http://menandmice.com OpenBSD relayd 43 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK configures PF rules DNS-Server (BIND 9) DOWN Layer 3 redirect 43Wednesday 7 December 16
  • 69. © Men & Mice http://menandmice.com OpenBSD relayd 44 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK configures PF rules DNS-Query DNS-Server (BIND 9) DOWN Layer 3 redirect 44Wednesday 7 December 16
  • 70. © Men & Mice http://menandmice.com OpenBSD relayd 45 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK configures PF rules DNS-Query DNS-Query DNS-Server (BIND 9) DOWN Layer 3 redirect 45Wednesday 7 December 16
  • 71. © Men & Mice http://menandmice.com relayd relay configuration 46 # Layer 7 Application Layer Proxy table <dnsserver> { 172.22.1.210, 172.22.1.217 } dns protocol "dnsproto" relay dnsbalance { protocol dnsproto listen on 172.22.1.206 port 53 forward to <dnsserver> check tcp } file /etc/relayd.conf 46Wednesday 7 December 16
  • 72. © Men & Mice http://menandmice.com OpenBSD relayd 47 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall Layer 7 proxy 47Wednesday 7 December 16
  • 73. © Men & Mice http://menandmice.com OpenBSD relayd 48 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes Layer 7 proxy 48Wednesday 7 December 16
  • 74. © Men & Mice http://menandmice.com OpenBSD relayd 49 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK Layer 7 proxy 49Wednesday 7 December 16
  • 75. © Men & Mice http://menandmice.com OpenBSD relayd 50 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK DNS-Query DNS-Query Layer 7 proxy 50Wednesday 7 December 16
  • 76. © Men & Mice http://menandmice.com OpenBSD relayd 51 OpenBSD Kernel Userspace DNS-Server (BIND 9) relayd PF-Firewall probes OK DNS-Query DNS-Query Layer 7 proxy DNS-Query 51Wednesday 7 December 16
  • 77. © Men & Mice http://menandmice.com OpenBSD relayd 52 OpenBSD Kernel Userspace DNS-Server (BIND 9) DOWN relayd PF-Firewall probes Layer 7 proxy 52Wednesday 7 December 16
  • 78. © Men & Mice http://menandmice.com OpenBSD relayd 53 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK DNS-Server (BIND 9) DOWN Layer 7 proxy 53Wednesday 7 December 16
  • 79. © Men & Mice http://menandmice.com OpenBSD relayd 54 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK DNS-Query DNS-Server (BIND 9) DOWN Layer 7 proxy DNS-Query 54Wednesday 7 December 16
  • 80. © Men & Mice http://menandmice.com OpenBSD relayd 55 OpenBSD Kernel Userspace relayd PF-Firewall probes Not-OK DNS-Query DNS-Query DNS-Server (BIND 9) DOWN Layer 7 proxy DNS-Query 55Wednesday 7 December 16
  • 81. © Men & Mice http://menandmice,com relayd demo 56Wednesday 7 December 16
  • 82. © Men & Mice http://menandmice,com PowerDNS dnsdist 57Wednesday 7 December 16
  • 83. © Men & Mice http://menandmice.com dnsdist “dnsdist” is an DNS aware application level gateway • part of PowerDNS, but DNS server agnostic (can be used with any DNS resolver or authoritative server) • supports various load-balancing schemes (least outstanding, firstAvailable, weighted hash, weighted random, round-robin ...) • can do more than load balancing (filter, block, rewrite DNS traffic ...) 58 58Wednesday 7 December 16
  • 84. © Men & Mice http://menandmice.com dnsdist “dnsdist” is an DNS aware application level gateway • Lua-configuration and Lua-scriptable • available for Linux (Debian, Raspbian, Suse, Ubuntu, CentOS), FreeBSD • should work on other Unix-ish systems • Free Software (GPLv2 License) 59 http://dnsdist.org 59Wednesday 7 December 16
  • 85. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 86. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet /etc/resolv.conf nameserver 172.22.1.200 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 87. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet /etc/resolv.conf nameserver 172.22.1.200 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 88. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet /etc/resolv.conf nameserver 172.22.1.200 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 89. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet /etc/resolv.conf nameserver 172.22.1.200 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 90. © Men & Mice http://menandmice.com DNS-Resolver with dnsdist 60 Internet /etc/resolv.conf nameserver 172.22.1.200 172.22.1.210 172.22.1.217 Heartbeat 172.22.1.200 (dnsdist) 172.22.1.200 (dnsdist) 60Wednesday 7 December 16
  • 91. © Men & Mice http://menandmice.com starting dnsdist simple dnsdist startup without configuration file # dnsdist -l 172.22.1.200 172.22.1.210 172.22.1.217 61 local IP to listen for DNS queries DNS server to forward queries 61Wednesday 7 December 16
  • 92. © Men & Mice http://menandmice,com dnsdist demo 62Wednesday 7 December 16
  • 93. © Men & Mice http://menandmice,com dnsdist statistics demo 63Wednesday 7 December 16
  • 94. © Men & Mice http://menandmice,com comparing relayd and dnsdist 64Wednesday 7 December 16
  • 95. © Men & Mice http://menandmice,com relayd vs. dnsdist •relayd -- only available on OpenBSD (FreeBSD) •dnsdist -- available on many Linux/Unix systems 65Wednesday 7 December 16
  • 96. © Men & Mice http://menandmice,com relayd vs. dnsdist •relayd -- fast layer 3 forwarding in kernel space and userspace proxying •dnsdist -- only userspace proxying (but still pretty fast) 66Wednesday 7 December 16
  • 97. © Men & Mice http://menandmice,com relayd vs. dnsdist •relayd -- simple health monitoring and reporting •dnsdist -- online DNS statistics and Web-UI statistics 67Wednesday 7 December 16
  • 98. © Men & Mice http://menandmice,com relayd vs. dnsdist •relayd -- filtering with “pf” firewall •dnsdist -- DNS aware filtering with Lua-Scripting option 68Wednesday 7 December 16
  • 99. © Men & Mice http://menandmice,com relayd vs. dnsdist •relayd -- BSD license •dnsdist -- GPLv3 License 69Wednesday 7 December 16
  • 100. © Men & Mice http://menandmice,com Men & Mice Training • February 13 – 17 -- Redwood City, California, US Introduction to DNS & BIND Hands-On class and Introduction & Advanced DNS and BIND Topics Hands-on •March 6 – 10, -- Amsterdam (NL) or Osnabrueck (DE) Introduction to DNS & BIND Hands-On class and Introduction & Advanced DNS and BIND Topics Hands-on https://www.menandmice.com/support-training/training/ 70Wednesday 7 December 16
  • 101. © Men & Mice http://menandmice.com Webinar schedule 2017 This is our schedule for the webinars in the beginning of 2017 • 2nd Feb 2017 BIND 9 logging best practices • 23rd March 2017 DNSSEC zone signing tutorial • 13th April 2017 SMTP STS (Strict Transport Security) vs. SMTP with DANE 71 71Wednesday 7 December 16
  • 102. © Men & Mice http://menandmice.com Webinar schedule 2017 Additional webinar topics coming in 2017 • DNSSEC key management with BIND 9 "keymgr" • BIND 9 (and Men & Mice) on Docker (Linux) • Men & Mice Suite on Docker with Windows 2016 Server • How to manage DMARC-, SPF-, DKIM-, multi-part TXT-, CAA-, DANE-records in DNS zones • DNS over TCP: new developments from the IETF • DNS Server with SQL-Databases: PowerDNS and BIND 9 72 72Wednesday 7 December 16
  • 103. © Men & Mice http://menandmice,com Thank you! Questions? Comments? 73 73Wednesday 7 December 16