Re: [Dnsmasq-discuss] dnsmasq.service: Control process exited, code=exited, status=127/n/a

2023-07-10 Thread Andrew Miskell via Dnsmasq-discuss


> On Jul 10, 2023, at 3:34 PM, dnsmasqyq@neverbox.com wrote:
> 
> It's my own problem.
> 
> On Mon, Jul 10, 2023 at 3:57 PM Tong Sun wrote:
> 
>> Sure, but I'd like to rule out that it's because of my own *unusual* use
>> case, that my network device is not eth0 but br0 instead.
>> 
>> And it turns out to be exactly the root cause --
>> 
>> reverting from br0 to eth0 & reboot, then do the following
>> 
>> sudo apt install -y --reinstall dnsmasq-base dnsmasq
>> 
>> and it finished without any issue, while previously it was just impossible.
>> 
>> Ref, switching my network device from eth0 to br0 is done via following
>> https://linuxconfig.org/how-to-use-bridged-networking-with-libvirt-and-kvm
> 
> Hmm... redid my steps in a clean VM and it works just fine. So,
> 
>> I'm now more inclined to think it is dnsmasq's problem, not Debian
>> packaging's problem. Comments?
> 
> It's my own problem.
> 
> Sorry about the noise.
> 
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Were you using a migrated configuration file or a fresh configuration file on 
the original VM? You might have had a configuration line which was telling 
dnsmasq to bind to a specific interface and that interface wasn’t available on 
the system.

I think by default, the configuration file in most packages don’t specify an 
interface to bind to, so dnsmasq will bind to all available interfaces.
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] dnsmasq reverse auth zone transfers

2023-03-31 Thread Andrew Miskell via Dnsmasq-discuss
You technically don’t need a zone transfer, you can use a conditional forwarder 
on the Active Directory DNS. Setup a conditional forwarder for casa.lan and 
point it to the IP of your router where dnsmasq is running. After that, when AD 
DNS receives a query for anything in the casa.lan domain, it’ll forward the 
query to dnsmasq and it’ll respond with the appropriate IP address.

More details: 
https://www.interfacett.com/blogs/windows-server-how-to-configure-a-conditional-forwarder-in-dns/

> On Mar 31, 2023, at 10:25 AM, Juanca  wrote:
> 
> 
> 
> El vie, 31 mar 2023 a las 2:45, Andrew Miskell ( >) escribió:
>> What exactly are you trying to accomplish? Your windows clients to be able 
>> to resolve the clients on your router’s domain (casa.lan) via DNS?
>> Yes, this is what I need, but I'm unable to list the clients from the 
>> dominio.lab windows server machine.
>> 
>> 
>> 
>> Sent from my iPhone
>> 
>>> On Mar 30, 2023, at 18:45, Juanca >> > wrote:
>>> 
>>> 
>>> I appreciate these tips
>>> 
>>> Do you think that I should write a new post?
>>> 
>>> 
>>> Thanks!!
>>> 
>>> 
>>> Regards
>>> 
>>> El vie, 31 mar 2023 a las 1:11, Geert Stappers (>> >) escribió:
 On Wed, Mar 29, 2023 at 06:25:25PM +0200, Juanca wrote:
 > Hi,
 > 
 > I'm using dnsmasq in muy tomato router (mips arch). This is the main dns
 > sever for my home (casa.lan). Also, I've a windows server lab, with a
 > domain and it's own dns server as well (dominio.lab). I need the windows
 > server to be able to get all the dns clients from main dns server in my
 > router, so I'm trying to make a transfer zone from router to windows dns
 > server. I'm facing some issues, and I've just read that dnsmasq does not
 > provide reverse zone transfer. I've also just found a fork that says toi 
 > be
 > able to make it possible (basezen/dnsmasq: Fork of Simon Kelley's dnsmasq
 > to add IPv6 zone transfer. Proposed patch (github.com 
 > )
 > ), but it seems quite complicated for
 > me to compile and make it work in my router.
 > 
 > As you can see, I'm not an expert in dns stuff, so it's being difficult 
 > to
 > me to understand all options, and the way I should be configuring it.
 > 
 > What I really need is to make my windows server be able to "get and see"
 > all my dnsmasq router's dns clients (for example, in case my router shuts
 > down, and my windows server's clients should be able to resolve router's
 > dns clients). Also, I'd need the very same, but viceversa, so in case of 
 > my
 > windows server fails, my dnsmasq router's dns server is able to resolve 
 > my
 > windows server's dns clients.
 > 
 > My question is.. 
 > is it able for me to get it working without needing any patch?
 
 > I'd love to have some tips from you guys.
 
 Tips:
  - Do not ask others what your limits should be ( "able for me" )
  - Drop restrictions   ( "without needing any ..." )
  - Use open questions  (avoid "get it working [yes/no]" questions)
 
 
 > Please, let me know if I should give you any other information
 
 Tell your audience what they might be missing.
 Explain them the cool thing that you want, aim for common interrest.
 
 
 > Thanks a lot in advance
 
 No, not accepted.
 Express "thanks" when you get something usefull.
 
 
 > Regards
 > Juanca
 
 
 
 Groeten
 Geert Stappers
 -- 
 Silence is hard to parse
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk 
 
 https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk 
