Re: [Dnsmasq-discuss] ignore mac address for one of the dhcp
On Mon, Apr 13, 2020 at 12:15 PM Geert Stappers wrote: > On Mon, Apr 13, 2020 at 10:18:31AM -0400, John Siu wrote: > > On Mon, Apr 13, 2020 at 4:54 AM Geert Stappers wrote: > > > On Sun, Apr 12, 2020 at 03:14:33PM -0400, John Siu wrote: > > > > I am running dnsmasq on a multiple port box. Following are dhcp > config > > > > for the lan and dmz ports: > > > > > > > > --- > > > > > > > > ## LAN > > > > dhcp-range=tag:lan,::1,constructor:lan,ra-names,72h # IPv6 > > > > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h # IPv4 > > > > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw > > > > dhcp-option=tag:lan,option:dns-server,172.16.168.1 > > > > > > > > ## DMZ > > > > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,72h # IPv6 > > > > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h # IPv4 > > > > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw > > > > dhcp-option=tag:dmz,option:dns-server,10.10.10.1 > > > > > > > > --- > > > > > > > > They work correctly for network connected to those ports. > > > > > > I wonder how. > > > > > > I mean: The provided information looks incomplete to me. > > > Might be due an attempt to make the config more generic. > > > > > > > > > > > Following is the complete 92-dhcp.conf file I am using. It is not > generic. > > I have interface name "lan" and "dmz" setup in network config. > > Ah > > > --- > > log-dhcp > > quiet-dhcp > > quiet-dhcp6 > > quiet-ra > > > > enable-ra > > > > ## LAN > > dhcp-range=tag:lan,::1,constructor:lan,ra-names,72h # IPv6 > > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h # IPv4 > > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw > > dhcp-option=tag:lan,option:dns-server,172.16.168.1 # option 6 dns > > #dhcp-option=tag:lan,option:ntp-server,172.16.168.1 > > > > ## DMZ > > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,72h # IPv6 > > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h # IPv4 > > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw > > dhcp-option=tag:dmz,option:dns-server,10.10.10.1 # option 6 dns > > #dhcp-option=tag:dmz,option:ntp-server,10.10.10.1 > > > > ## Lease > > dhcp-hostsfile=/etc/dnsmasq.d/extra/dhcp.hosts > > dhcp-leasefile=/etc/dnsmasq.d/extra/dhcp.lease > > --- > > > > > > However, I am having issue with the switch which connect to both dmz > > > > and lan ports with different VLANs. As those VLAN ports share the > same > > > > mac address, sometimes the switch will pick up IP from the lan side, > > > > and sometimes from the dmz side. > > > > > > > > How can I make dnsmasq only serve IP on the lan side for this > specific mac > > > > address? > > > > > > Tell more about what you have. > > > > > The switch is a Netgear GS908E. It has 8 ports. I setup 2 vlan, one for > > dmz, one for lan. So there is one cable from my server dmz port to the > dmz > > vlan, same for lan. > > Thanks. I'm not used to interface names like 'lan' or 'dmz'. > I'm used to interface names like 'eth0' and 'enp181s0f2' > > > > The switch is configure to use dhcp for its ip. > > OK, Acknowledge. (As in "I respect your design decission" ) > > > > However, it requests dhcp from all ports. As a result, sometime it pick > up > > 172.x.x.x, and sometimes it pickup 10.x.x.x address. > > (and that is the challenge we are facing) > > > I have been reading the dnsmasq manual page (again ;-) But I could not > find a clear solution for coping with duplicate MAC-addresses. > > The is `--dhcp-ignore=tag:...` no use in this case. > > > Idea (wild idea?) > > dhcp-host:01:00:18:4D:C0:3F:0E,172.16.168.251,12h > > I tried , also with tag:lan, and set:lan, the switch will still pick up 10.x.x.x address. > > In other words: Make a "static reserveration" for the swith in LAN > > > > > Regards > Geert Stappers > -- > Silence is hard to parse > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] ignore mac address for one of the dhcp
On Mon, Apr 13, 2020 at 4:54 AM Geert Stappers wrote: > On Sun, Apr 12, 2020 at 03:14:33PM -0400, John Siu wrote: > > I am running dnsmasq on a multiple port box. Following are dhcp config > for > > the lan and dmz ports: > > > > --- > > > > ## LAN > > dhcp-range=tag:lan,::1,constructor:lan,ra-names,72h # IPv6 > > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h # IPv4 > > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw > > dhcp-option=tag:lan,option:dns-server,172.16.168.1 > > > > ## DMZ > > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,72h # IPv6 > > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h # IPv4 > > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw > > dhcp-option=tag:dmz,option:dns-server,10.10.10.1 > > > > --- > > > > They work correctly for network connected to those ports. > > I wonder how. > > I mean: The provided information looks incomplete to me. > Might be due an attempt to make the config more generic. > > > Following is the complete 92-dhcp.conf file I am using. It is not generic. I have interface name "lan" and "dmz" setup in network config. --- log-dhcp quiet-dhcp quiet-dhcp6 quiet-ra enable-ra ## LAN dhcp-range=tag:lan,::1,constructor:lan,ra-names,72h # IPv6 dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h # IPv4 dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw dhcp-option=tag:lan,option:dns-server,172.16.168.1 # option 6 dns #dhcp-option=tag:lan,option:ntp-server,172.16.168.1 ## DMZ dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,72h # IPv6 dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h # IPv4 dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw dhcp-option=tag:dmz,option:dns-server,10.10.10.1 # option 6 dns #dhcp-option=tag:dmz,option:ntp-server,10.10.10.1 ## Lease dhcp-hostsfile=/etc/dnsmasq.d/extra/dhcp.hosts dhcp-leasefile=/etc/dnsmasq.d/extra/dhcp.lease --- > However, I am having issue with the switch which connect to both dmz > > and lan ports with different VLANs. As those VLAN ports share the same > > mac address, sometimes the switch will pick up IP from the lan side, > > and sometimes from the dmz side. > > > > How can I make dnsmasq only serve IP on the lan side for this specific > mac > > address? > > Tell more about what you have. > > The switch is a Netgear GS908E. It has 8 ports. I setup 2 vlan, one for dmz, one for lan. So there is one cable from my server dmz port to the dmz vlan, same for lan. The switch is configure to use dhcp for its ip. However, it requests dhcp from all ports. As a result, sometime it pick up 172.x.x.x, and sometimes it pickup 10.x.x.x address. > Regards > Geert Stappers > -- > Silence is hard to parse > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] ignore mac address for one of the dhcp
I am running dnsmasq on a multiple port box. Following are dhcp config for the lan and dmz ports: --- ## LAN dhcp-range=tag:lan,::1,constructor:lan,ra-names,72h # IPv6 dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h # IPv4 dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw dhcp-option=tag:lan,option:dns-server,172.16.168.1 ## DMZ dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,72h # IPv6 dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h # IPv4 dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw dhcp-option=tag:dmz,option:dns-server,10.10.10.1 --- They work correctly for network connected to those ports. However, I am having issue with the switch which connect to both dmz and lan ports with different VLANs. As those VLAN ports share the same mac address, sometimes the switch will pick up IP from the lan side, and sometimes from the dmz side. How can I make dnsmasq only serve IP on the lan side for this specific mac address? Thank you! ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
I see. I did a rapid chain of dig in one line and see the behavior you described. Thank you for the explanation!! On Thu, Dec 12, 2019 at 1:16 PM Simon Kelley wrote: > > By default, dnsmasq send a query to all the upstream servers over 50 > queries or every 20 seconds. If you're testing and doing queries slowly, > the 20 second rule can make it look like _every_ query gets broadcast. > > If this is a problem, you can edit src/config.h and recompile. > > > #define FORWARD_TEST 50 /* try all servers every 50 queries */ > #define FORWARD_TIME 20 /* or 20 seconds */ > > > > Cheers, > > Simon. > > > On 10/12/2019 16:41, John Siu wrote: > > You will need "log-queries=extra" in config to see it. Then use > > nslookup/dig to different domains. > > > > On Tue, Dec 10, 2019 at 11:35 AM John Siu wrote: > >> > >> I see it doing it for every single request. > >> > >> On Tue, Dec 10, 2019 at 11:12 AM Simon Rettberg > >> wrote: > >>> > >>> Am Mon, 9 Dec 2019 11:58:22 -0500 > >>> schrieb John Siu : > >>> > >>> dnsmasq sends queries to all servers occasionally to determine which > >>> one replies fastest, and then keeps using that one exclusively for a > >>> while. Do you see every single query sent to all servers, or just the > >>> first one after restarting dnsmasq? > >>> > >>> - Simon > >>> > >>>> OS: Ubuntu 18.04 with all updates > >>>> dnsmasq version: 2.79-1 > >>>> > >>>> According to man page: > >>>> > >>>> --all-servers > >>>> By default, when dnsmasq has more than one upstream server > >>>> available, it will send queries to just one server. Setting this flag > >>>> forces dnsmasq to send all queries to all available servers. The > >>>> reply from the server which answers first will be returned to the > >>>> original requester. > >>>> > >>>> I don't have that flag in command line or in the config file. However > >>>> with "log-queries=extra" in config file, I am seeing following: > >>>> > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] > >>>> news.com from 10.10.10.101 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2001:1998:f00:2::1 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2001:1998:f00:1::1 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2606:4700:4700::1001 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2606:4700:4700:: > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2001:4860:4860::8844 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 2001:4860:4860:: > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 209.18.47.63 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 209.18.47.62 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 209.18.47.61 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 1.0.0.1 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 1.1.1.1 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 8.8.4.4 > >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > >>>> news.com to 8.8.8.8 > >>>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply > >>>> news.com is 35.190.79.82 > >>>> > >>>> Is --all-servers behavior changed to default on? Is there a way to > >>>> revert it? > >>>> > >>>> Thank you! > >>>> > >>>> John Siu > >>> > > > > ___ > > Dnsmasq-discuss mailing list > > Dnsmasq-discuss@lists.thekelleys.org.uk > > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > > > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] How to update ipv6 for own interface? (Updated info)
Thank you! "interface-name" work immediately!! I lost count of how many times I went through the man page top to bottom the past few days and I completely miss that option. I few like blind ... On Thu, Dec 12, 2019 at 1:05 PM Simon Kelley wrote: > > On 10/12/2019 03:31, John Siu wrote: > > Ok, let me elaborate more. > > > > I have following setup: > > > > Linux router server: > > - OS: Ubuntu 18.04 > > - wide-dhcp-client on external(internet facing) nic > > - dnsmasq on lan interface(hostname: router) as dns, ipv4 + ipv6 dhcp > > - lan interface IPv6 configure by wide-dhcp-client, IPv4 > > static(172.16.168.1) via netplan > > - internal domain: int.johnsiu.com <http://int.johnsiu.com>(configure in > > dnsmasq) > > > > Servers on LAN > > - couple mac, linux machines on lan network > > - all have static dhcp ipv4 from dnsmasq. > > - all have ipv4 entry in router /etc/hosts > > > > dnsmasq is able to do dns resolve for all linux machines for both ipv4 > > and ipv6. eg: > > > > ssh -4 test.int.johnsiu.com <http://test.int.johnsiu.com> > > ssh -6 test.int.johnsiu.com <http://test.int.johnsiu.com> > > > > However, this does not work for the router lan interface. I already did > > following: > > > > In /etc/hosts: > > > > 172.16.168.1 router > > > > In /etc/dnsmasq.d/lan.conf, I have following lines for router: > > > > dhcp-host=e2:1d:6b:2d:33:e7,172.16.168.1,router,infinite > > > > While "ssh -4 router.int.johnsiu.com <http://router.int.johnsiu.com>" > > works, "ssh -6 router.int.johnsiu.com <http://router.int.johnsiu.com>" > > doesn't. > > > > Is there a way to make it happen? > > > > > > There is indeed. > > interface-name=router, > > Unless specifically configured otherwise, this works for IPv4 and IPv6 > for your partial solution is no longer required. > > Cheers, > > Simon. > > > > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
You will need "log-queries=extra" in config to see it. Then use nslookup/dig to different domains. On Tue, Dec 10, 2019 at 11:35 AM John Siu wrote: > > I see it doing it for every single request. > > On Tue, Dec 10, 2019 at 11:12 AM Simon Rettberg > wrote: > > > > Am Mon, 9 Dec 2019 11:58:22 -0500 > > schrieb John Siu : > > > > dnsmasq sends queries to all servers occasionally to determine which > > one replies fastest, and then keeps using that one exclusively for a > > while. Do you see every single query sent to all servers, or just the > > first one after restarting dnsmasq? > > > > - Simon > > > > > OS: Ubuntu 18.04 with all updates > > > dnsmasq version: 2.79-1 > > > > > > According to man page: > > > > > > --all-servers > > > By default, when dnsmasq has more than one upstream server > > > available, it will send queries to just one server. Setting this flag > > > forces dnsmasq to send all queries to all available servers. The > > > reply from the server which answers first will be returned to the > > > original requester. > > > > > > I don't have that flag in command line or in the config file. However > > > with "log-queries=extra" in config file, I am seeing following: > > > > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] > > > news.com from 10.10.10.101 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2001:1998:f00:2::1 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2001:1998:f00:1::1 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2606:4700:4700::1001 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2606:4700:4700:: > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2001:4860:4860::8844 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 2001:4860:4860:: > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 209.18.47.63 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 209.18.47.62 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 209.18.47.61 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 1.0.0.1 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 1.1.1.1 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 8.8.4.4 > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > > news.com to 8.8.8.8 > > > Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply > > > news.com is 35.190.79.82 > > > > > > Is --all-servers behavior changed to default on? Is there a way to > > > revert it? > > > > > > Thank you! > > > > > > John Siu > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
I see it doing it for every single request. On Tue, Dec 10, 2019 at 11:12 AM Simon Rettberg wrote: > > Am Mon, 9 Dec 2019 11:58:22 -0500 > schrieb John Siu : > > dnsmasq sends queries to all servers occasionally to determine which > one replies fastest, and then keeps using that one exclusively for a > while. Do you see every single query sent to all servers, or just the > first one after restarting dnsmasq? > > - Simon > > > OS: Ubuntu 18.04 with all updates > > dnsmasq version: 2.79-1 > > > > According to man page: > > > > --all-servers > > By default, when dnsmasq has more than one upstream server > > available, it will send queries to just one server. Setting this flag > > forces dnsmasq to send all queries to all available servers. The > > reply from the server which answers first will be returned to the > > original requester. > > > > I don't have that flag in command line or in the config file. However > > with "log-queries=extra" in config file, I am seeing following: > > > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] > > news.com from 10.10.10.101 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2001:1998:f00:2::1 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2001:1998:f00:1::1 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2606:4700:4700::1001 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2606:4700:4700:: > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2001:4860:4860::8844 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 2001:4860:4860:: > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 209.18.47.63 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 209.18.47.62 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 209.18.47.61 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 1.0.0.1 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 1.1.1.1 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 8.8.4.4 > > Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded > > news.com to 8.8.8.8 > > Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply > > news.com is 35.190.79.82 > > > > Is --all-servers behavior changed to default on? Is there a way to > > revert it? > > > > Thank you! > > > > John Siu > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
dns_srv.conf: server=8.8.8.8 server=8.8.4.4 server=1.1.1.1 server=1.0.0.1 server=209.18.47.61 server=209.18.47.62 server=209.18.47.63 ## forward dns : ipv6 server=2001:4860:4860:: server=2001:4860:4860::8844 server=2606:4700:4700:: server=2606:4700:4700::1001 server=2001:1998:f00:1::1 server=2001:1998:f00:2::1 On Tue, Dec 10, 2019 at 7:37 AM Siji Sunny wrote: > And what's in dns_srv.conf file ? > > On Tue, Dec 10, 2019 at 3:54 PM Geert Stappers < > geert.stapp...@hendrikx-itc.nl> wrote: > >> On Tue, Dec 10, 2019 at 03:17:41AM -0500, John Siu wrote: >> > On Tue, Dec 10, 2019 at 3:07 AM Siji Sunny wrote: >> > > On Tue, Dec 10, 2019 at 12:52 PM John Siu wrote: >> > >> I tried with "default" in its own line, that gives error too. >> > > >> > > Will you please share dnsmasq.conf here. >> >> Which could and should have shared in the original post >> >> >> > Following is my config: >> > >> > # DNS >> > >> > #dns-forward-max=4 >> > >> > # LOG >> > #log-queries=extra # log all query for debugging >> > #log-dhcp >> > quiet-dhcp >> > quiet-dhcp6 >> > quiet-ra >> > >> > except-interface=enp1s0 >> > #listen-address=::1,127.0.0.1,172.168.168.1 >> > no-poll # don't poll /etc/resolv.con for change >> > no-resolv # don't use /etc/resolv.conf >> > bogus-priv # >> > domain-needed # don't query upstream with hostname only >> > expand-hosts # expend hostname with local domain >> > rebind-localhost-ok >> > #stop-dns-rebind # don't replace entry with local ip >> > >> > neg-ttl=3600 >> > min-cache-ttl=3600 >> > cache-size=1 >> > #log-async=10 >> > >> > ## local domain >> > domain=int.johnsiu.com >> > local=/int.johnsiu.com/ >> > rebind-domain-ok=/int.johnsiu.com/ >> > >> > ## Server >> > servers-file=/etc/dnsmasq.d/extra/dns_srv.conf >> >> Yeah >> >> >> > ## forward dns : ipv4 >> > #server=8.8.8.8 >> > #server=8.8.4.4 >> > #server=1.1.1.1 >> > #server=1.0.0.1 >> > #server=209.18.47.61 >> > #server=209.18.47.62 >> > #server=209.18.47.63 >> > >> > ## forward dns : ipv6 >> > #server=2001:4860:4860:: >> > #server=2001:4860:4860::8844 >> > #server=2606:4700:4700:: >> > #server=2606:4700:4700::1001 >> > #server=2001:1998:f00:1::1 >> > #server=2001:1998:f00:2::1 >> > >> > # dhcp : ipv4 >> > >> > ## LAN >> > dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h >> > dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw >> > dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns >> > dhcp-option=tag:lan,option:ntp-server,172.16.168.1 >> > ## DMZ >> > dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h >> > dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw >> > dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns >> > dhcp-option=tag:dmz,option:ntp-server,10.10.10.1 >> > >> > # dhcp : ipv6 >> > >> > enable-ra >> > # Construct a valid IPv6 range from reading the address set on the >> interface. >> > # The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get >> this right or dnsmasq will get confused. >> > dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h >> > dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h >> > >> > # Static dhcp >> > dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host >> > >> > >> >> ___ >> Dnsmasq-discuss mailing list >> Dnsmasq-discuss@lists.thekelleys.org.uk >> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >> > > > -- > Siji > > <https://www.facebook.com/SugarBoxNetworks/> | > <https://www.instagram.com/sugarboxnetworks/> | > <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> > > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
Following is my config: # DNS #dns-forward-max=4 # LOG #log-queries=extra # log all query for debugging #log-dhcp quiet-dhcp quiet-dhcp6 quiet-ra except-interface=enp1s0 #listen-address=::1,127.0.0.1,172.168.168.1 no-poll # don't poll /etc/resolv.con for change no-resolv # don't use /etc/resolv.conf bogus-priv # domain-needed # don't query upstream with hostname only expand-hosts # expend hostname with local domain rebind-localhost-ok #stop-dns-rebind # don't replace entry with local ip neg-ttl=3600 min-cache-ttl=3600 cache-size=1 #log-async=10 ## local domain domain=int.johnsiu.com local=/int.johnsiu.com/ rebind-domain-ok=/int.johnsiu.com/ ## Server servers-file=/etc/dnsmasq.d/extra/dns_srv.conf ## forward dns : ipv4 #server=8.8.8.8 #server=8.8.4.4 #server=1.1.1.1 #server=1.0.0.1 #server=209.18.47.61 #server=209.18.47.62 #server=209.18.47.63 ## forward dns : ipv6 #server=2001:4860:4860:: #server=2001:4860:4860::8844 #server=2606:4700:4700:: #server=2606:4700:4700::1001 #server=2001:1998:f00:1::1 #server=2001:1998:f00:2::1 # dhcp : ipv4 ## LAN dhcp-range=tag:lan,172.16.168.130,172.16.168.250,72h dhcp-option=tag:lan,option:router,172.16.168.1 # option 3 default gw dhcp-option=tag:lan,6,172.16.168.1 # option 6 dns dhcp-option=tag:lan,option:ntp-server,172.16.168.1 ## DMZ dhcp-range=tag:dmz,10.10.10.100,10.10.10.120,72h dhcp-option=tag:dmz,option:router,10.10.10.1 # option 3 default gw dhcp-option=tag:dmz,6,10.10.10.1 # option 6 dns dhcp-option=tag:dmz,option:ntp-server,10.10.10.1 # dhcp : ipv6 enable-ra # Construct a valid IPv6 range from reading the address set on the interface. # The ::1 part refers to the ifid in dhcp6c.conf. Make sure you get this right or dnsmasq will get confused. dhcp-range=tag:lan,::1,constructor:lan,ra-names,12h dhcp-range=tag:dmz,::1,constructor:dmz,ra-names,12h # Static dhcp dhcp-hostsfile=/etc/dnsmasq.d/extra/lan_dmz.host On Tue, Dec 10, 2019 at 3:07 AM Siji Sunny wrote: > Will you please share dnsmasq.conf here. > > > On Tue, Dec 10, 2019 at 12:52 PM John Siu wrote: > >> I tried with "default" in its own line, that gives error too. >> >> On Tue, Dec 10, 2019 at 2:16 AM Siji Sunny < >> siji.su...@sugarboxnetworks.com> wrote: >> >>> >>> There is no "default" option. It actually give error if I add it by >>>> itself or "all-servers=default". >>>> >>> It not "all-servers=default", just "default" >>> >>> >>>> I went through the man page again and there is no other option >>>> affecting this behavior. I am starting to think this is a bug. >>>> >>>> On Tue, Dec 10, 2019 at 1:03 AM Siji Sunny < >>>> siji.su...@sugarboxnetworks.com> wrote: >>>> >>>>> >>>>> It should be off, base on manpage. And I don't know how to set a "off" >>>>>> to it. >>>>>> >>>>> >>>>> Adding "default" inside the config file, may help you. With reference >>>>> to man page, default option will send queries to just one server. >>>>> >>>>> >>>>>> On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny < >>>>>> siji.su...@sugarboxnetworks.com> wrote: >>>>>> >>>>>>> >>>>>>> Base on my understanding of the manpage, "all-servers" means dnsmasq >>>>>>>> will send query to all servers at once and use the 1st response. >>>>>>>> >>>>>>>> I am seeing all my queries, if not already in cache, are sent to >>>>>>>> all servers configured. But I don't have "all-servers" set. I want to >>>>>>>> turn >>>>>>>> off this behavior. >>>>>>>> >>>>>>> >>>>>>> Interesting, we used to enable it by adding the entry all-servers @ >>>>>>> dnsmasq.conf file. And by default its turned-off. >>>>>>> >>>>>>> >>>>>>>> >>>>>>>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny < >>>>>>>> siji.su...@sugarboxnetworks.com> wrote: >>>>>>>> >>>>>>>>> >>>>>>>>> OS: Ubuntu 18.04 with all updates >>>>>>>>>> dnsmasq version: 2.79-1 >>>>>>>>>> >>>>>>>>>> According to man page: >>>>>>>>>> >>>>>>>>>> --all-servers >>>>
Re: [Dnsmasq-discuss] "--all-servers" always on?
There is no "default" option. It actually give error if I add it by itself or "all-servers=default". I went through the man page again and there is no other option affecting this behavior. I am starting to think this is a bug. On Tue, Dec 10, 2019 at 1:03 AM Siji Sunny wrote: > > It should be off, base on manpage. And I don't know how to set a "off" to >> it. >> > > Adding "default" inside the config file, may help you. With reference to > man page, default option will send queries to just one server. > > >> On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny < >> siji.su...@sugarboxnetworks.com> wrote: >> >>> >>> Base on my understanding of the manpage, "all-servers" means dnsmasq >>>> will send query to all servers at once and use the 1st response. >>>> >>>> I am seeing all my queries, if not already in cache, are sent to all >>>> servers configured. But I don't have "all-servers" set. I want to turn off >>>> this behavior. >>>> >>> >>> Interesting, we used to enable it by adding the entry all-servers @ >>> dnsmasq.conf file. And by default its turned-off. >>> >>> >>>> >>>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny < >>>> siji.su...@sugarboxnetworks.com> wrote: >>>> >>>>> >>>>> OS: Ubuntu 18.04 with all updates >>>>>> dnsmasq version: 2.79-1 >>>>>> >>>>>> According to man page: >>>>>> >>>>>> --all-servers >>>>>> By default, when dnsmasq has more than one upstream server >>>>>> available, it will send queries to just one server. Setting this flag >>>>>> forces dnsmasq to send all queries to all available servers. The reply >>>>>> from the server which answers first will be returned to the original >>>>>> requester. >>>>>> >>>>>> I don't have that flag in command line or in the config file. However >>>>>> with "log-queries=extra" in config file, I am seeing following: >>>>>> >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] >>>>>> news.com from 10.10.10.101 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2001:1998:f00:2::1 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2001:1998:f00:1::1 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2606:4700:4700::1001 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2606:4700:4700:: >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2001:4860:4860::8844 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 2001:4860:4860:: >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 209.18.47.63 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 209.18.47.62 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 209.18.47.61 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 1.0.0.1 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 1.1.1.1 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 8.8.4.4 >>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>> forwarded news.com to 8.8.8.8 >>>>>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply >>>>>> news.com is 35.190.79.82 >>>>>> >>>>>> Is --all-servers behavior changed to default on? Is there a way to >>>>>> revert it? >>>>>> >>>>> >>>>> Dear John, >>>>> If I understood correctly, option all-servers will enable dnsmasq to >>>>> send the resolve query to the secondary dns server defined, if its failed >>>>> to resolve from the first one. >>>>> >>>>> >>>>>> >>>>>> Thank you! >>>>>> >>>>>> John Siu >>>>>> ___ >>>>>> Dnsmasq-discuss mailing list >>>>>> Dnsmasq-discuss@lists.thekelleys.org.uk >>>>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >>>>>> >>>>> >>>>> >>>>> -- >>>>> Siji >>>>> >>>>> <https://www.facebook.com/SugarBoxNetworks/> | >>>>> <https://www.instagram.com/sugarboxnetworks/> | >>>>> <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> >>>>> >>>>> >>> >>> -- >>> Siji >>> >>> <https://www.facebook.com/SugarBoxNetworks/> | >>> <https://www.instagram.com/sugarboxnetworks/> | >>> <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> >>> >>> > > -- > Siji > > <https://www.facebook.com/SugarBoxNetworks/> | > <https://www.instagram.com/sugarboxnetworks/> | > <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
I tried with "default" in its own line, that gives error too. On Tue, Dec 10, 2019 at 2:16 AM Siji Sunny wrote: > > There is no "default" option. It actually give error if I add it by itself >> or "all-servers=default". >> > It not "all-servers=default", just "default" > > >> I went through the man page again and there is no other option affecting >> this behavior. I am starting to think this is a bug. >> >> On Tue, Dec 10, 2019 at 1:03 AM Siji Sunny < >> siji.su...@sugarboxnetworks.com> wrote: >> >>> >>> It should be off, base on manpage. And I don't know how to set a "off" >>>> to it. >>>> >>> >>> Adding "default" inside the config file, may help you. With reference to >>> man page, default option will send queries to just one server. >>> >>> >>>> On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny < >>>> siji.su...@sugarboxnetworks.com> wrote: >>>> >>>>> >>>>> Base on my understanding of the manpage, "all-servers" means dnsmasq >>>>>> will send query to all servers at once and use the 1st response. >>>>>> >>>>>> I am seeing all my queries, if not already in cache, are sent to all >>>>>> servers configured. But I don't have "all-servers" set. I want to turn >>>>>> off >>>>>> this behavior. >>>>>> >>>>> >>>>> Interesting, we used to enable it by adding the entry all-servers @ >>>>> dnsmasq.conf file. And by default its turned-off. >>>>> >>>>> >>>>>> >>>>>> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny < >>>>>> siji.su...@sugarboxnetworks.com> wrote: >>>>>> >>>>>>> >>>>>>> OS: Ubuntu 18.04 with all updates >>>>>>>> dnsmasq version: 2.79-1 >>>>>>>> >>>>>>>> According to man page: >>>>>>>> >>>>>>>> --all-servers >>>>>>>> By default, when dnsmasq has more than one upstream server >>>>>>>> available, it will send queries to just one server. Setting this flag >>>>>>>> forces dnsmasq to send all queries to all available servers. The reply >>>>>>>> from the server which answers first will be returned to the >>>>>>>> original >>>>>>>> requester. >>>>>>>> >>>>>>>> I don't have that flag in command line or in the config file. >>>>>>>> However with "log-queries=extra" in config file, I am seeing following: >>>>>>>> >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> query[A] news.com from 10.10.10.101 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2001:1998:f00:2::1 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2001:1998:f00:1::1 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2606:4700:4700::1001 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2606:4700:4700:: >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2001:4860:4860::8844 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 2001:4860:4860:: >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 209.18.47.63 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 209.18.47.62 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 209.18.47.61 >>>>>>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 >>>>>>>> forwarded news.com to 1.0.0.1 >&g
Re: [Dnsmasq-discuss] "--all-servers" always on?
Base on my understanding of the manpage, "all-servers" means dnsmasq will send query to all servers at once and use the 1st response. I am seeing all my queries, if not already in cache, are sent to all servers configured. But I don't have "all-servers" set. I want to turn off this behavior. On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny wrote: > > OS: Ubuntu 18.04 with all updates >> dnsmasq version: 2.79-1 >> >> According to man page: >> >> --all-servers >> By default, when dnsmasq has more than one upstream server available, >> it will send queries to just one server. Setting this flag forces dnsmasq >> to send all queries to all available servers. The reply from the server >> which answers first will be returned to the original requester. >> >> I don't have that flag in command line or in the config file. However >> with "log-queries=extra" in config file, I am seeing following: >> >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] >> news.com from 10.10.10.101 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2001:1998:f00:2::1 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2001:1998:f00:1::1 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2606:4700:4700::1001 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2606:4700:4700:: >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2001:4860:4860::8844 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 2001:4860:4860:: >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 209.18.47.63 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 209.18.47.62 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 209.18.47.61 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 1.0.0.1 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 1.1.1.1 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 8.8.4.4 >> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >> news.com to 8.8.8.8 >> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply >> news.com is 35.190.79.82 >> >> Is --all-servers behavior changed to default on? Is there a way to revert >> it? >> > > Dear John, > If I understood correctly, option all-servers will enable dnsmasq to send > the resolve query to the secondary dns server defined, if its failed to > resolve from the first one. > > >> >> Thank you! >> >> John Siu >> ___ >> Dnsmasq-discuss mailing list >> Dnsmasq-discuss@lists.thekelleys.org.uk >> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >> > > > -- > Siji > > <https://www.facebook.com/SugarBoxNetworks/> | > <https://www.instagram.com/sugarboxnetworks/> | > <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] "--all-servers" always on?
It should be off, base on manpage. And I don't know how to set a "off" to it. On Tue, Dec 10, 2019 at 12:45 AM Siji Sunny wrote: > > Base on my understanding of the manpage, "all-servers" means dnsmasq will >> send query to all servers at once and use the 1st response. >> >> I am seeing all my queries, if not already in cache, are sent to all >> servers configured. But I don't have "all-servers" set. I want to turn off >> this behavior. >> > > Interesting, we used to enable it by adding the entry all-servers @ > dnsmasq.conf file. And by default its turned-off. > > >> >> On Tue, Dec 10, 2019 at 12:29 AM Siji Sunny < >> siji.su...@sugarboxnetworks.com> wrote: >> >>> >>> OS: Ubuntu 18.04 with all updates >>>> dnsmasq version: 2.79-1 >>>> >>>> According to man page: >>>> >>>> --all-servers >>>> By default, when dnsmasq has more than one upstream server >>>> available, it will send queries to just one server. Setting this flag >>>> forces dnsmasq to send all queries to all available servers. The reply >>>> from the server which answers first will be returned to the original >>>> requester. >>>> >>>> I don't have that flag in command line or in the config file. However >>>> with "log-queries=extra" in config file, I am seeing following: >>>> >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] >>>> news.com from 10.10.10.101 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2001:1998:f00:2::1 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2001:1998:f00:1::1 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2606:4700:4700::1001 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2606:4700:4700:: >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2001:4860:4860::8844 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 2001:4860:4860:: >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 209.18.47.63 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 209.18.47.62 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 209.18.47.61 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 1.0.0.1 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 1.1.1.1 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 8.8.4.4 >>>> Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded >>>> news.com to 8.8.8.8 >>>> Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply >>>> news.com is 35.190.79.82 >>>> >>>> Is --all-servers behavior changed to default on? Is there a way to >>>> revert it? >>>> >>> >>> Dear John, >>> If I understood correctly, option all-servers will enable dnsmasq to >>> send the resolve query to the secondary dns server defined, if its failed >>> to resolve from the first one. >>> >>> >>>> >>>> Thank you! >>>> >>>> John Siu >>>> ___ >>>> Dnsmasq-discuss mailing list >>>> Dnsmasq-discuss@lists.thekelleys.org.uk >>>> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >>>> >>> >>> >>> -- >>> Siji >>> >>> <https://www.facebook.com/SugarBoxNetworks/> | >>> <https://www.instagram.com/sugarboxnetworks/> | >>> <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> >>> >>> > > -- > Siji > > <https://www.facebook.com/SugarBoxNetworks/> | > <https://www.instagram.com/sugarboxnetworks/> | > <https://in.linkedin.com/company/margo-networks-pvt.-ltd.> > > ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] How to update ipv6 for own interface? (Updated info)
Ok, let me elaborate more. I have following setup: Linux router server: - OS: Ubuntu 18.04 - wide-dhcp-client on external(internet facing) nic - dnsmasq on lan interface(hostname: router) as dns, ipv4 + ipv6 dhcp - lan interface IPv6 configure by wide-dhcp-client, IPv4 static(172.16.168.1) via netplan - internal domain: int.johnsiu.com(configure in dnsmasq) Servers on LAN - couple mac, linux machines on lan network - all have static dhcp ipv4 from dnsmasq. - all have ipv4 entry in router /etc/hosts dnsmasq is able to do dns resolve for all linux machines for both ipv4 and ipv6. eg: ssh -4 test.int.johnsiu.com ssh -6 test.int.johnsiu.com However, this does not work for the router lan interface. I already did following: In /etc/hosts: 172.16.168.1 router In /etc/dnsmasq.d/lan.conf, I have following lines for router: dhcp-host=e2:1d:6b:2d:33:e7,172.16.168.1,router,infinite While "ssh -4 router.int.johnsiu.com" works, "ssh -6 router.int.johnsiu.com" doesn't. Is there a way to make it happen? ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] How to update ipv6 for own interface?
I am using dnsmasq dhcp for both ipv4 and ipv6 and it is able to auto generate the dns entries for both, at least for linux servers. Is there a way to make it do the same on selected interface(s) of the server dnsmasq is running? PS: I already have the server IPv4 entry in /etc/hosts ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] "--all-servers" always on?
OS: Ubuntu 18.04 with all updates dnsmasq version: 2.79-1 According to man page: --all-servers By default, when dnsmasq has more than one upstream server available, it will send queries to just one server. Setting this flag forces dnsmasq to send all queries to all available servers. The reply from the server which answers first will be returned to the original requester. I don't have that flag in command line or in the config file. However with "log-queries=extra" in config file, I am seeing following: Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 query[A] news.com from 10.10.10.101 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2001:1998:f00:2::1 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2001:1998:f00:1::1 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2606:4700:4700::1001 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2606:4700:4700:: Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2001:4860:4860::8844 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 2001:4860:4860:: Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 209.18.47.63 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 209.18.47.62 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 209.18.47.61 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 1.0.0.1 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 1.1.1.1 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 8.8.4.4 Dec 09 11:29:24 door dnsmasq[9403]: 3640 10.10.10.101/49351 forwarded news.com to 8.8.8.8 Dec 09 11:29:25 door dnsmasq[9403]: 3640 10.10.10.101/49351 reply news.com is 35.190.79.82 Is --all-servers behavior changed to default on? Is there a way to revert it? Thank you! John Siu ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss