Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-14 Thread Guillaume B.
Hi John,

Nevermind, I got it to work. Simply installed dnsmasq did a reboot, had to
take dns=dnsmasq out of NetworkManager.conf, uncommented the line prepend
domain-name-servers 127.0.0.1 in /etc/dhcp/dhclient.conf, and it worked.
The only thing that doesn't work is DNSSEC validation, maybe my upstream
servers don't support it.

Le lun. 14 oct. 2019 à 11:11, john doe  a écrit :
Last call, I won't bother answering you if you don't post through the list.

On 10/14/2019 10:04 AM, Guillaume B. wrote:
> Hi John,
>
> Yes I have looked at syslog when the connection is not working, that's how
> I knew I received a DHCPNAK instead of a DHCPACK. Also it seems like IPV6
> addresses are called for some reason I don't understand. In that case that
>  all IPV6 on my computer.
>

This does not make sense, please share those messages with us.
I would remove the listen directive and use 'bind-interfaces' instead .
Note that the lo interface refers to IPv4 and IPv6, so in your case I
would try to use exclusively the following directives

> In my config I set interface=lo, listen_address=127.0.0.1 and
> no-dhcp-interface=lo to make extra sure, but even then the problem
> persists, I have tried both with a configed file and a virgin file, both
> did not work.
>
> I would I go about disabling the internal DHCP server on Debian 10.1 ?
>

The above directive does take care of that.

> By sorting things out without NM do you mean taking out the dns=dnsmasq
out
> of NetworkManager.conf and only uncomment the prepend domain-name-servers
> 127.0.0.1 option in /etc/dhcp/dhclient.conf or getting rid of
> NetworkManager and trying to connect without it ?
>

What I'm implying here is to remove/disable Networkmanager altogether.

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-14 Thread john doe
Last call, I won't bother answering you if you don't post through the list.

On 10/14/2019 10:04 AM, Guillaume B. wrote:
> Hi John,
>
> Yes I have looked at syslog when the connection is not working, that's how
> I knew I received a DHCPNAK instead of a DHCPACK. Also it seems like IPV6
> addresses are called for some reason I don't understand. In that case that
>  all IPV6 on my computer.
>

This does not make sense, please share those messages with us.
I would remove the listen directive and use 'bind-interfaces' instead .
Note that the lo interface refers to IPv4 and IPv6, so in your case I
would try to use exclusively the following directives

> In my config I set interface=lo, listen_address=127.0.0.1 and
> no-dhcp-interface=lo to make extra sure, but even then the problem
> persists, I have tried both with a configed file and a virgin file, both
> did not work.
>
> I would I go about disabling the internal DHCP server on Debian 10.1 ?
>

The above directive does take care of that.

> By sorting things out without NM do you mean taking out the dns=dnsmasq out
> of NetworkManager.conf and only uncomment the prepend domain-name-servers
> 127.0.0.1 option in /etc/dhcp/dhclient.conf or getting rid of
> NetworkManager and trying to connect without it ?
>

What I'm implying here is to remove/disable Networkmanager altogether.

--
John Doe

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-14 Thread john doe
On 10/14/2019 7:33 AM, john doe wrote:
> Please post through the list.
>
> On 10/13/2019 10:17 PM, Guillaume B. wrote:
>> Hi John,
>>
>> Sorry for the late reply I got caught up with multiple reinstals of Debian
>> images.
>>
>> I need dnsmasq for its min-cache-ttl option and other options like
>> clear-on-reload, stop-dns-rebind and dns-loop-detect, that can't be
>> configured with solely dnsmasq-base.
>>
>> I tried installing resolvconf and kept it virgin but it didn't change the
>> fact that with dnsmasq installed I still couldn't get a DHCP lease from my
>> router. Maybe you have some configuration options for resolvconf to suggest
>> me for it to work.
>>
>> Same as number one, I want to use dnsmasq for its extra options.
>>
>
> I don't see how I can help you further other then:
> - Have you looked in the log when it is not working
> - The internet (the one connected to your upstream dhcp server)
> interface is 'excluded' ('except-interface=')
>
> If my understanding is correct you only need the DNS capability of
> dnsmasq, consider disabling the internal DHCP server.
>
>
> If I may, I would sort things out without NM then I would bring it back
> into the mix! :)
>
> P.S.
>
> Posting on 'debian-user' maling list might be useful because it does
> look to me like it is a Dnsmasq issue.
>

Should be 'does not'.

--
John Doe

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster for O.P.

2019-10-14 Thread Geert Stappers
On Mon, Oct 14, 2019 at 07:33:10AM +0200, john doe wrote:
> On 10/13/2019 10:17 PM, Guillaume B. wrote:
> > I need dnsmasq for its min-cache-ttl option and other options like
> > clear-on-reload, stop-dns-rebind and dns-loop-detect, that can't be
> > configured with solely dnsmasq-base.
> >
> > I tried installing resolvconf and kept it virgin but it didn't change the
> > fact that with dnsmasq installed I still couldn't get a DHCP lease from my
> > router. Maybe you have some configuration options for resolvconf to suggest
> > me for it to work.
> >
> 
> I don't see how I can help you further other then:
> - Have you looked in the log when it is not working
> - The internet (the one connected to your upstream dhcp server)
> interface is 'excluded' ('except-interface=')
> 
> If my understanding is correct you only need the DNS capability of
> dnsmasq, consider disabling the internal DHCP server.
> 
> 
> If I may, I would sort things out without NM then I would bring it back
> into the mix! :)

Yeah NM, Network Manager, is great for computers that travel phyiscally
to other WIFI networks. People usualy call those computers "laptops".

Were I don't understand the use case of Dnsmasq for the Original Poster,
I do think that the expectations of O.P. are based on ignorance.
The advice of John Doe on learning to known Dnsmasq without NM is wise.
 

> P.S.
> 
> Posting on 'debian-user' maling list might be useful because it does
> look to me like it is a Dnsmasq issue.
} look to me like it is not a Dnsmasq issue.
more an "user issue" ...


Groeten
Geert Stappers
-- 
Leven en laten leven

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-13 Thread john doe
Please post through the list.

On 10/13/2019 10:17 PM, Guillaume B. wrote:
> Hi John,
>
> Sorry for the late reply I got caught up with multiple reinstals of Debian
> images.
>
> I need dnsmasq for its min-cache-ttl option and other options like
> clear-on-reload, stop-dns-rebind and dns-loop-detect, that can't be
> configured with solely dnsmasq-base.
>
> I tried installing resolvconf and kept it virgin but it didn't change the
> fact that with dnsmasq installed I still couldn't get a DHCP lease from my
> router. Maybe you have some configuration options for resolvconf to suggest
> me for it to work.
>
> Same as number one, I want to use dnsmasq for its extra options.
>

I don't see how I can help you further other then:
- Have you looked in the log when it is not working
- The internet (the one connected to your upstream dhcp server)
interface is 'excluded' ('except-interface=')

If my understanding is correct you only need the DNS capability of
dnsmasq, consider disabling the internal DHCP server.


If I may, I would sort things out without NM then I would bring it back
into the mix! :)

P.S.

Posting on 'debian-user' maling list might be useful because it does
look to me like it is a Dnsmasq issue.

--
John Doe

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-12 Thread john doe
On 10/11/2019 5:09 PM, Guillaume B. wrote:
> Hello,
>
> First time subscriber here.
>
> I have issues with dnsmasq not working in Debian 10.1 buster. dnsmasq-base
> works fine with "dns=dnsmasq" set in NetworkManager.conf (that is I can
> query the upstream server and cache the dns addresses locally) but as soon
> as I install dnsmasq, the network won't work. It seems like I cannot get a
> DHCP lease from my router and I only receive a DHCPNAK reply instead of the
> normal DHCPACK which allows me to connect to the internet.
>

Looks like your are mixing the dhcp/dns server 'dnsmasq' with 'dhcp
client', the dhcp client will get a lease from the upstream server and
dnsmasq will take care of ip addressing and dns for the hosts that are
behind dnsmasq server.

On Debian the dhcp client is per default 'dhclient'.

> I have tried different options set in dnsmasq.conf but even a virgin list
> won't work, the network connection simply does not happen and
> NetworkManager won't even register any addresses in /etc/resolv.conf, it
> just leaves it blank (even when I manually set the local dns to 127.0.0.1
> and the upstream to my router's address it won't work).
>

- Why do you need dnsmasq and not simply 'dnsmasq-base'?
- Did you install the 'resolvconf' package (NM/resolvconf is handling
'/etc/resolv.conf')?
- Why do you want to use dnsmasq on a host where networkmanager is
installed?

--
John Doe

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


Re: [Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster for me

2019-10-11 Thread Geert Stappers
On Fri, Oct 11, 2019 at 03:09:59PM +, Guillaume B. wrote:
> Hello,
> 
> First time subscriber here.

Welcome


> I have issues with dnsmasq not working in Debian 10.1 buster. dnsmasq-base
> works fine with "dns=dnsmasq" set in NetworkManager.conf (that is I can
> query the upstream server and cache the dns addresses locally) but as soon
> as I install dnsmasq, the network won't work. It seems like I cannot get a
> DHCP lease from my router and I only receive a DHCPNAK reply instead of the
> normal DHCPACK which allows me to connect to the internet.
> 
> I have tried different options set in dnsmasq.conf but even a virgin list
> won't work, the network connection simply does not happen and
> NetworkManager won't even register any addresses in /etc/resolv.conf, it
> just leaves it blank (even when I manually set the local dns to 127.0.0.1
> and the upstream to my router's address it won't work).
> 
> I was wondering if anybody could help make dnsmasq work for me, I depended
> on it in Debian Stretch but now it just won't work, even if I downgrade to
> stretch dnsmasq on Debian.
 
I don't understand the problem. A better better description is needed.

* Describe the LAN.
* Describe network wise the computer that should run Dnsmasq.
* Describe what is expected from Dnsmasq.


> Thank your for any help you might provide.

The request for help has been seen, what kind of help is needed not yet.


Groeten
Geert Stappers
-- 
Leven en laten leven

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


[Dnsmasq-discuss] dnsmasq won't run on Debian 10.1 buster

2019-10-11 Thread Guillaume B.
Hello,

First time subscriber here.

I have issues with dnsmasq not working in Debian 10.1 buster. dnsmasq-base
works fine with "dns=dnsmasq" set in NetworkManager.conf (that is I can
query the upstream server and cache the dns addresses locally) but as soon
as I install dnsmasq, the network won't work. It seems like I cannot get a
DHCP lease from my router and I only receive a DHCPNAK reply instead of the
normal DHCPACK which allows me to connect to the internet.

I have tried different options set in dnsmasq.conf but even a virgin list
won't work, the network connection simply does not happen and
NetworkManager won't even register any addresses in /etc/resolv.conf, it
just leaves it blank (even when I manually set the local dns to 127.0.0.1
and the upstream to my router's address it won't work).

I was wondering if anybody could help make dnsmasq work for me, I depended
on it in Debian Stretch but now it just won't work, even if I downgrade to
stretch dnsmasq on Debian.

Thank your for any help you might provide.

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