>>> 
>>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

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


Re: [Dnsmasq-discuss] dnsmasq reverse auth zone transfers

2023-03-30 Thread Andrew Miskell via Dnsmasq-discuss
What exactly are you trying to accomplish? Your windows clients to be able to resolve the clients on your router’s domain (casa.lan) via DNS?Sent from my iPhoneOn Mar 30, 2023, at 18:45, Juanca  wrote:I appreciate these tipsDo you think that I should write a new post?Thanks!!RegardsEl vie, 31 mar 2023 a las 1:11, Geert Stappers () escribió:On Wed, Mar 29, 2023 at 06:25:25PM +0200, Juanca wrote:
> Hi,
> 
> I'm using dnsmasq in muy tomato router (mips arch). This is the main dns
> sever for my home (casa.lan). Also, I've a windows server lab, with a
> domain and it's own dns server as well (dominio.lab). I need the windows
> server to be able to get all the dns clients from main dns server in my
> router, so I'm trying to make a transfer zone from router to windows dns
> server. I'm facing some issues, and I've just read that dnsmasq does not
> provide reverse zone transfer. I've also just found a fork that says toi be
> able to make it possible (basezen/dnsmasq: Fork of Simon Kelley's dnsmasq
> to add IPv6 zone transfer. Proposed patch (github.com)
> ), but it seems quite complicated for
> me to compile and make it work in my router.
> 
> As you can see, I'm not an expert in dns stuff, so it's being difficult to
> me to understand all options, and the way I should be configuring it.
> 
> What I really need is to make my windows server be able to "get and see"
> all my dnsmasq router's dns clients (for example, in case my router shuts
> down, and my windows server's clients should be able to resolve router's
> dns clients). Also, I'd need the very same, but viceversa, so in case of my
> windows server fails, my dnsmasq router's dns server is able to resolve my
> windows server's dns clients.
> 
> My question is.. 
> is it able for me to get it working without needing any patch?

> I'd love to have some tips from you guys.

Tips:
 - Do not ask others what your limits should be ( "able for me" )
 - Drop restrictions   ( "without needing any ..." )
 - Use open questions  (avoid "get it working [yes/no]" questions)


> Please, let me know if I should give you any other information

Tell your audience what they might be missing.
Explain them the cool thing that you want, aim for common interrest.


> Thanks a lot in advance

No, not accepted.
Express "thanks" when you get something usefull.


> Regards
> Juanca



Groeten
Geert Stappers
-- 
Silence is hard to parse

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

___Dnsmasq-discuss mailing listDnsmasq-discuss@lists.thekelleys.org.ukhttps://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] Feature request = block-conf

2022-02-06 Thread Andrew Miskell via Dnsmasq-discuss


