<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi team,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm testing whether dnsmasq can use standalone local DNS server. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I'm consist with primary/secondary DNS using dnsmasq, but if one of any dnsmasq servers has been stopped, it's always delayed (5 timeout). </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I configured DNS using bind(named), DNS latency has not been occurred.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I also verified "options rotate timeout:1 attempts:1" can decrease timeout, but I want to know why the timeout is occurred in only dnsmasq. </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<span>Q1. Is it a design and an expected result ? <br>
</span>
<div> If it causes my incorrect configuration, let me know right configuration sample please.<br>
</div>
<div><br>
</div>
<span>Q2. Is it a right use case for dnsmasq which is used by primary standalone DNS server without upstream DNS ?</span>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
primary/secondary dnsmasq is same configuration as follows.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<ol>
<li>linux host NetworkManager dns configurations</li></ol>
</div>
<div style=""></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ipv4.dns 127.0.0.1</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
ipv4.ignore-auto-dns true</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
2. /etc/resolv.conf</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">search example.com</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">nameserver 127.0.0.1</span></p>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
3. /etc/hosts</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">192.168.123.217 all.ocp311.example.com</span></p>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
e.g.> look "(Timeout)" </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:02.735666 recvfrom(3, "ZB\205\200\0\1\0\1\0\0\0\0\3all\6ocp311\7example\3"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.123.217")},
[16]) = 56</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:02.735838 poll([{fd=3, events=POLLIN}], 1, 4996) = 0 (Timeout)</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.737444 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.737582 sendto(3, "ZB\1\0\0\1\0\0\0\0\0\0\3all\6ocp311\7example\3"..., 40, MSG_NOSIGNAL, NULL, 0) = 40</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.737779 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.741020 ioctl(3, FIONREAD, [56]) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.741506 recvfrom(3, "ZB\205\200\0\1\0\1\0\0\0\0\3all\6ocp311\7example\3"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.123.217")},
[16]) = 56</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.742938 poll([{fd=3, events=POLLOUT}], 1, 4994) = 1 ([{fd=3, revents=POLLOUT}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.743455 sendto(3, "\273q\1\0\0\1\0\0\0\0\0\0\3all\6ocp311\7example\3"..., 40, MSG_NOSIGNAL, NULL, 0) = 40</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:07.744117 poll([{fd=3, events=POLLIN}], 1, 4993) = 0 (Timeout)</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.741347 close(3)<span>
</span>= 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.742140 socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 3</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.742289 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.123.217")}, 16) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.742377 poll([{fd=3, events=POLLOUT}], 1, 0) = 1 ([{fd=3, revents=POLLOUT}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.742450 sendto(3, "ZB\1\0\0\1\0\0\0\0\0\0\3all\6ocp311\7example\3"..., 40, MSG_NOSIGNAL, NULL, 0) = 40</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.742585 poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.744364 ioctl(3, FIONREAD, [56]) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.744471 recvfrom(3, "ZB\205\200\0\1\0\1\0\0\0\0\3all\6ocp311\7example\3"..., 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.123.217")},
[16]) = 56</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.744573 close(3)<span>
</span>= 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.744658 socket(AF_INET, SOCK_DGRAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 3</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.744841 connect(3, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.123.217")}, 16) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.745031 poll([{fd=3, events=POLLOUT}], 1, 4997) = 1 ([{fd=3, revents=POLLOUT}])</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.745134 sendto(3, "\273q\1\0\0\1\0\0\0\0\0\0\3all\6ocp311\7example\3"..., 40, MSG_NOSIGNAL, NULL, 0) = 40</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:12.745277 poll([{fd=3, events=POLLIN}], 1, 4997) = 0 (Timeout)</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.744700 close(3)<span>
</span>= 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.744886 futex(0x49ca7b0, FUTEX_WAKE, 1) = 1</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.745027 futex(0xc4200af148, FUTEX_WAKE, 1) = 1</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.745312 socket(AF_INET, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, IPPROTO_IP) = 3</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.745489 setsockopt(3, SOL_SOCKET, SO_BROADCAST, [1], 4) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.745596 connect(3, {sa_family=AF_INET, sin_port=htons(8443), sin_addr=inet_addr("192.168.123.217")}, 16) = -1 EINPROGRESS (Operation now in progress)</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.745923 epoll_ctl(4, EPOLL_CTL_ADD, 3, {EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=1236758272, u64=139866846752512}}) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.746122 futex(0xc4200af148, FUTEX_WAKE, 1) = 1</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.746241 futex(0x49d1240, FUTEX_WAIT, 0, {14, 972715777}) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.765726 futex(0x49d1240, FUTEX_WAIT, 0, {31, 999776346}) = 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.777378 sched_yield()
<span> </span>= 0</span></p>
<p style="margin: 0px; font: 14px Monaco; color: rgb(217, 217, 217); background-color: rgb(0, 0, 0); margin: 0px; background-color: rgb(0, 0, 0)">
<span style="font-variant-ligatures: no-common-ligatures; font-variant-ligatures: no-common-ligatures">20:54:17.778360 futex(0x49ca6d0, FUTEX_WAKE, 1) = 0</span></p>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I appreciate your help in advance,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Best regards,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Daein</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>