Re: [Dnsmasq-discuss] DHCP Logging

2018-11-01 Thread Petr Mensik
Hi Tony,

I think dhcp-script can be used to log any information related to dhcp
assignments in custom format. I think basic dhcp request informations is
logged even without log-dhcp. Have you checked syslog or journalctl?

Example from libvirt instance:
DHCPOFFER(virbr0) 192.168.122.161 52:54:00:4b:aa:67

Is that enough? Is something important missing?

On 10/28/2018 03:15 AM, Tony White wrote:
> Hi folks,
>  I am hoping I have missed the option to log all
> dhcp assignments.
>   The only one I have found id --log-dhcp which seems
> to log a lot more than time,date,ipaddress, mac address
> and lease time etc.
> 

-- 
Petr Menšík
Software Engineer
Red Hat, http://www.redhat.com/
email: pemen...@redhat.com  PGP: 65C6C973

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


[Dnsmasq-discuss] DHCP Logging

2018-10-27 Thread Tony White

Hi folks,
 I am hoping I have missed the option to log all
dhcp assignments.
  The only one I have found id --log-dhcp which seems
to log a lot more than time,date,ipaddress, mac address
and lease time etc.

--

best wishes
  Tony White


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


Re: [Dnsmasq-discuss] dhcp logging and dhcp-range static configuration

2012-09-04 Thread Helmut Hullen
Hallo, Simon,

Du meintest am 03.09.12:

 Is there a way to prevent logging the DHCPDISCOVER request for
 unconfigured hardware address in dhcp-range static mode ?

 Try

 dhcp-ignore=!known

 or possibly the old syntax

 dhcp-ignore=#known


Additional question:
When I have 2 NICs, and one of them uses dhcp-host=..., how can I tell  
dnsmasq that all unlisted clients (which have no dhcp-host-line)  
must use the other NIC?

Viele Gruesse!
Helmut

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


Re: [Dnsmasq-discuss] dhcp logging and dhcp-range static configuration

2012-09-04 Thread richardvo...@gmail.com
On Tue, Sep 4, 2012 at 4:45 AM, Helmut Hullen hul...@t-online.de wrote:
 Hallo, Simon,

 Du meintest am 03.09.12:

 Is there a way to prevent logging the DHCPDISCOVER request for
 unconfigured hardware address in dhcp-range static mode ?

 Try

 dhcp-ignore=!known

 or possibly the old syntax

 dhcp-ignore=#known


 Additional question:
 When I have 2 NICs, and one of them uses dhcp-host=..., how can I tell
 dnsmasq that all unlisted clients (which have no dhcp-host-line)
 must use the other NIC?

You'll have two dhcp-range lines, one for the addresses in each
subnet.  Have one dhcp-range match the known tag, and one match the
!known tag.



 Viele Gruesse!
 Helmut

 ___
 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] dhcp logging and dhcp-range static configuration

2012-09-03 Thread Jean-Baptiste Denis
Hello everybody,

I'm running the provided centos dnsmasq version 2.48, and I've got a
question regarding logging of dhcp requests.

I've configured a static dhcp-range to assign ip addresses to well know
system using their hardware address.

Something like the following :

dhcp-range=192.168.0.1,static,255.255.255.0
dhcp-host=net:x86_64,00:30:99:99:99:1C,node1,192.168.0.2
...

The problem I've got is that my log file are full of unhonored dhcp
requests (which is normal, since they don't have any dhcp-host entry in
dnsmasq.conf) :

DHCPDISCOVER(eth0) 00:30:98:87:65:f0 no address available
...
...

Is there a way to prevent logging the DHCPDISCOVER request for
unconfigured hardware address in dhcp-range static mode ?

Regards,

Jean-Baptiste



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


Re: [Dnsmasq-discuss] dhcp logging and dhcp-range static configuration

2012-09-03 Thread Simon Kelley

On 03/09/12 18:06, Jean-Baptiste Denis wrote:

Hello everybody,

I'm running the provided centos dnsmasq version 2.48, and I've got a
question regarding logging of dhcp requests.

I've configured a static dhcp-range to assign ip addresses to well know
system using their hardware address.

Something like the following :

dhcp-range=192.168.0.1,static,255.255.255.0
dhcp-host=net:x86_64,00:30:99:99:99:1C,node1,192.168.0.2
...

The problem I've got is that my log file are full of unhonored dhcp
requests (which is normal, since they don't have any dhcp-host entry in
dnsmasq.conf) :

DHCPDISCOVER(eth0) 00:30:98:87:65:f0 no address available
...
...

Is there a way to prevent logging the DHCPDISCOVER request for
unconfigured hardware address in dhcp-range static mode ?



Try

dhcp-ignore=!known

or possibly the old syntax

dhcp-ignore=#known

I can't remember if 2.48 is new enough for the first one.


Cheers,

Simon.



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