> On Feb 6, 2022, at 15:55, Ercolino de Spiacico  
> wrote:
> 
> From what version is this --conf-script made available?
> 
> root@router:/tmp# dnsmasq -v
> Dnsmasq version 2.86  Copyright (c) 2000-2021 Simon Kelley
> Compile time options: IPv6 GNU-getopt no-RTC no-DBus no-UBus no-i18n no-IDN 
> DHCP DHCPv6 no-Lua TFTP no-conntrack ipset Tomato-helper auth cryptohash 
> DNSSEC no-ID loop-detect inotify no-dumpfile
> 
> This software comes with ABSOLUTELY NO WARRANTY.
> Dnsmasq is free software, and you are welcome to redistribute it
> under the terms of the GNU General Public License, version 2 or 3.
> root@router:/tmp# dnsmasq --help | grep conf-script
> root@router:/tmp#
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

I don’t think it is actually available. I believe they were discussing the idea 
of such a feature.  
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] filter-AAAA is breaking dnsmasq

2021-10-10 Thread Andrew Miskell via Dnsmasq-discuss
Did you verify that systemctl isn’t trying to start the old dnsmasq? What’s the 
systemd unit file for dnsmasq look like?

Sent from my iPhone

> On Oct 10, 2021, at 21:51, E  wrote:
> 
> Thanks for your reply!
> 
>> dnsmasq --help | grep -i filter to see if the option exists.
> 
> # dnsmasq --help | grep -i filter
> -f, --filterwin2k  Don't forward
> spurious DNS requests from Windows hosts.
>--filter-A Don't include
> IPv4 addresses in DNS answers.
>--filter-  Don't include
> IPv6 addresses in DNS answers.
>--stop-dns-rebind  Stop DNS
> rebinding. Filter private IP ranges when resolving.
>--connmark-allowlist-enable[=]   Enable filtering
> of DNS queries with connection-track marks
> 
> It does exist (and it should be - I pulled git & make & make install it)
> 
> # which dnsmasq
> /usr/local/sbin/dnsmasq
> 
> # dnsmasq --version
> Dnsmasq version 2.87test4-1-g37a70d3
> 
> # dnsmasq
> dnsmasq: unsupported option at line 12 of /etc/dnsmasq.conf
> 
> # service dnsmasq restart
> Job for dnsmasq.service failed because the control process exited with
> error code
> 
> # systemctl status dnsmasq.service
> ]: bad option at line 24 of /etc/dnsmasq.conf
> 
> 
> :'(
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

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


Re: [Dnsmasq-discuss] Is it possible to merge host names on two Dnsmasq instances?

2021-09-28 Thread Andrew Miskell via Dnsmasq-discuss


> On Sep 28, 2021, at 9:16 PM, Glen Huang  wrote:
> 
> Hi,
> 
> I have a router and a dump AP that are connected with a wire. The router has 
> two interfaces, one is for LAN (192.168.1.1/24) and the other for WAN. The AP 
> also has two interfaces, one is for LAN (192.168.1.2/24), the other for guest 
> WiFi (192.168.2.1/24). (It actually also has a LAN WiFi, but it shouldn’t be 
> relevant in this case.)
> 
> Dnsmasq runs both on the router and the AP. On the router, it provides DHCP 
> and DNS, combined, for LAN. On the AP, only DHCP is enabled for the guest 
> WiFi interface to provide 192.168.2.0/24 for clients.
> 
> My question is that with this setup, LAN clients won’t be able to resolve 
> host names on the guest WiFi, since the router Dnsmasq is not cognizant of 
> them, and it seems impossible for the router to take over guest WiFi’s DHCP, 
> since it’s based on AP’s interfaces, so is there a way to automatically 
> “merge" the host names on both Dnsmasq instances? If not, what would be an 
> elegant setup to make it work?
> 
> Regards,
> Glen
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Assuming that the guest WiFi names are using a different domain name, e.g. 
guests.home.net  then the main LAN, e.g. home.net 
. 

On the router DNSMasq create an entry that tells it to send requests for 
anything in guest.home.net  to the DNSMasq instance on 
the AP. You can also do the reverse AP DNSMasq instance to allow guests to 
lookup names in the home.net  domain.___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] NXDOMAIN is sent instead of NODATA when querying for non-existent AAAA records

