Re: [Dnsmasq-discuss] Rather basic question - how do you tell dnsmasq what upstream DNS servers to use?

2020-10-03 Thread William Edwards
Use --server.

Met vriendelijke groeten,

William Edwards

- Original Message -
From: Chris Green (c...@isbd.net)
Date: 10/03/20 17:41
To: dnsmasq-disc...@thekelleys.org.uk
Subject: [Dnsmasq-discuss] Rather basic question - how do you tell dnsmasq what 
upstream DNS servers to use?

I'm feeling really silly, I've been using dnsmasq for several years
running it on a dedicated Raspberry Pi on the LAN to provide local DNS.

It's been working perfectly OK but just a very short while ago the
Google DNS server at 8.8.8.8 went down for a while and it's what I
(appear to) use as the upstream DNS.

How and where does one set dnsmasq's upstream DNS? Is it the following
line in /etc/dhcpcd.conf :-

   /etc/dhcpcd.conf:static domain_name_servers=192.168.1.4 8.8.8.8 
fd51:42f8:caae:d92e::1

The file /run/dnsmasq/resolv.conf appears to be derived directly from
the above:-

   chris@newdns$ more resolv.conf
   # Generated by resolvconf
   nameserver 192.168.1.4
   nameserver 8.8.4.4
   nameserver fd51:42f8:caae:d92e::1

The Raspberry Pi running dnsmasq is 192.168.1.4 on the LAN here, I'm
running dnsmasq version 2.76.

Would I be better with two unrelated DNS servers in the above
configuration, e.g. a Google one and one from my ISP?

--
Chris Green

___
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] Rather basic question - how do you tell dnsmasq what upstream DNS servers to use?

