<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I run dnsmasq in a kubernetes pod with some forwarding rules that include some kubernetes service IPs (172.31.*).  In a recent kubernetes update, it seems that kubernetes configures all of those service addresses as IPVS interfaces in the pod, and I believe dnsmasq is not ignoring those forwarding rules because it believes they are all local interfaces.  Is there a way to force dnsmasq to use the nameservers?<br><br>my config:<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>  dnsmasqconf: |<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    # dnsmasq.conf file from ConfigMap<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    no-resolv<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    no-hosts<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=/in-addr.arpa/169.254.169.254<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=/ip6.arpa/169.254.169.254<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=/k8s.internal/172.31.53.53<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=/internal.domain/127.0.0.1#10053<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=/other.domain/172.31.217.188<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    # Upstream based on environment (OpenStack or BMC)<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    # Must be provided via environment variable<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    server=169.254.169.254<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    user=root<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    conf-dir=/etc/dnsmasq.d<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>logs from dnsmasq show it is ignoring the 172.* addresses:  <span style='font-size:9.0pt;font-family:Consolas;color:#E01E5A'>dnsmasq - INFO 1 140344933922560 1000 - - dnsmasq[14]: ignoring nameserver 172.31.217.188 - local interface<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:9.0pt;font-family:Consolas;color:#E01E5A'><o:p> </o:p></span></p><p class=MsoNormal>After looking in the pod, I noticed those addresses actually show up in ‘ip addr’ output:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-left:.5in'>[oracle@ost-ugbu-dataraker-node21x4 app]$ ip addr | grep 172.31.217.188<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'>    inet 172.31.217.188/32 brd 172.31.217.188 scope global kube-ipvs0<o:p></o:p></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><p class=MsoNormal>My assumption is that this is why dnsmasq thinks the interface is local and is ignoring it.  I notice that the internal.domain forwarded to 127.0.0.1 on port 10053 is not ignored, is it because it’s a non-standard port?  Or can I force this if I just specify #53?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<br>Jon<o:p></o:p></p></div></body></html>