2021-08-05 Thread Andrew Miskell via Dnsmasq-discuss

> On Aug 5, 2021, at 2:45 PM, Simon Kelley  wrote:
> 
> 
> 
> On 05/08/2021 19:24, Wojtek Swiatek wrote:
>> 
>> 
>> Le jeu. 5 août 2021 à 19:41, Simon Kelley > > a écrit :
>> 
>>OK. The problem is here: using local addresses only for domain
>>swtk.info 
>> 
>>That's an easy spot because I just fixed this particular combination.
>> 
>>I guess you have something like
>> 
>>local=/swtk.info/ 
>> 
>>and dnsmasq is using this to return NXDOMAIN without checking that it
>>has more specific data for the query in other  types.
>> 
>>As a workaround, removing that configuration should make things work, at
>>the expense of extra trips to the upstream servers.
>> 
>> 
>> Thank you. The problem is that swtk.info  is also
>> declared on .info so (if I understand local= correctly), it would
>> attempt to resolve mqtt.swtk.info  on Internet.
>> Which would fail.
> 
> That's fine. mqtt.swtk.info resolves to NXDOMAIN (at least it does here)
> and when dnsmasq gets that answer back, it will change it into NODATA.
> because it has an A record for mqtt.swtk.info derived from a DHCP
> record. That should be functional in 2.78.
>> 
>> The local=/swtk.info/  and
>> address=/swtk.info/192.168.10.2  combo
>> fixes this.
>>  
>> 
>> 
>>This should already be fixed in the development code: if it's possible
>>for you to run
>>https://thekelleys.org.uk/dnsmasq/test-releases/dnsmasq-2.86test6.tar.gz
>>
>>that should fix things, and doing so would be a useful test for me.
>> 
>> 
>> Unfortunately, since the dnsmasq binary I use is part of a router, I
>> have no way to use another version. Which, as I realize now, will be a
>> major problem anyway since the issue is not a matter of configuration.
>>  
> 
> This is a major defect in the state of the world. Routers should be
> updated as often and as easily as desktops and laptops, but frequently
> aren't and can't be.
> 
> Cheers,
> 
> Simon.
> 
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

UI updates the EdgeRouter firmware quite often, but on the EdgeMAX line of 
devices they tend to be more conservative about updating the underlying 
components (due to being billed as carrier grade devices). e.g. they released 
v2.0.9-hotfix.2 in June and back ported the fixes for DNSMasq for CVE-2021-3448.

UI is much more aggressive on the UniFi (consumer) side of the house, they’ve 
upgraded dnsmasq in their firmware much more often and usually to the latest 
version available (latest firmware on the UDM platform run 2.85).

Just depends on their update strategy for the underlying components. Same with 
operating systems like RHEL, they tend to favor back porting security fixes to 
a specific version instead of upgrading to a whole new release of the component.___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] OT client q: both static and dhcp

2021-06-28 Thread Andrew Miskell via Dnsmasq-discuss


> On Jun 28, 2021, at 7:42 AM, Carl Karsten  wrote:
> 
> 
> 
> On Sun, Jun 27, 2021 at 12:17 PM Andrew Miskell  > wrote:
> 
> 
>> On Jun 27, 2021, at 12:02, Carl Karsten > > wrote:
>> 
>> 
>> 
>> 
>> On Sun, Jun 27, 2021 at 10:49 AM Andrew Miskell > > wrote:
>> 
>> 
>>> On Jun 27, 2021, at 09:30, Carl Karsten >> > wrote:
>>> 
>>> 
>>> 
>>> 
>>> On Sun, Jun 27, 2021 at 7:56 AM john doe >> > wrote:
>>> On 6/27/2021 9:17 AM, Carl Karsten wrote:
>>> > On Sun, Jun 27, 2021 at 2:10 AM john doe >> > > wrote:
>>> >
>>> >> On 6/27/2021 7:03 AM, Dominik wrote:
>>> >>> Hey Carl,
>>> >>>
>>> >>> On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:
>>>  I'm looking for advice on haveing some boxes to have both dynamic and
>>>  static IPs.
>>> >>>
>>> >>> Why use a static IP at all? We have often enough seen people use static
>>> >>> addresses for the wrong reasons.
>>> >>>
>>> >>
>>> >> As I understand it, the OP wants to use DHCP static leases.
>>> >>
>>> >
>>> > No.
>>> >
>>> > I need this for when move put a box on someone else's network.
>>> > So I don't have any control over the dhcp server.
>>> >
>>> 
>>> Then set an fix IP on dhcp client (dhclient ...) and remove it when you
>>> don't need it.
>>> 
>>> Basically, you set the dhcp client to have a static address or let the
>>> client get a lease from a dhcp server.
>>> 
>>> I'm trying to reduce the amount of work I need to do when I show up and 
>>> discover there is no dhcp server.
>>> 
>>> Example locations: university, coffee shop, convention center, office 
>>> meeting room.   In all cases I am a guest for a few days.  
>>> 
>>>  
>>> 
>>> Why do you need dnsmasq into the mix?
>>> 
>>> I don't - I am just working on client config.
>>> 
>>>  
>>> 
>>> --
>>> John Doe
>>> 
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk 
>>> 
>>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss 
>>> 
>>> 
>>> 
>>> -- 
>>> Carl K
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk 
>>> 
>>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss 
>>> 
>> 
>> A couple things. It might help to state what the client device is running 
>> (Windows, Linux and what distribution/version). 
>> 
>> 
>> Opsis PC: Ubuntu 20.04.2 LTS 
>> Voctomix:  Debian GNU/Linux 11 
>> 
>>  
>> dnsmasq is a DNS/DHCP server not a client, so I’m unsure what the role of 
>> dnsmasq would be here. 
>> 
>> 
>> This is a bit OT (Off Topic) as in it is not a dnsmasq server question.  
>> I am asking about client config.
>> to a group qualified to know about such things. 
>> if there is a better place to ask such questions, let me know. 
>> 
>>  
>> Most of the places you listed would already have a DHCP server available to 
>> hand out IP addresses (and associated network information) on its own. 
>> Otherwise, there’s no easy way to connect to the internet without knowing 
>> all that particular networks details (e.g. gateway address, subnet mask, 
>> etc, etc) which defeats the point of providing network access in a number of 
>> the locations you listed. 
>> 
>> If I could always plug a wire into a jack and get to a dhcp server, I would 
>> not have a problem.
>> I do not want to route 400mbs video traffic though the coffee shop wifi.  
>> Which isn't a problem as my devices don't have wifi.  So yes the coffee shop 
>> does have a dhcp server, I may not want to use it.
>> 
>> If I do not have access to the venue network, then my networking needs are 
>> just my 2 devices.  This is the  case I am trying to provide for, without 
>> having to edit 
>> a config file.  the Opsis PC is often headless,  so editing is done via ssh 
>> from the voctomix pc, which is hard if the 2 don't have networking setup. 
>> 
>> -- 
>> Carl K
> 
> If you are using NetworkManager for configuring your interfaces on those 
> linux machines, you can have two profiles bound to the same interface with 
> the dhcp profile having a higher priority over the static profile. So if DHCP 
> fails, the static profile takes over. 
> 
> 
> That sounds like I won't have both static and dhcp IPs at the same time?
>  
> Ubuntu switched to NetPlan sometime back and I’m not sure if it has the same 
> options, you’d have the check netplan’s documentation. 
> 
> I seem to remember working this out for NetPlan and being happy with how 
> simple the .conf was.   That was about 2 years ago and I'm not sure if it 
> worked.
> 

Re: [Dnsmasq-discuss] OT client q: both static and dhcp

2021-06-27 Thread Andrew Miskell via Dnsmasq-discuss


> On Jun 27, 2021, at 12:02, Carl Karsten  wrote:
> 
> 
> 
> 
>> On Sun, Jun 27, 2021 at 10:49 AM Andrew Miskell  
>> wrote:
>> 
>> 
 On Jun 27, 2021, at 09:30, Carl Karsten  wrote:
 