2020-10-03 Thread Geert Stappers
On Sat, Oct 03, 2020 at 07:19:10PM +0100, Chris Green wrote:
> On Sat, Oct 03, 2020 at 06:06:56PM +0200, Geert Stappers wrote:
> > On Sat, Oct 03, 2020 at 03:59:46PM +0100, Chris Green wrote:
> > > I'm feeling really silly, I've been using dnsmasq for several years
> > > running it on a dedicated Raspberry Pi on the LAN to provide local DNS.
> > > 
> > > It's been working perfectly OK but just a very short while ago the
> > > Google DNS server at 8.8.8.8 went down for a while and it's what I
> > > (appear to) use as the upstream DNS.
> > > 
> > > How and where does one set dnsmasq's upstream DNS? Is it the following
> > > line in /etc/dhcpcd.conf :-
> > > 
> > > /etc/dhcpcd.conf:static domain_name_servers=192.168.1.4 8.8.8.8 
> > > fd51:42f8:caae:d92e::1
> > > 
> > > The file /run/dnsmasq/resolv.conf appears to be derived directly from
> > > the above:-
> > > 
> > > chris@newdns$ more resolv.conf
> > > # Generated by resolvconf
> > > nameserver 192.168.1.4
> > > nameserver 8.8.4.4
> > > nameserver fd51:42f8:caae:d92e::1
> > > 
> > > The Raspberry Pi running dnsmasq is 192.168.1.4 on the LAN here, I'm
> > > running dnsmasq version 2.76.
> > 
> > Snippet from the dnsmasq manual page:
> > 
> >-S, --local,
> >
> > --server=[/[]/[domain/]][[#][@|[#]]
> >  Specify  IP  address  of  upstream  servers
> >  directly. Setting this flag does not suppress
> >  reading of /etc/resolv.conf, use --no-resolv to do that.
> >  
> Yes, but do I want it to ignore /etc/resolv.conf (well, actually,
> /var/run/dnsmasq/resolv.conf) ?  Do I want resolvconf to handle which
> DNS servers are used or am I better turning resolvconf off altogether?
 
When possible: Yes.
Or even better: Make turning of resolvconf possible and do it.


Underlying idea:
Dnsmasq is a server thing, resolvconf is a client thing.


Roughly the defintion of those two:
Server: configurated by administrator knowing what should be done.
Client: configurated by stuff on network, tends to break outside the default.


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


Re: [Dnsmasq-discuss] Rather basic question - how do you tell dnsmasq what upstream DNS servers to use?

2020-10-03 Thread Chris Green
On Sat, Oct 03, 2020 at 06:06:56PM +0200, Geert Stappers wrote:
> On Sat, Oct 03, 2020 at 03:59:46PM +0100, Chris Green wrote:
> > I'm feeling really silly, I've been using dnsmasq for several years
> > running it on a dedicated Raspberry Pi on the LAN to provide local DNS.
> > 
> > It's been working perfectly OK but just a very short while ago the
> > Google DNS server at 8.8.8.8 went down for a while and it's what I
> > (appear to) use as the upstream DNS.
> > 
> > How and where does one set dnsmasq's upstream DNS? Is it the following
> > line in /etc/dhcpcd.conf :-
> > 
> > /etc/dhcpcd.conf:static domain_name_servers=192.168.1.4 8.8.8.8 
> > fd51:42f8:caae:d92e::1
> > 
> > The file /run/dnsmasq/resolv.conf appears to be derived directly from
> > the above:-
> > 
> > chris@newdns$ more resolv.conf
> > # Generated by resolvconf
> > nameserver 192.168.1.4
> > nameserver 8.8.4.4
> > nameserver fd51:42f8:caae:d92e::1
> > 
> > The Raspberry Pi running dnsmasq is 192.168.1.4 on the LAN here, I'm
> > running dnsmasq version 2.76.
> 
> Snippet from the dnsmasq manual page:
> 
>-S, --local,
>
> --server=[/[]/[domain/]][[#][@|[#]]
>  Specify  IP  address  of  upstream  servers
>directly. Setting this flag does not suppress
>reading of /etc/resolv.conf, use --no-resolv to do that.
>  
Yes, but do I want it to ignore /etc/resolv.conf (well, actually,
/var/run/dnsmasq/resolv.conf) ?  Do I want resolvconf to handle which
DNS servers are used or am I better turning resolvconf off altogether?

-- 
Chris Green

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


[Dnsmasq-discuss] Overriding server-identifier in DHCP response

2020-10-03 Thread Ryan Govostes
When I run with log-dhcp enabled, I notice the following option in dnsmasq's 
DHCP response:

dnsmasq-dhcp: 756190107 sent size:  4 option: 54 server-identifier  172.17.0.2

This is the local IP address of the network interface that dnsmasq is using. 
But dnsmasq is running inside a virtual machine with NAT, and this IP address 
is not the network-facing address.

Is there a way to change the response? I've tried setting 
dhcp-option=option:server-identifier(or 54),... but dnsmasq doesn't accept it. 
I've also tried using 11 which I believe is some kind of server-identifier 
override. That also did not work.

I'm using dnsmasq to do DHCP proxying for PXE.

Thanks,
Ryan
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Rather basic question - how do you tell dnsmasq what upstream DNS servers to use?

2020-10-03 Thread Geert Stappers
On Sat, Oct 03, 2020 at 03:59:46PM +0100, Chris Green wrote:
> I'm feeling really silly, I've been using dnsmasq for several years
> running it on a dedicated Raspberry Pi on the LAN to provide local DNS.
> 
> It's been working perfectly OK but just a very short while ago the
> Google DNS server at 8.8.8.8 went down for a while and it's what I
> (appear to) use as the upstream DNS.
> 
> How and where does one set dnsmasq's upstream DNS? Is it the following
> line in /etc/dhcpcd.conf :-
> 
> /etc/dhcpcd.conf:static domain_name_servers=192.168.1.4 8.8.8.8 
> fd51:42f8:caae:d92e::1
> 
> The file /run/dnsmasq/resolv.conf appears to be derived directly from
> the above:-
> 
> chris@newdns$ more resolv.conf
> # Generated by resolvconf
> nameserver 192.168.1.4
> nameserver 8.8.4.4
> nameserver fd51:42f8:caae:d92e::1
> 
> The Raspberry Pi running dnsmasq is 192.168.1.4 on the LAN here, I'm
> running dnsmasq version 2.76.

Snippet from the dnsmasq manual page:

   -S, --local,
   
--server=[/[]/[domain/]][[#][@|[#]]
 Specify  IP  address  of  upstream  servers
 directly. Setting this flag does not suppress
 reading of /etc/resolv.conf, use --no-resolv to do that.
 

> Would I be better with two unrelated DNS servers in the above
> configuration, e.g. a Google one and one from my ISP?
> 
>


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] Rather basic question - how do you tell dnsmasq what upstream DNS servers to use?

2020-10-03 Thread Chris Green
I'm feeling really silly, I've been using dnsmasq for several years
running it on a dedicated Raspberry Pi on the LAN to provide local DNS.

It's been working perfectly OK but just a very short while ago the
Google DNS server at 8.8.8.8 went down for a while and it's what I
(appear to) use as the upstream DNS.

How and where does one set dnsmasq's upstream DNS? Is it the following
line in /etc/dhcpcd.conf :-

/etc/dhcpcd.conf:static domain_name_servers=192.168.1.4 8.8.8.8 
fd51:42f8:caae:d92e::1

The file /run/dnsmasq/resolv.conf appears to be derived directly from
the above:-

chris@newdns$ more resolv.conf
# Generated by resolvconf
nameserver 192.168.1.4
nameserver 8.8.4.4
nameserver fd51:42f8:caae:d92e::1

The Raspberry Pi running dnsmasq is 192.168.1.4 on the LAN here, I'm
running dnsmasq version 2.76.

Would I be better with two unrelated DNS servers in the above
configuration, e.g. a Google one and one from my ISP?

-- 
Chris Green

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss