Re: [Dnsmasq-discuss] Notification when a system gets a lease

2010-12-07 Thread richardvo...@gmail.com
You should get a "renew" notification to the script whenever a client boots (assuming that the client is configured to renew a lease at boot, most are but it isn't strictly necessary if there's still time left on the last lease). On Tue, Dec 7, 2010 at 9:40 AM, Paul Smith wrote: > Hi all; I wonde

Re: [Dnsmasq-discuss] Notification when a system gets a lease

2010-12-08 Thread richardvo...@gmail.com
On Tue, Dec 7, 2010 at 3:51 PM, Simon Kelley wrote: > richardvo...@gmail.com wrote: >> You should get a "renew" notification to the script whenever a client >> boots (assuming that the client is configured to renew a lease at >> boot, most are but it isn't stri

Re: [Dnsmasq-discuss] Running multiple instances of dnsmasq in a fail-over configuration

2010-12-09 Thread richardvo...@gmail.com
On Thu, Dec 9, 2010 at 12:37 PM, Tom Metro wrote: > I looked through the list archives to see what was recommended for > running multiple instances of dnsmasq in a fail-over configuration, and > the answer seemed to be to run ISC DHCPd instead. > > My preference would be to stick with dnsmasq. I'm

Re: [Dnsmasq-discuss] Wildcard Subdomains: DNS/DHCP ??

2010-12-11 Thread richardvo...@gmail.com
Have you tried using the cname option? I'm not sure if stock dnsmasq allows wildcards during cname matching, but there's definitely a patch to add it floating around here somewhere... On Fri, Dec 10, 2010 at 6:12 PM, Andy Leak wrote: > Our work requires frequent creating / destroying of virtual

Re: [Dnsmasq-discuss] Wildcard Subdomains: DNS/DHCP ??

2010-12-13 Thread richardvo...@gmail.com
On Mon, Dec 13, 2010 at 5:55 AM, Simon Kelley wrote: > richardvo...@gmail.com wrote: >> Have you tried using the cname option?  I'm not sure if stock dnsmasq >> allows wildcards during cname matching, but there's definitely a patch >> to add it floating around here

Re: [Dnsmasq-discuss] Optimal DNS settings

2010-12-15 Thread richardvo...@gmail.com
On Tue, Dec 14, 2010 at 5:26 PM, Adam Hardy wrote: > dnsmasq has run happily on my system now for about 3 years and therein lies > the > problem. There's a config option I use that I now suspect might be causing a > problem. > > I have a simple gateway box connecting to a DSL modem. It runs dhcli

Re: [Dnsmasq-discuss] Re : Feature request for dhcp-hostfiles to behave like addn-hosts

2010-12-16 Thread richardvo...@gmail.com
I haven't used sqlite, but I would imagine it loses many of its advantages in the lease script process-model -- dnsmasq spawns a new process for every lease. On Thu, Dec 16, 2010 at 1:43 PM, Vincent Cadet wrote: > Simon Kelley wrote: > > ... >> > A tangential  question, I've increased MAXLEASES t

Re: [Dnsmasq-discuss] Re : Re : Feature request for dhcp-hostfiles to behave like addn-hosts

2010-12-17 Thread richardvo...@gmail.com
On Fri, Dec 17, 2010 at 8:45 AM, Simon Kelley wrote: > Vincent Cadet wrote: >> richardvo...@gmail.com wrote: >> >> >>> I haven't used sqlite, but I would imagine it loses many of its >>> advantages in  the lease script process-model -- dnsmasq spawns a

Re: [Dnsmasq-discuss] expand-hosts

2010-12-28 Thread richardvo...@gmail.com
Maybe Simon can figure out what you're saying, but I can't. If you included some specific examples it would make your situation much easier to understand. e.g. (and if your situation doesn't substantially match this made-up example, go and re-read the description of the expand-hosts option) <<>>

Re: [Dnsmasq-discuss] expand-hosts

2010-12-29 Thread richardvo...@gmail.com
On Tue, Dec 28, 2010 at 5:18 PM, Jean-Pierre van Melis < fraterdnsm...@hetemail.com> wrote: > Hi Richard, > > I own the the domain mirmana.com which points with most of its records > including a wildcard to my private DSL-connection on which I have a DD-WRT > router. > > DD-WRT is running DNSMa

Re: [Dnsmasq-discuss] expand-hosts

2010-12-29 Thread richardvo...@gmail.com
Append primary and connection-specific DNS suffixes". Linux clients will have something similar, but I'm not familiar with exactly where it is, it probably depends on whether you're using udhcpc, dhcpclient, or some other dhcp client package. > > > > -Origin

Re: [Dnsmasq-discuss] dnsmasq + nat

2011-01-10 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 10:07 AM, andu novac wrote: > I'm trying to share an internet connection (pppoe) from one computer > to another via wifi (wlan0). I had this working fine before I upgraded > fron 32 to 64 bit Debian. The problem is that the computer on the wifi > network (the client) can r

Re: [Dnsmasq-discuss] dnsmasq + nat(solved)

2011-01-10 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 11:49 AM, andu novac wrote: > On Mon, Jan 10, 2011 at 7:30 PM, andu novac wrote: > > On Mon, Jan 10, 2011 at 7:21 PM, richardvo...@gmail.com > > wrote: > >> > >> On Mon, Jan 10, 2011 at 10:07 AM, andu novac > wrote: > &g

Re: [Dnsmasq-discuss] dnsmasq + nat(solved)

2011-01-10 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 12:53 PM, Jan Seiffert wrote: > 2011/1/10 andu novac : > >> You're welcome. However you would not say "nice crystal ball" if you > saw > >> the scratch marks it leaves on the furniture ;) > > > > Furniture is replaceable, I'd say it's worth it :) > > > > But since your fu

Re: [Dnsmasq-discuss] dnsmasq + nat(solved)

2011-01-10 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 1:01 PM, richardvo...@gmail.com < richardvo...@gmail.com> wrote: > > > On Mon, Jan 10, 2011 at 12:53 PM, Jan Seiffert < > kaffeemons...@googlemail.com> wrote: > >> 2011/1/10 andu novac : >> >> You're welcome. However y

Re: [Dnsmasq-discuss] dnsmasq + nat(solved)

2011-01-10 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 1:40 PM, Nicholas Weaver wrote: > > > > Oh nevermind, it affect the TCP option negotiation, so it causes the > client > > to send smaller packets. So it is a general solution for TCP (and only > > TCP). For UDP, the mtu still needs to be reduced at the client. > > All bu

Re: [Dnsmasq-discuss] dnsmasq + nat(solved)

2011-01-11 Thread richardvo...@gmail.com
On Mon, Jan 10, 2011 at 11:50 PM, SamLT wrote: > On Mon, Jan 10, 2011 at 01:03:39PM -0600, richardvo...@gmail.com wrote: > > On Mon, Jan 10, 2011 at 1:01 PM, richardvo...@gmail.com < > > richardvo...@gmail.com> wrote: > > > > > > > > > &g

Re: [Dnsmasq-discuss] DHCP proxy only

2011-01-12 Thread richardvo...@gmail.com
You'll need to specify the nameserver option to be sent to DNS clients. dnsmasq defaults to itself, but you can specify the IP address of your preferred server. On Tue, Jan 11, 2011 at 6:07 PM, Martin, Steven wrote: > I have a problem running dnsmasq. I have noticed the dnsmasq IP address > sho

Re: [Dnsmasq-discuss] [suggestion] tiny embedded web server

2011-01-26 Thread richardvo...@gmail.com
There's no synergism between dnsmasq existing functions and an http server. Just run a separate tiny web server. TFTP, DHCP, and DNS are all very closely intertwined, HTTP isn't unless you're wanting to serve up printouts of the DNS cache. 2011/1/26 Cristian Măgherușan-Stanciu > Hello, > > I h

Re: [Dnsmasq-discuss] Question about dnsmasq dhcp-ignore

2011-02-04 Thread richardvo...@gmail.com
On Fri, Feb 4, 2011 at 6:15 AM, mariodebian wrote: > Hi. > > This is my first message in this list, sorry if anyone made this > question before. > > I have a simple /24 network with dnsmasq as DHCP server and DNS cache. > > dhcp-range=192.168.1.55,192.168.1.199,2h > dhcp-option=option:router,192.1

Re: [Dnsmasq-discuss] VLANs and incorrect pools?

2011-02-08 Thread richardvo...@gmail.com
On Tue, Feb 8, 2011 at 2:57 PM, Chris Moates wrote: > I'm struggling to figure out what I'm doing wrong in my configuration. > I've got three VLANs on two interfaces: > > eth1.10 > eth1.11 > eth0.12 > > I'm running dnsmasq 2.55 and my dnsmasq.conf has the following: > [snip] > dhcp-range=intrefac

Re: [Dnsmasq-discuss] VLANs and incorrect pools?

2011-02-09 Thread richardvo...@gmail.com
On Wed, Feb 9, 2011 at 9:51 AM, Chris Moates wrote: > On Wed, Feb 9, 2011 at 10:49 AM, Chris Moates wrote: > > 6: eth1.10@eth1: mtu 1500 qdisc > noqueue > >link/ether 00:1b:2f:c7:3e:66 brd ff:ff:ff:ff:ff:ff > >inet 10.8.16.6/24 brd 10.8.16.255 scope global eth1.10 > >inet 10.8.16.4/

Re: [Dnsmasq-discuss] hostnames dhcp-client (debian squeeze)

2011-02-10 Thread richardvo...@gmail.com
Yes dnsmasq can provide a hostname, if the client is configured to request it. Are you able to capture the DHCP traffic with wireshark (or some other packet sniffer) and see whether the hostname option is present in the response? On Thu, Feb 10, 2011 at 5:40 AM, wrote: > Hello all > > I have a

Re: [Dnsmasq-discuss] client name via DHCP

2011-02-10 Thread richardvo...@gmail.com
near the bottom of the dnsmasq man page you will find the following section: FILES*/etc/dnsmasq.conf* */usr/local/etc/dnsmasq.conf* */etc/resolv.conf* */etc/hosts* */etc/ethers* */var/lib/misc/dnsmasq.leases* */var/db/dnsmasq.leases* */var/run/dnsmasq.pid* On Thu, Feb 10, 2011 at 11:11 AM,

Re: [Dnsmasq-discuss] client name via DHCP

2011-02-10 Thread richardvo...@gmail.com
On Thu, Feb 10, 2011 at 12:17 PM, Helmut Hullen wrote: > Hallo, Richard, > > Du meintest am 10.02.11: > > > >> when I use the ISC DHCP, then I can see the name of the Windows > >> client in "/var/state/dhcp/dhcp.leases". > >> > >> With dnsmasq as DNS and DHCP server I haven't found this feature -

Re: [Dnsmasq-discuss] Question about dump output

2011-02-17 Thread richardvo...@gmail.com
I imagine that it means your cache was full, so some existing valid entry had to be replaced. And gives you a statistic on how often that is happening. On Thu, Feb 17, 2011 at 11:22 AM, James R. Weaver wrote: > > My apologies if this is a stupid question. When doing a cache dump from > dnsmasq w

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
Are you releasing the lease after changing the client configuration, or renewing an existing lease? On Thu, Mar 3, 2011 at 11:31 PM, Michael P. McDonnell wrote: > So I'd like to use vendor class identifer to create two different ranges in > dnsmasq, and I'm not entire sure how to go about that. >

Re: [Dnsmasq-discuss] how to set NS for a zone?

2011-03-04 Thread richardvo...@gmail.com
That prevents it from running as a parent zone. As Carlos has said, the parent zone needs to provide the NS record for subzones, otherwise there would be no way to know which server to query for the NS record in the first place. On Fri, Mar 4, 2011 at 2:37 AM, Matthias Andree wrote: > Am 04.03.2

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
not killing the lease all together... > > so I tried doing a dhclient -r eth0, then doing a dhclient eth0. No luck > :-/ > > > On Fri, Mar 4, 2011 at 10:12, richardvo...@gmail.com < > richardvo...@gmail.com> wrote: > >> Are you releasing the lease after chang

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
option: 1:netmask > ff:ff:ff:00 > Mar 4 10:33:54 pxeserv dnsmasq[18619]: sent size: 4 option: 28:broadcast > 0a:e6:f0:ff > Mar 4 10:33:54 pxeserv dnsmasq[18619]: sent size: 4 option: 3:router > 0a:e6:f0:64 > Mar 4 10:33:54 pxeserv dnsmasq[18619]: sent size: 4 option: > 6:dns

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
-id being set, and no tags are being matched. You should probably upgrade to a newer version. On Fri, Mar 4, 2011 at 10:51 AM, richardvo...@gmail.com < richardvo...@gmail.com> wrote: > It looks like the dhcp-range is setting a tag instead of matching it. > > > If you took ou

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
This probably should have gone to the list. On Fri, Mar 4, 2011 at 11:01 AM, richardvo...@gmail.com < richardvo...@gmail.com> wrote: > Simon's latest version is 2.57, you want at least 2.53, a snippet from the > changelog: > > version 2.53 > Rationalised

Re: [Dnsmasq-discuss] Using Vendor Class to determine range

2011-03-04 Thread richardvo...@gmail.com
On Fri, Mar 4, 2011 at 11:16 AM, Simon Kelley wrote: > Michael P. McDonnell wrote: > > I found 2.55 pretty easily. > > I'm wondering - is it legit to have my multi-word vendor class set in > > quotes like that? > > > > Yes. > > > I released and renewed, and was still in the wrong range, so I'm loo

Re: [Dnsmasq-discuss] how to set NS for a zone?

2011-03-04 Thread richardvo...@gmail.com
On Fri, Mar 4, 2011 at 11:48 AM, Carlos Carvalho wrote: > richardvo...@gmail.com (richardvo...@gmail.com) wrote on 4 March 2011 > 10:15: > >That prevents it from running as a parent zone. As Carlos has said, the > parent > >zone needs to provide the NS record for subzones,

Re: [Dnsmasq-discuss] logging dns queries

2011-03-18 Thread richardvo...@gmail.com
On Fri, Mar 18, 2011 at 1:10 PM, Helmut Hullen wrote: > Hallo, Matthias, > > Du meintest am 18.03.11: > > Can I tell "dnsmasq" too to log the queries? > Find manual. Read manual. Look for --log-queries. > >>> It works - thank you! >>> But it's not as comfortable as the ISC-bind form: ther

Re: [Dnsmasq-discuss] logging dns queries

2011-03-18 Thread richardvo...@gmail.com
ot;, which is not too surprising since it's the declared primary purpose of dnsmasq. > > Please enlighten me as to the specifics. > > thanks in advance, > > Fred > > > On 03/18/2011 01:21 PM, richardvo...@gmail.com wrote: >> >> On Fri, Mar 18, 2

Re: [Dnsmasq-discuss] multiple subnets behind DHCP relay

2011-03-19 Thread richardvo...@gmail.com
2011/3/19 Takács Balázs : > Dear all, > > I have a setup where there are two (or more) separate subnets behind a DHCP > relay. > >                 DHCP relay >               ||           |-| >    10.1.0.1/16|eth1        |10.0.0.0/16|Dnsmasq sever| >  --|        

Re: [Dnsmasq-discuss] Only serve IP's if reservation exists?

2011-04-13 Thread richardvo...@gmail.com
Yes, use "static" in the dhcp-range definition. The man page is quite helpful. On Wed, Apr 13, 2011 at 1:34 PM, Scott wrote: > Hello, > > > > Is there a way to have dnsmasq only serve IP’s if a reservation exists for > that IP?  And if no IP reservation exists, for it to hold onto that IP > (sim

Re: [Dnsmasq-discuss] Is Windows going to break if filterwin2k set

2011-04-22 Thread richardvo...@gmail.com
Ordinary web browsing functions will not break. Domain authentication could break, which could impede access to shared files in a corporate environment using centralized authentication. If you don't know what that means, it probably doesn't apply to you. On Thu, Apr 21, 2011 at 3:32 PM, Frank w

Re: [Dnsmasq-discuss] Very accurate bandwidth tracking...

2011-05-11 Thread richardvo...@gmail.com
> Note that it's the nf_mark we will be setting. But: >        get/setsockopt(fd, SOL_SOCKET, SO_MARK, ...) That allows you to set a mark for your outgoing packets, and find out what mark is in effect on outgoing packets. There's still a large piece of the puzzle missing, namely finding out what

Re: [Dnsmasq-discuss] Very accurate bandwidth tracking...

2011-05-11 Thread richardvo...@gmail.com
On Wed, May 11, 2011 at 4:03 AM, Ed W wrote: > On 11/05/2011 01:32, richardvo...@gmail.com wrote: >>> Note that it's the nf_mark we will be setting. But: >>>        get/setsockopt(fd, SOL_SOCKET, SO_MARK, ...) >> That allows you to set a mark for your outgoing pa

Re: [Dnsmasq-discuss] dnsmasq + extending dns servers

2011-05-13 Thread richardvo...@gmail.com
On Fri, May 13, 2011 at 5:48 AM, ramakanth varala wrote: > Another point i want to add here is if i add dhcp-option as a command > it works fine but not with dnsmasq.conf file . > > Iam ensuring that it re read the file when i add dhcp-option by giving > signal sighup. >From the man page: "SIGHU

Re: [Dnsmasq-discuss] Simple conf for local hostname resolution only

2011-05-17 Thread richardvo...@gmail.com
On Tue, May 17, 2011 at 3:14 AM, John Frankish wrote: > I haven't found where to search the list so my apologies if this is > asked/answered elsewhere. > > I have a router that acts as a dhcp server and resolves wan addresses, but it > does not have the option to resolve local hostnames. > > I'm

Re: [Dnsmasq-discuss] Simple conf for local hostname resolution only

2011-05-17 Thread richardvo...@gmail.com
On Tue, May 17, 2011 at 8:28 AM, John Frankish wrote: >> >> On Tue, May 17, 2011 at 3:14 AM, John Frankish wrote: >> > I haven't found where to search the list so my apologies if this is >> > asked/answered elsewhere. >> > >> > I have a router that acts as a dhcp server and resolves wan addresses

Re: [Dnsmasq-discuss] DNS but no DNS Options...

2011-05-20 Thread richardvo...@gmail.com
On Fri, May 20, 2011 at 10:08 AM, Peter Murphy wrote: > Hi, > > I have configured dnsmasq as a Proxy DHCP server. It successfully offers > Pxe Boot options to all clients. Huh? The term is "DHCP relay", and I don't think dnsmasq has that capability (it can serve addresses through relays, but it

Re: [Dnsmasq-discuss] [suggestion] tiny embedded web server

2011-05-25 Thread richardvo...@gmail.com
On Wed, May 25, 2011 at 6:50 AM, Shantanu Gadgil wrote: > I am a fan of dnsmasq and use it a lot. > > The web-server idea doesn;t sound half-bad, now that PXELINUX has > HTTP support (syslinux-4.10-pre14+) to load the kernel and initrd images There are already plenty of lightweight embedded web s

Re: [Dnsmasq-discuss] resolving short names

2011-05-31 Thread richardvo...@gmail.com
On Mon, May 30, 2011 at 10:54 AM, Rance Hall wrote: > I have a small home network with several nodes, some static ips, > others from dnsmasq's dhcp server.  all have same netmask and class. > > Three of the nodes( two servers, one client) are Windows Active > Directory domain members using the win

Re: [Dnsmasq-discuss] excluding sockets

2011-06-01 Thread richardvo...@gmail.com
You probably should ask for help with backups on the listserv for your backup software. On Wed, Jun 1, 2011 at 3:01 PM, Helmut Hullen wrote: > Hallo, > > can I exclude the file type "socket" from backing up? > > Viele Gruesse! > Helmut > > ___ > Dnsmasq

Re: [Dnsmasq-discuss] Two quick questions about running dnsmasq under Mac OS X

2011-06-21 Thread richardvo...@gmail.com
On Tue, Jun 21, 2011 at 2:04 PM, Mel Brands wrote: > Hi guys, > > I've successfully installed and configured dnsmasq on my Mac laptop > and I have two quick questions. > > 1) How do you quickly tell dnsmasq to reload config files and reload > /etc/hosts (or wherever you have your hosts file)? The

Re: [Dnsmasq-discuss] Setting the "domain" value depending on the subnet?

2011-06-22 Thread richardvo...@gmail.com
The man page says you can configure a domain suffix for each range: -s, --domain=[,[,local]] Specifies DNS domains for the DHCP server. Domains may be be given unconditionally (without the IP range) or for limited IP ranges. This has two effects; firstly it causes the DHCP server to return the dom

Re: [Dnsmasq-discuss] DHCP - One IP Range per interface

2011-06-27 Thread richardvo...@gmail.com
Yes. If you write multiple dhcp-range lines in your configuration, dnsmasq will pair them with interfaces according to the local interface address (i.e. if eth1 is 192.168.1.x then dnsmasq will serve addresses from the 192.168.1.0/24 pool in response to requests received at eth1). On Mon, Jun 27,

Re: [Dnsmasq-discuss] DHCP - One IP Range per interface

2011-06-27 Thread richardvo...@gmail.com
. On Mon, Jun 27, 2011 at 12:30 PM, Conrad Kostecki wrote: > Hi! > Thanks for your fast answer. > So, if I add 3 dhcp-range options, how do I set the dhcp-option? Are they > working the same way as with dhcp-range? > > Thanks! > Conrad > > Am 27.06.2011 18:23, schrieb r

Re: [Dnsmasq-discuss] URL redirection

2011-07-02 Thread richardvo...@gmail.com
And here I was thinking "block access to facebook from the company network". But DNS wouldn't exactly be the best way to do so. On Sat, Jul 2, 2011 at 11:34 AM, Lee Maisel wrote: > Oh! > > Sorry, LOL  that makes sense.  So instead of just blocking AD sites for > your network, have it go to somet

Re: [Dnsmasq-discuss] URL redirection

2011-07-03 Thread richardvo...@gmail.com
That question was about matching part of the URL path. This one seems just to be about hostnames, which DNS does affect (in most cases). On Sat, Jul 2, 2011 at 5:08 PM, Matthias Andree wrote: > Am 02.07.2011 09:30, schrieb Tomas Sironi: >> Hi people. I'm sure someone has already asked about this

Re: [Dnsmasq-discuss] Using a secondary set of nameservers for dynamic blocking

2011-08-15 Thread richardvo...@gmail.com
On Mon, Aug 15, 2011 at 7:02 AM, Sam Crawford wrote: > Ed, > > Many thanks for the suggestion. You're quite right - my server-side > idea was effectively re-inventing the wheel. I've ended up going with > rbldnsd, which has been a breeze to setup for this task (even with > millions of records) and

Re: [Dnsmasq-discuss] [PATCH] dnsmasq.8

2011-08-31 Thread richardvo...@gmail.com
"requestor" was fine (according to Merriam-Webster). Glad I won't have to see the misspelling of "omit" any more. On Tue, Aug 30, 2011 at 5:58 AM, Simon Kelley wrote: > Douglas Landgraf wrote: >>  Hello, >> >> I am the current fedora packager to dnsmasq. Reviewing all requests >> opened to dnsma

Re: [Dnsmasq-discuss] DHCP Relay, assign address from other vlan, with no dhcp listening on it

2011-09-13 Thread richardvo...@gmail.com
> If it can be done, it should be done :) > The reason why it should be done in my case not beacuse I'm lazy to > use sub-option 5, but because I just cannot use it. > My switch vendor doesnt support RFC5107, and that the reason why I > can't use dnsmasq, and I'm not the only one. According to wha

Re: [Dnsmasq-discuss] DHCP Relay, assign address from other vlan, with no dhcp listening on it

2011-09-14 Thread richardvo...@gmail.com
> I don't agree. Dnsmasq is a great software, I use it for years in a > small environment. > In bigger networks usage of l2 switches is necessary, and as Michael, > I dont know too any l2 switch that supports any dhcp-related RFC, > except 3046. > There are not some many unix dhcp software that can

Re: [Dnsmasq-discuss] DHCP Relay, assign address from other vlan, with no dhcp listening on it

2011-09-15 Thread richardvo...@gmail.com
>>> Or is your router not the same device where your dnsmasq is running on? >> Exactly. Have you considered running the dhcp relay agent on the router instead of the L2 switch? This approach often offers much more flexibility and capability.

Re: [Dnsmasq-discuss] DHCP Relay, assign address from other vlan, with no dhcp listening on it

2011-09-15 Thread richardvo...@gmail.com
On Thu, Sep 15, 2011 at 12:03 PM, SpiderX wrote: > On Thu, Sep 15, 2011 at 7:44 PM, richardvo...@gmail.com > wrote: >>>>> Or is your router not the same device where your dnsmasq is running on? >>>> Exactly. >> >> Have you considered running the dhc

Re: [Dnsmasq-discuss] Lease Time Detail

2011-09-21 Thread richardvo...@gmail.com
Read the man page description for dhcp-script. All the information you asked about is available there. So dnsmasq does have it. Anyway, the simple way is to write a dhcp-script that puts information in a database, that way you'll have records of expired leases, since dnsmasq removes them from it

Re: [Dnsmasq-discuss] Lease Time Detail

2011-09-22 Thread richardvo...@gmail.com
Surely the DNSMASQ_LEASE_EXPIRES variable should be captured also. On Thu, Sep 22, 2011 at 8:08 AM, Helmut Hullen wrote: > Hallo, Pratik, > > Du meintest am 22.09.11: > >> And can I pls ask u to show me a simple script to do so??? I m >> totally naive for scripting so.. Thanks in advance.. :) > >

Re: [Dnsmasq-discuss] DNSMASQ Logging and

2011-11-13 Thread richardvo...@gmail.com
On Sat, Nov 12, 2011 at 3:49 PM, wrote: > I am a user of DNSMASQ that has it installed on a Puppy Linux distro.The > Puppy distro starts normally, acquiring a DHCP address automatically from an > upstream router. > > DNSMASQ is installed via the Puppy distro's package manager. There are no > brok

Re: [Dnsmasq-discuss] Some clients get wrong IP

2011-12-20 Thread richardvo...@gmail.com
Check your log, see if the camera is reporting a wrong MAC, different client-id, different vendor class, or something like that. Or possibly the camera's bootloader is remembering its old address (gotten before you configured your hosts file) and requesting a renewal. Again, the log would show a

Re: [Dnsmasq-discuss] Redundant setup with Dnsmasq

2011-12-22 Thread richardvo...@gmail.com
On Thu, Dec 22, 2011 at 8:13 AM, Michael Rack wrote: > Very easy. > > You need at least one virtual ip-address for your DNS- and DHCP-Server. > > So lets say you have a Class-C Network 10.0.0.0/24 > >     * Primary DNS / DHCP    10.0.0.251 >     * Secondary DNS / DHCP  10.0.0.252 > > Now, you add

Re: [Dnsmasq-discuss] Redundant setup with Dnsmasq

2011-12-23 Thread richardvo...@gmail.com
2011/12/22 Markus Schöpflin : > Am 22.12.2011 19:58, schrieb > richardvo...@gmail.com: > > [...] > >> See the dhcp-script and leasefile-ro options. > > Duh, I completely missed that option when reading the man page. This > looks like it would enable two servers

Re: [Dnsmasq-discuss] dnsmasq itself as WINS server

2012-02-06 Thread richardvo...@gmail.com
Do you even need WINS if DNS lookup is working properly? I think it's become completely redundant. On Mon, Feb 6, 2012 at 11:09 AM, wrote: > esehello everybody > > I use dnsmasq as a feature of TomatoUSB 1.28 VPN. > > Now I have three samba servers behind the TomatoUSB-Router. > Till now one of

Re: [Dnsmasq-discuss] Detect conflicting DHCP servers

2012-03-09 Thread richardvo...@gmail.com
Contacting DHCP servers is a task for a DHCP client, not a DHCP server. There are a number of scripts available which will send a request and listen to all responses (not just the first), generating an alert if any unexpected nodes responded. Google "rogue DHCP detect". On Fri, Mar 9, 2012 at 3:

Re: [Dnsmasq-discuss] Feature Request(s)

2012-03-15 Thread richardvo...@gmail.com
Since the PTR name contains the IP, by definition different IPs means different PTR records. On Thu, Mar 15, 2012 at 2:34 PM, /dev/rob0 wrote: > On Thu, Mar 15, 2012 at 10:24:44AM -0700, Rob Zwissler wrote: > > Yah, seems to me it would make more sense to key off the IP address > > (or have that

Re: [Dnsmasq-discuss] Feature Request: tftp-script

2012-03-19 Thread richardvo...@gmail.com
Existing scripts could definitely break, imagine one that just logs certain environment variables plus the parameter. The new action values won't have the right environment variable set. How about both? Give the --tftp-script the same action parameter, and keep actions unique, that way both opti

Re: [Dnsmasq-discuss] server config options not working

2012-03-22 Thread richardvo...@gmail.com
DNS is the wrong place to implement this behavior. Interception of TCP connections is done with packet rewriting rules in iptables, and you'll need to set up your exceptions there also. On Thu, Mar 22, 2012 at 6:01 AM, Ian Rose wrote: > I have set up a Ubuntu 10.04 LTS desktop machine with 2 in

Re: [Dnsmasq-discuss] DNSMasq script lookup

2012-03-29 Thread richardvo...@gmail.com
> > > On thing which might be interesting, is to define a new type of upstream > server (maybe called a look-aside server) which dnsmasq will send a query > to first, and which if it can't answer the query can return a custom > return-code "Not known", which causes dnsmasq to then push the query in

Re: [Dnsmasq-discuss] DNSMasq script lookup

2012-03-30 Thread richardvo...@gmail.com
On Fri, Mar 30, 2012 at 9:26 AM, Simon Kelley wrote: > On 29/03/12 20:12, richardvo...@gmail.com wrote: > >> >> On thing which might be interesting, is to define a new type of >> upstream server (maybe called a look-aside server) which dnsmasq will >> send a query t

Re: [Dnsmasq-discuss] TFTP FIXME message

2012-04-01 Thread richardvo...@gmail.com
That looks like a comment to developers. Seems a mistake if it's actually printed at runtime. On Sun, Apr 1, 2012 at 8:12 AM, Helmut Hullen wrote: > Hallo, > > my (self made) dnsmasq 2.60 always tells > > TFTP FIXME: this and the next few must be full strings to be > translatable - do not assem

Re: [Dnsmasq-discuss] load balancing with interfaces

2012-04-11 Thread richardvo...@gmail.com
On Wed, Apr 11, 2012 at 4:31 AM, Helmut Hullen wrote: > Hallo, > > in a school I want to run all schoolish clients (about 150) over eth0, > with quasi static IP addresses ("dhcp-host=...") and all private clients > (private netbooks, smartphones etc.) over eth1 (completely DHCP, lease > time 2 da

Re: [Dnsmasq-discuss] Update: Lowercase patch for 2.61rc2

2012-04-20 Thread richardvo...@gmail.com
On Fri, Apr 20, 2012 at 2:20 AM, Oliver Rath wrote: [snip] Now you can say: Ok, why you dont use a partition with the > ignore_case-Option holding all this drivers? This is right unless you > are working on embedded environment with low space. There it is much > smarter using the lowercase-opti

Re: [Dnsmasq-discuss] DNS in DNsmasq

2012-04-23 Thread richardvo...@gmail.com
No. You must configure dnsmasq with an upstream nameserver which will perform the recursive query. dnsmasq is a server for your local zone (with DHCP integration, similar to dynamic dns) and a cache. It is not a recursive nameserver. On Mon, Apr 23, 2012 at 9:23 AM, dnsmasq dnsmasq wrote: > He

Re: [Dnsmasq-discuss] Slow response to DHCPDISCOVER

2012-04-24 Thread richardvo...@gmail.com
Daryl may still be correct. Linux's bridge module also implements the learning phase (for detection of loops) before it begins forwarding packets. On Tue, Apr 24, 2012 at 10:38 PM, Adrian May wrote: > Hi Daryl, > > There is no switch. I'm trying to build a router and I'm plugging clients > dire

Re: [Dnsmasq-discuss] multiple ips

2012-04-26 Thread richardvo...@gmail.com
Just use multiple dhcp-host lines. Also, the order is dhcp-host=[][,id:|*][,set:][,][,][,][,ignore] That is, the hostname comes after the IP address. And the netmask isn't specified explicitly, it's determined from the local interface configuration, or the DHCP proxy server. On Thu, Apr 26, 20

Re: [Dnsmasq-discuss] multiple ips

2012-04-26 Thread richardvo...@gmail.com
28,00:26:b9:03:bc:3b,10.0.1.1,jarod > dhcp-host=00:22:5f:d1:7c:28,00:26:b9:03:bc:3b,172.16.1.1,jarod > > but dhcp server assign only first ip to my laptop. how can i solve? > > On Thu, Apr 26, 2012 at 4:04 PM, richardvo...@gmail.com > wrote: >> >> Just use multiple dhcp-

Re: [Dnsmasq-discuss] dnsmasq DHCP filter by circuit AND remote IDs

2012-04-26 Thread richardvo...@gmail.com
Use tag-if for boolean logic dhcp-circuitid=set:circuitmatch, dhcp-remoteid=set:agentmatch, tag-if=set:bothmatch,tag:circuitmatch,tag:agentmatch On Thu, Apr 26, 2012 at 2:39 PM, David Dombrowsky wrote: > The man page for dnsmasq says > > > > “If an exact match is achieved between the circuit or

Re: [Dnsmasq-discuss] multiple ips

2012-04-26 Thread richardvo...@gmail.com
d two ip addresses on same interface, only wlan0 for example. > > > On Thu, Apr 26, 2012 at 9:46 PM, richardvo...@gmail.com > wrote: >> >> What is your interface configuration (`ip show address`)?  What >> interface is your laptop connected to? >> >> This allo

Re: [Dnsmasq-discuss] multiple ips

2012-04-26 Thread richardvo...@gmail.com
Thu, Apr 26, 2012 at 10:12 PM, richardvo...@gmail.com > wrote: >> >> Then you need to configure your client to make two requests (using two >> locally-administered MAC addresses, probably).  The DHCPOFFER message >> only carries one IP address.  That limitation isn't

Re: [Dnsmasq-discuss] multiple ips

2012-04-26 Thread richardvo...@gmail.com
; wrote: >> > do you have experience with dhcp client about? if true, which? >> > >> > >> > On Thu, Apr 26, 2012 at 10:12 PM, richardvo...@gmail.com >> > wrote: >> >> >> >> Then you need to configure your client to make two

Re: [Dnsmasq-discuss] Problems with DHCP packets with broadcast flag enabled

2012-05-07 Thread richardvo...@gmail.com
Check if sending the DHCPOFFER fails (if for example, it is a renewal packet and therefore unicast rather than multicast, and it can't find a MAC address for that client because ARP is blocked). I think checking the return value from `sendto` should trap this scenario. If the DHCPOFFER packet doe

Re: [Dnsmasq-discuss] help needed in dnsmasq problem

2012-05-17 Thread richardvo...@gmail.com
I think your configuration is wrong, but as a test, does the "strict-order" option fix your problem? On Thu, May 17, 2012 at 9:38 AM, Atul Gupta wrote: > Hi, > One server in my dnsmasq.conf file is never tried for sending the query. > >   Below is my config file:- >   # Management DNS servers [2]

Re: [Dnsmasq-discuss] help needed in dnsmasq problem

2012-05-17 Thread richardvo...@gmail.com
what you think is not correct in conf file. > > Thanks. > > On Thu, May 17, 2012 at 12:29 PM, richardvo...@gmail.com > wrote: >> I think your configuration is wrong, but as a test, does the >> "strict-order" option fix your problem? >> >> On Thu, May

Re: [Dnsmasq-discuss] help needed in dnsmasq problem

2012-05-17 Thread richardvo...@gmail.com
s like the > dnsmasq calls the DNS Server address "bad" and never tries them again, > because i  had a DNS server problem ...resolved it ...yet the dnsmasq > never could do DNS resolution after the DNS server problem was > resolved. > > On Thu, May 17, 2012 at

Re: [Dnsmasq-discuss] standard gateway as Forwarding DNS-ip?

2012-05-18 Thread richardvo...@gmail.com
On Fri, May 18, 2012 at 7:09 AM, Oliver Rath wrote: > Hi list, > > my dnsmasq doesnt forward DNS-queries correctly. The goal is, that > dnsmasq takes the standard-gateway of dhcp as forwarding address for > dns-requests. But this didnt work here. In such a case, you configure your DHCP client t

Re: [Dnsmasq-discuss] DHCP message

2012-05-21 Thread richardvo...@gmail.com
On Mon, May 21, 2012 at 5:59 AM, Simon Kelley wrote: > On 21/05/12 11:34, Ian Rose wrote: >> Is it possible to send a message to the client device when an IP address >> is allocated via DHCP? This would only be a static info message for my >> purposes, and it wouldn't matter much if some clients d

Re: [Dnsmasq-discuss] dnsmasq and sshfp records

2012-05-24 Thread richardvo...@gmail.com
dnsmasq doesn't use zone files. You can try with txt-record= (see the man page for details) On Thu, May 24, 2012 at 5:44 AM, Gerd Koenig wrote: > Hi List, > > I'm currently looking for a solution to provide ssh-keys via DNS. Seems like > sshfp records will solve this issue ... so far so good. >

Re: [Dnsmasq-discuss] A (possibly bad) idea: failover in dnsmasq

2012-05-26 Thread richardvo...@gmail.com
> Configuration on a primary looks like > > --failover-listen= > > Configuration on a secondary looks like > > --failover-master=, I think more consideration should go into the configuration command names, since putting a "fallover-master" option on a secondary is counter-intuitive. After all,

Re: [Dnsmasq-discuss] Looking up local names doesn't work

2012-05-27 Thread richardvo...@gmail.com
On Sun, May 27, 2012 at 10:15 PM, ian wrote: > Hello > > I'm currently working a DNS server in a local area network. DHCP service > is given by another server which is not under my control. Names on the > internet are working fine, but looking up local names doesn't seem to work. > Does the DHC

Re: [Dnsmasq-discuss] A (possibly bad) idea: failover in dnsmasq

2012-05-28 Thread richardvo...@gmail.com
Configuration on a primary looks like --failover-listen= Configuration on a secondary looks like --failover-master=, >>> >>> >>> I think more consideration should go into the configuration command >>> names, since putting a "fallover-master" option on a secondary

Re: [Dnsmasq-discuss] issue with dhcp-option tags for dnsmasq

2012-06-18 Thread richardvo...@gmail.com
On Mon, Jun 18, 2012 at 2:51 PM, Drew Horn wrote: > Based on the dnsmasq man page, it appears that tags aren't working for > dhcp-options in dnsmasq-2.45.  Here's my understanding of how it should be > used: 2.45 is VERY old. The new syntax was introduced in 2.53 ___

Re: [Dnsmasq-discuss] dynamic file generation for dnsmasq-tftp?

2012-06-19 Thread richardvo...@gmail.com
Is any information about the remote end required for generating the dynamic part (e.g. the mac address of the node being booted)? On Tue, Jun 19, 2012 at 2:31 PM, Oliver Rath wrote: > Hi list, > > Im brooding over the problem, that dnsmasq should send via tftp a file > which would be generated at

Re: [Dnsmasq-discuss] Removing a feature does anyone rely on this?

2012-07-09 Thread richardvo...@gmail.com
On Mon, Jul 2, 2012 at 11:16 AM, Helmut Hullen wrote: > Hallo, Simon, > > Du meintest am 02.07.12: > dhcp-range may have an interface name supplied as "interface:>> name>> ". > >>> I'd like to use this feature in many schools: >>> >>> eth0 and eth1 for the school clients in the LAN, eth2

Re: [Dnsmasq-discuss] Removing a feature does anyone rely on this?

2012-07-09 Thread richardvo...@gmail.com
On Mon, Jul 9, 2012 at 10:18 AM, Helmut Hullen wrote: > Hallo, richardvo...@gmail.com, > > Du meintest am 09.07.12: > >>> We wanted >>> >>> dhcp-range=192.168.0.10,static,infinite >>> # (192.168.0.0/24)

Re: [Dnsmasq-discuss] static ip configuration

2012-07-18 Thread richardvo...@gmail.com
hostname -> IP mapping is DNS, not related to DHCP. dnsmasq adds DHCP information into the DNS zone. DHCP has to map the information provided by the client (that is a MAC address, quite reliable, and a client ID, quite unreliable) to an IP address to be offered. I guess you're wanting the client

Re: [Dnsmasq-discuss] is there anybody who can tell me how to read the source code?

2012-07-21 Thread richardvo...@gmail.com
Of course, tools like doxygen can help by automatically graphing the function call tree. On Fri, Jul 20, 2012 at 7:20 AM, SamLT wrote: > On Fri, Jul 20, 2012 at 09:26:03AM +0800, don wrote: >> i need to implement the dhcp function in one platform, but it's hard to read >> the source code of dnsm

  1   2   3   4   5   >