>>> 
>>> 
>>> 
 On Sun, Jun 27, 2021 at 7:56 AM john doe  wrote:
 On 6/27/2021 9:17 AM, Carl Karsten wrote:
 > On Sun, Jun 27, 2021 at 2:10 AM john doe  wrote:
 >
 >> On 6/27/2021 7:03 AM, Dominik wrote:
 >>> Hey Carl,
 >>>
 >>> On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:
  I'm looking for advice on haveing some boxes to have both dynamic and
  static IPs.
 >>>
 >>> Why use a static IP at all? We have often enough seen people use static
 >>> addresses for the wrong reasons.
 >>>
 >>
 >> As I understand it, the OP wants to use DHCP static leases.
 >>
 >
 > No.
 >
 > I need this for when move put a box on someone else's network.
 > So I don't have any control over the dhcp server.
 >
 
 Then set an fix IP on dhcp client (dhclient ...) and remove it when you
 don't need it.
 
 Basically, you set the dhcp client to have a static address or let the
 client get a lease from a dhcp server.
>>> 
>>> I'm trying to reduce the amount of work I need to do when I show up and 
>>> discover there is no dhcp server.
>>> 
>>> Example locations: university, coffee shop, convention center, office 
>>> meeting room.   In all cases I am a guest for a few days.  
>>> 
>>>  
 
 Why do you need dnsmasq into the mix?
>>> 
>>> I don't - I am just working on client config.
>>> 
>>>  
 
 --
 John Doe
 
 ___
 Dnsmasq-discuss mailing list
 Dnsmasq-discuss@lists.thekelleys.org.uk
 https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>>> 
>>> 
>>> -- 
>>> Carl K
>>> ___
>>> Dnsmasq-discuss mailing list
>>> Dnsmasq-discuss@lists.thekelleys.org.uk
>>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
>> 
>> A couple things. It might help to state what the client device is running 
>> (Windows, Linux and what distribution/version). 
>> 
> 
> Opsis PC: Ubuntu 20.04.2 LTS 
> Voctomix:  Debian GNU/Linux 11 
> 
>  
>> dnsmasq is a DNS/DHCP server not a client, so I’m unsure what the role of 
>> dnsmasq would be here. 
>> 
> 
> This is a bit OT (Off Topic) as in it is not a dnsmasq server question.  
> I am asking about client config.
> to a group qualified to know about such things. 
> if there is a better place to ask such questions, let me know.
> 
>  
>> Most of the places you listed would already have a DHCP server available to 
>> hand out IP addresses (and associated network information) on its own. 
>> Otherwise, there’s no easy way to connect to the internet without knowing 
>> all that particular networks details (e.g. gateway address, subnet mask, 
>> etc, etc) which defeats the point of providing network access in a number of 
>> the locations you listed. 
> 
> 
> If I could always plug a wire into a jack and get to a dhcp server, I would 
> not have a problem.
> I do not want to route 400mbs video traffic though the coffee shop wifi.  
> Which isn't a problem as my devices don't have wifi.  So yes the coffee shop 
> does have a dhcp server, I may not want to use it.
> 
> If I do not have access to the venue network, then my networking needs are 
> just my 2 devices.  This is the  case I am trying to provide for, without 
> having to edit 
> a config file.  the Opsis PC is often headless,  so editing is done via ssh 
> from the voctomix pc, which is hard if the 2 don't have networking setup. 
> 
> -- 
> Carl K

If you are using NetworkManager for configuring your interfaces on those linux 
machines, you can have two profiles bound to the same interface with the dhcp 
profile having a higher priority over the static profile. So if DHCP fails, the 
static profile takes over. 

Ubuntu switched to NetPlan sometime back and I’m not sure if it has the same 
options, you’d have the check netplan’s documentation. ___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] client q: both static and dhcp

2021-06-27 Thread Andrew Miskell via Dnsmasq-discuss


