Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Hi Weedy, Le Sun, 15 Jan 2017 17:23:18 -0500 Weedy a écrit: > >> http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html#lbAG > >> > >> An API of sorts was added some time last year > > > > I've gone through the NOTES section you are referring to, but I > > don't see

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Weedy
On 15 January 2017 at 17:15, Albert ARIBAUD wrote: > Hi Weedy, > > Le Sun, 15 Jan 2017 17:04:37 -0500 > Weedy a écrit: > >> On 15 January 2017 at 03:21, Albert ARIBAUD >> wrote: >> > Hi Chris, >> > >> > Le Sat, 14 Jan 2017

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Weedy
On 14 January 2017 at 07:40, Lars Noodén wrote: > How can I get an already running instance of Dnsmasq to tell which DNS > servers it is using to resolve new queries upstream? It's in the man page. Also I think we added special TXT or something queries last year. Sun Jan

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Weedy
On 15 January 2017 at 03:21, Albert ARIBAUD wrote: > Hi Chris, > > Le Sat, 14 Jan 2017 19:27:28 + > Chris Green a écrit: > > (re getting dnsmasq to say which upstream servers it uses) > >> Why is is so difficult to provide this information? At the very

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Hi Chris, Le Sun, 15 Jan 2017 20:31:28 + Chris Green a écrit: > On Sun, Jan 15, 2017 at 04:54:11PM +0100, Albert ARIBAUD wrote: > > Bonjour, > > > > Le Sun, 15 Jan 2017 12:36:47 + > > Chris Green a écrit: > > > > > On Sun, Jan 15, 2017 at 12:14:42PM

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Chris Green
On Sun, Jan 15, 2017 at 04:54:11PM +0100, Albert ARIBAUD wrote: > Bonjour, > > Le Sun, 15 Jan 2017 12:36:47 + > Chris Green a écrit: > > > On Sun, Jan 15, 2017 at 12:14:42PM +0100, Albert ARIBAUD wrote: > > > > > - read the configuration file(s) dnsmasq uses and find

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Bonjour, Le Sun, 15 Jan 2017 12:36:47 + Chris Green a écrit: > On Sun, Jan 15, 2017 at 12:14:42PM +0100, Albert ARIBAUD wrote: > > > > - read the configuration file(s) dnsmasq uses and find "server=" > > > > lines in it, and read the /etc/resolv* tree, if dnsmasq uses > > >

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Chris Green
On Sun, Jan 15, 2017 at 12:14:42PM +0100, Albert ARIBAUD wrote: > > > - read the configuration file(s) dnsmasq uses and find "server=" > > > lines in it, and read the /etc/resolv* tree, if dnsmasq uses them, > > > and that will give the list of servers dnmasq uses at any point in > > > time.

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Chris Green
On Sat, Jan 14, 2017 at 05:43:38PM -0500, Jim Alles wrote: >As far as the desktop OS, a user can override the DNS entries that DHCP >provides. Not easily on most modern systems. This is really where we came in! All my xubuntu Linux boxes have the following in /etc/resolv.conf :- #

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Le Sun, 15 Jan 2017 09:58:38 +0100 Albert ARIBAUD a écrit: > Speaking of which, my first hunch re your problem is that it's not a > dnsmasq problem, but a problem with the client's networking > configuration. I suspect it connects through some VPN and gets an > additional

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Hi Lars, Le Sun, 15 Jan 2017 10:21:01 +0200 Lars Noodén a écrit: > On 01/15/2017 09:55 AM, Albert ARIBAUD wrote: > > Hi Lars, > > > > Le Sat, 14 Jan 2017 20:18:13 +0200 > > Lars Noodén a écrit: > >... > >> Because it's not my system and it is

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Lars Noodén
On 01/15/2017 09:55 AM, Albert ARIBAUD wrote: > Hi Lars, > > Le Sat, 14 Jan 2017 20:18:13 +0200 > Lars Noodén a écrit: >... >> Because it's not my system and it is remote, I >> have to go step by step, slowly. > > ... Do you mean that you have good control of the remote

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-15 Thread Albert ARIBAUD
Hi Chris, Le Sat, 14 Jan 2017 19:27:28 + Chris Green a écrit: (re getting dnsmasq to say which upstream servers it uses) > Why is is so difficult to provide this information? At the very least > it would provide a confidence check that all is working as intended. > It might

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Jim Alles
Lars, On Sat, Jan 14, 2017 at 7:40 AM, Lars Noodén wrote: > How can I get an already running instance of Dnsmasq to tell which DNS > servers it is using to resolve new queries upstream? > > ​I am not sure that is the most reliable way to get the information you are

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Chris Green
On Sat, Jan 14, 2017 at 07:29:47PM +0100, Albert ARIBAUD wrote: > Hi again Chris, > > Le Sat, 14 Jan 2017 16:06:39 + > Chris Green a écrit: > > > On Sat, Jan 14, 2017 at 03:40:52PM +0100, Albert ARIBAUD wrote: > > > > I've not spotted anything in the manual page that stands

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Albert ARIBAUD
Hi again Chris, Le Sat, 14 Jan 2017 16:06:39 + Chris Green a écrit: > On Sat, Jan 14, 2017 at 03:40:52PM +0100, Albert ARIBAUD wrote: > > > I've not spotted anything in the manual page that stands out for > > > that purpose. > > > > There is not much point for it, is

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Lars Noodén
On 01/14/2017 06:06 PM, Chris Green wrote: > On Sat, Jan 14, 2017 at 03:40:52PM +0100, Albert ARIBAUD wrote: [snip] >> Or maybe I am missing something. What is your use case? >> > Well for one it's useful to be able to check whether dnsmasq is using > a sensible DNS server. [snip] That's what

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Chris Green
On Sat, Jan 14, 2017 at 03:40:52PM +0100, Albert ARIBAUD wrote: > > I've not spotted anything in the manual page that stands out for that > > purpose. > > There is not much point for it, is there? I mean, if dnsmasq has > upstream servers (possibly per request domain) and acts as a local >

Re: [Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Albert ARIBAUD
Hi Lars, Le Sat, 14 Jan 2017 14:40:14 +0200 Lars Noodén a écrit: > How can I get an already running instance of Dnsmasq to tell which DNS > servers it is using to resolve new queries upstream? > > Specifically how can this be done in distros like Ubuntu and Linux > Mint,

[Dnsmasq-discuss] Finding actual DNS server used

2017-01-14 Thread Lars Noodén
How can I get an already running instance of Dnsmasq to tell which DNS servers it is using to resolve new queries upstream? Specifically how can this be done in distros like Ubuntu and Linux Mint, which have setups like this:: # cat /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc