<div dir="ltr"><div>Hi</div><div><br></div><div>We needed dnsmasq to have capability of SRV caching, so I have complied dnsmasq from source using following dockerfile</div><div><br></div><div>" </div><div>FROM ubuntu:bionic<br>MAINTAINER "Abhishek Patti <<a href="mailto:abpatti@cisco.com">abpatti@cisco.com</a>>"<br><br>RUN apt-get update && apt-get install -y gettext libnetfilter-conntrack-dev libidn2-dev libdbus-1-dev libgmp-dev nettle-dev libbsd-dev liblua5.2-dev build-essential devscripts<br>COPY dnsmasq ./<br>RUN debuild -b -uc -us<br></div><div><br></div><div>"</div><div>this gives me dnsmasq_2.81-1_all.deb </div><div><br></div><div>however when i upgrade existing/running version of dnsmasq (2.79) on ubuntu and run command "dnsmasq --version:, it upgraded successfully but shows "UNKNOWN"</div><div><br></div><div>" dnsmasq --version</div>Dnsmasq version UNKNOWN Copyright (c) 2000-2020 Simon Kelley<br>Compile time options: IPv6 GNU-getopt DBus no-UBus i18n IDN2 DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify dumpfile<br><br>This software comes with ABSOLUTELY NO WARRANTY.<br>Dnsmasq is free software, and you are welcome to redistribute it<br>under the terms of the GNU General Public License, version 2 or 3."<div><br></div><div>Please let me know<br><div><br></div><div><br></div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 30, 2020 at 4:05 AM <<a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk">dnsmasq-discuss-request@lists.thekelleys.org.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Send Dnsmasq-discuss mailing list submissions to<br>
<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-request@lists.thekelleys.org.uk</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:dnsmasq-discuss-owner@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss-owner@lists.thekelleys.org.uk</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Dnsmasq-discuss digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: Active-passive failover for dnsmasq with ldirectord<br>
(Tom Fernandes)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Wed, 29 Jan 2020 22:32:28 +0100<br>
From: Tom Fernandes <<a href="mailto:anyaddress@gmx.net" target="_blank">anyaddress@gmx.net</a>><br>
To: <a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
Subject: Re: [Dnsmasq-discuss] Active-passive failover for dnsmasq<br>
with ldirectord<br>
Message-ID: <<a href="mailto:602f303e-0198-b3b2-fd4f-3d684d08af5e@gmx.net" target="_blank">602f303e-0198-b3b2-fd4f-3d684d08af5e@gmx.net</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi again,<br>
<br>
are there some points in my description that are unclear?<br>
<br>
Feedback concerning this setup is very much appreciated!<br>
<br>
Warm regards,<br>
<br>
<br>
Tom<br>
<br>
On 23/01/2020 15:08, Tom Fernandes wrote:<br>
> Hi,<br>
><br>
> I read the old threads regarding dnsmasq and high availability and would<br>
> like to know if the following setup is possible or if I'm missing something.<br>
><br>
> Master: dnsmasq A (192.168.1.10)<br>
> Slave: dnsmasq B (192.168.1.20)<br>
><br>
> Loadbalancer virtual IP in ldirectord 192.168.1.30<br>
><br>
> The clients use the virtual IP 192.168.1.30 as their nameserver.<br>
><br>
> Host A is a "normally" configured dnsmasq server which also offers DHCP.<br>
><br>
> Host B is configured the same way like server A with addition of an<br>
> iptables rule which blocks incoming DHCP-Requests.<br>
><br>
> The configuration files + the DHCP leases file are on a shared<br>
> (active-active) Cluster-FS available to A and B.<br>
><br>
> ldirectord is configured with with one realserver (A) and one fallback<br>
> server (B). In this configuration a connection to 192.168.1.30 will only<br>
> lookup records from host A (as long as A is alive).<br>
><br>
> When A goes down, the following will happen:<br>
> 1) The fallback server B will be used when clients lookup records from<br>
> 192.168.1.30<br>
> 2) The loadbalancer will connect (through ldirectords "fallbackcommand"<br>
> with the "start" parameter) via SSH to server B and remove the iptables<br>
> rule which blocks incoming DHCP requests and will restart dnsmasq.<br>
><br>
> Now server B is offering DHCP and DNS requests in the same way like<br>
> server A was doing before.<br>
><br>
> When server A gets online again the "fallbackcommand" on the<br>
> loadbalancer is called again (this time with the "stop" parameter). It<br>
> will now connect to server A and restart dnsmasq and to server B and set<br>
> the iptables rule again to block incoming DHCP requests. Server B will<br>
> become the fallback server again.<br>
><br>
> What do you think?<br>
><br>
> Warm regards,<br>
><br>
><br>
> Tom<br>
><br>
> _______________________________________________<br>
> Dnsmasq-discuss mailing list<br>
> <a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
> <a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
><br>
<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Dnsmasq-discuss Digest, Vol 176, Issue 36<br>
************************************************<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">abhishek </div></div></div>