> On Jun 27, 2021, at 09:30, Carl Karsten  wrote:
> 
> 
> 
> 
>> On Sun, Jun 27, 2021 at 7:56 AM john doe  wrote:
>> On 6/27/2021 9:17 AM, Carl Karsten wrote:
>> > On Sun, Jun 27, 2021 at 2:10 AM john doe  wrote:
>> >
>> >> On 6/27/2021 7:03 AM, Dominik wrote:
>> >>> Hey Carl,
>> >>>
>> >>> On Sat, 2021-06-26 at 19:16 -0500, Carl Karsten wrote:
>>  I'm looking for advice on haveing some boxes to have both dynamic and
>>  static IPs.
>> >>>
>> >>> Why use a static IP at all? We have often enough seen people use static
>> >>> addresses for the wrong reasons.
>> >>>
>> >>
>> >> As I understand it, the OP wants to use DHCP static leases.
>> >>
>> >
>> > No.
>> >
>> > I need this for when move put a box on someone else's network.
>> > So I don't have any control over the dhcp server.
>> >
>> 
>> Then set an fix IP on dhcp client (dhclient ...) and remove it when you
>> don't need it.
>> 
>> Basically, you set the dhcp client to have a static address or let the
>> client get a lease from a dhcp server.
> 
> I'm trying to reduce the amount of work I need to do when I show up and 
> discover there is no dhcp server.
> 
> Example locations: university, coffee shop, convention center, office meeting 
> room.   In all cases I am a guest for a few days.  
> 
>  
>> 
>> Why do you need dnsmasq into the mix?
> 
> I don't - I am just working on client config.
> 
>  
>> 
>> --
>> John Doe
>> 
>> ___
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss@lists.thekelleys.org.uk
>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> 
> 
> -- 
> Carl K
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

A couple things. It might help to state what the client device is running 
(Windows, Linux and what distribution/version). 

dnsmasq is a DNS/DHCP server not a client, so I’m unsure what the role of 
dnsmasq would be here. 

Most of the places you listed would already have a DHCP server available to 
hand out IP addresses (and associated network information) on its own. 
Otherwise, there’s no easy way to connect to the internet without knowing all 
that particular networks details (e.g. gateway address, subnet mask, etc, etc) 
which defeats the point of providing network access in a number of the 
locations you listed. ___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] dhcp-host precedence request due multiple matches

2021-06-21 Thread Andrew Miskell via Dnsmasq-discuss
Virtual machines usually generate their own MAC addresses for their virtual 
network cards in bridge mode. So the MAC would be the identifier. They don’t 
share a MAC address with the host itself. 

Sent from my iPhone

> On Jun 21, 2021, at 09:02, Jesus M Diaz  wrote:
> 
> 
> so, if I have two virtual computers running over the same hardware, what 
> should be used as identifier for dnsmasq? the physical mac-address (just one, 
> as it is just one physical card)? the dhcp-client-id or hostname 
> (configurable as per logical device level)?
> 
> That's exactly my point, that there might be where more than one dhcp-host 
> entry match the DHCP request.
> 
> Thanks
> 
>> On Mon, 21 Jun 2021 at 13:23,  wrote:
>> On 6/21/21 3:05 AM, Jesus M Diaz wrote:
>> > - *My point of view:   Each computer has a (dnsmasq) DNS entry, the entry 
>> > gets 
>> > in DNS by DHCP of dnsmasq*. What a computer is? the physical instance or 
>> > the 
>> > virtual one? the hardware or the software? This is the key to my scenario. 
>> > And I 
>> > totally agree with you: each computer should have one entry, the problem 
>> > is the 
>> > definition of 'each computer'.
>> 
>> computers are devices and devices are computers... virtual or otherwise... 
>> it is 
>> not so hard a definition ;)
>> 
>> -- 
>>   NOTE: No off-list assistance is given without prior approval.
>> *Please keep mailing list traffic on the list unless*
>> *a signed and pre-paid contract is in effect with us.*
>> 
>> ___
>> Dnsmasq-discuss mailing list
>> Dnsmasq-discuss@lists.thekelleys.org.uk
>> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss