<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Actually, run resolvectl status on the Ubuntu box, find your interface name and see what the DNS servers say they are configured as. They should be your local DNS server IP.<div class=""><br class=""></div><div class="">If not, then something isn’t getting the DNS servers from DHCP. If you’re using NetPlan (which is the default) check the Netplan configuration for the network card.<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 4, 2019, at 2:53 PM, john doe <<a href="mailto:johndoe65534@mail.com" class="">johndoe65534@mail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 8/4/2019 9:04 PM,<span class="Apple-converted-space"> </span></span><a href="mailto:dnsmasqyq.xpt@neverbox.com" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">dnsmasqyq.xpt@neverbox.com</a><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class=""><span class="Apple-converted-space"> </span>wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">Hi,<br class=""><br class="">Thanks a lot for all your replies.<br class=""><br class="">Sorry I wasn't very clear first as I don't know if anyone would<br class="">read/reply. Here is my reply to you one by one, but at this single<br class="">place.<br class=""><br class="">On Sun, Aug 4, 2019 at 1:36 PM Daniel Huhardeaux wrote:<br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">Hi,<br class=""><br class="">I know this is not a dnsmasq issue per se, but all my machines are<br class="">Ubuntu based and they all can't utilized the local dnsmasq server that<br class="">I setup for my LAN, which literally making my local dnsmasq server<br class="">useless.<br class=""></blockquote></blockquote><br class=""><blockquote type="cite" class="">systemd-resolve is irrelevant to the OP's question, it provides local<br class=""></blockquote>'on the machine' DNS caching. What the OP wants is 'local on his LAN' DNS...<br class=""><br class="">Sorry I wasn't very clear in my OP -- I've setup my local dnsmasq<br class="">server (DHCP/DNS) correctly. All my Ubuntu machines are picking up IPs<br class="">from my dnsmasq DHCP server. Just they don't use my dnsmasq DNS<br class="">server.<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">The problem is that the NetworkManager that Ubuntu uses insists to use<br class="">its own DNS server, which is 127.0.0.53, not the DHCP/DNS server I<br class="">setup for my LAN.<br class=""></blockquote></blockquote><br class=""><blockquote type="cite" class="">Most likely you are looking at `systemd-resolved`. Consider<br class=""></blockquote>that "local DNS". It still needs an upstream DNS.<br class=""><br class="">Yes, I believe so. the 127.0.0.53 is used, and I can confirm that<br class="">whether the `resolvconf` is installed or not. The problem is that,<br class="">`systemd-resolved`'s upstream DNS is suppose to be my LAN dnsmasq<br class="">server (DHCP/DNS), at least I hope so, but it is not somehow, and this<br class="">is the exact problem I'm trying to solve/figure out why.<br class=""><br class="">Why I say the upstream DNS is not my LAN dnsmasq DNS server? Because<br class="">when I `dig` for my local machine names, including the LAN dnsmasq<br class="">server itself, I get nothing in the `ANSWER SECTION` section, unless I<br class="">manually switch the `nameserver` entry in /etc/resolv.conf in *my<br class="">clients machines* to my LAN dnsmasq server. Then everything works.<br class=""><br class=""><blockquote type="cite" class=""><blockquote type="cite" class="">I'm wondering how you guys solved such problems, since you are using<br class="">dnsmasq server just fine. I had been asking such questions at the<br class="">Ubuntu and NetworkManager side multiple times at multiple places, but<br class="">have never been able to get a straight/working answer.<br class=""></blockquote><br class="">Hello.<br class=""><br class="">It's not a NetworkManager nor an Ubuntu problem: you have<br class="">systemd-resolve installed on your machine (guess Ubuntu 18.04) which<br class="">uses 127.0.0.53 as IP for DNS. You have to go in /etc/systemd and adapt<br class="">the resolved.conf file to put your dnsmasq IP server as DNS.<br class=""></blockquote><br class="">Yes, exactly I'm using Ubuntu 18.04, thus systemd-resolve. So,<br class=""><br class="">How to adapt the resolved.conf file so that my modification survive<br class="">reboot, and not hard-coding anything as when I take my laptop else<br class="">where, I don't want it still pointing to my home LAN dnsmasq server?<br class=""><br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Lookat the 'resolvconf' package if it is installed.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Basically, look at the top of /etc/resolv.conf to see what is handeling it.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">--</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">John Doe</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Dnsmasq-discuss mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a></div></blockquote></div><br class=""></div></body></html>