Re: [Dnsmasq-discuss] IP range with 0.0.0.0 netmask?

2013-11-01 Thread Simon Kelley
On 31/10/13 19:46, Andrea Galvani wrote: Hi Simon, thanks for your answer. You say that the IP address range should coincide with the netmask of the interface where I receive the DHCP Request (in my case, wlan0). Actually, my wlan0 is 10.1.1.0 /24, and I'm using dnsmasq to allocate users in

Re: [Dnsmasq-discuss] Give ip for client only if mac and hostname are specific one

2013-11-01 Thread Simon Kelley
On 31/10/13 23:07, Beat Meier wrote: Thanks Simone this works! I'm trying to go to the perfect solution :-) so I have still a question. Is there a possibility to get the boolean OR operation with tags? I give for a mac and hostaname some ip For the same mac with other hostname an other ip And

Re: [Dnsmasq-discuss] issue seems to be fixed

2013-10-30 Thread Simon Kelley
On 29/10/13 19:47, Peter Mattern wrote: The problem has indeed gone in 2.68test1. By the way I meanwhile saw that it can be triggered by any DNS lookup, e. g. Firefox or whatever, not only by running ssh. As you said you couldn't quite reproduce I thought maybe I should post some more verbose

Re: [Dnsmasq-discuss] Give ip for client only if mac and hostname are specific one

2013-10-30 Thread Simon Kelley
, Simon Kelley wrote: On 18/10/13 14:27, Beat Meier wrote: Hi Simon Exactly! I need and mac hostname to give this ip. How is this possible? OK, this is ugly, and I've not tested it, but it should work. First, set a tag if the hostname is correct dhcp-match=set:hostname-ok,12,hostname-to-select

Re: [Dnsmasq-discuss] IP range with 0.0.0.0 netmask?

2013-10-30 Thread Simon Kelley
On 28/10/13 10:57, Andrea Galvani wrote: Hello everyone. I'm working on a particular network architecture which allows a host to have any address inside of a network (that is, not only private addresses!). The host is not directly reachable, and every connection with the host is managed by the

Re: [Dnsmasq-discuss] Build Errors: Dnsmasq 2.67 on OS X 10.9

2013-10-28 Thread Simon Kelley
On 26/10/13 20:00, Jeremy Lavergne wrote: OS X also matches HAVE_BSD_NETWORK, so the use of SIOCGIFAFLAG_IN6 causes build errors unless wrapped in !defined(__APPLE__). Patch available here: http://trac.macports.org/browser/trunk/dports/net/dnsmasq/files/patch-src-bfp.c.diff Patch applied.

Re: [Dnsmasq-discuss] Build Errors: Dnsmasq 2.67 on OS X 10.9

2013-10-28 Thread Simon Kelley
On 26/10/13 20:00, Jeremy Lavergne wrote: OS X also matches HAVE_BSD_NETWORK, so the use of SIOCGIFAFLAG_IN6 causes build errors unless wrapped in !defined(__APPLE__). Patch available here: http://trac.macports.org/browser/trunk/dports/net/dnsmasq/files/patch-src-bfp.c.diff What's the story

Re: [Dnsmasq-discuss] CNAME problem in 2.67?

2013-10-28 Thread Simon Kelley
On 26/10/13 20:59, Peter Mattern wrote: Hello, there's imho a problem affecting CNAMEs in dnsmasq 2.67. I stumbled across this on ArchLinux i686 running the distro's version and thereupon did some tests on another ArchLinux box without the distro's package, where I installed dnsmasq 2.66 or

Re: [Dnsmasq-discuss] Build Errors: Dnsmasq 2.67 on OS X 10.9

2013-10-28 Thread Simon Kelley
On 28/10/13 13:31, Jeremy Lavergne wrote: On Oct 28, 2013, at 7:36, Simon Kelleysi...@thekelleys.org.uk wrote: http://trac.macports.org/browser/trunk/dports/net/dnsmasq/files/patch-src-network.c.diff Does to make sense to upstream that too? That’s been needed for IPv6 compilation on OS X

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-25 Thread Simon Kelley
On 24/10/13 18:11, Brian Rak wrote: Ah, but that's the problem. The machines I'm referring to only have one interface. So, I'm primarily running this on virtual machine hosts. They have one connection to the internet, and no internal network. So, for example we have a virtual machine host

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-25 Thread Simon Kelley
is within your internal network. This is called a reverse route check. On Thu, Oct 24, 2013 at 12:11 PM, Brian Rakb...@gameservers.com wrote: On 10/24/2013 1:00 PM, Simon Kelley wrote: On 24/10/13 17:46, Brian Rak wrote: On 10/24/2013 12:28 PM, Simon Kelley wrote: On 24/10/13 17:03

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-25 Thread Simon Kelley
On 24/10/13 23:03, /dev/rob0 wrote: On Thu, Oct 24, 2013 at 05:28:29PM +0100, Simon Kelley wrote: On 24/10/13 17:03, Brian Rak wrote: We've recently undertaken a project to clean up our network, and lock down all the open DNS resolvers. As you may know, these are very frequently used for DDOS

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-25 Thread Simon Kelley
On 24/10/13 23:41, Vladislav Grishenko wrote: From: Simon Kelley Sent: Thursday, October 24, 2013 11:00 PM So, don't use --bind-interfaces. If you're on Linux, you can use --bind- dynamic instead if you're running multiple dnsmasq instances. So, on linux --bind-interfaces can be just

[Dnsmasq-discuss] Announce: dnsmasq-2.67

2013-10-25 Thread Simon Kelley
dnsmsaq-2.67 is now available to download from http://www.thekelleys.org.uk/dnsmasq/dnsmasq-2.67.tar.gz Cheers, Simon. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk

Re: [Dnsmasq-discuss] What is the required configuration for enabling periodic RA's

2013-10-25 Thread Simon Kelley
On 25/10/13 16:28, Gordon Scott wrote: Hi there, I'm trying to use dnsmasq to provide RA for stateless IPV6 configuration. Does anyone know the configuration required to get dnsmasq to send out RA's periodically? So far I seem to only see RA's be sent after a DHCP request occurs. How are you

Re: [Dnsmasq-discuss] local.net / ipv6 confusion

2013-10-24 Thread Simon Kelley
On 22/10/13 19:39, Ken Bass wrote: Hello, My dnsmasq.conf file contains (running on my asus (merlin) router - using dnsmasq 2.65): domain=local.net local=/local.net/ and dhcp-option=lan,option:domain-search,local.net Everything was working fine. I use server1.local.net as a FQDN throughout my

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-24 Thread Simon Kelley
On 24/10/13 17:03, Brian Rak wrote: We've recently undertaken a project to clean up our network, and lock down all the open DNS resolvers. As you may know, these are very frequently used for DDOS attacks: http://openresolverproject.org/ , http://www.team-cymru.org/Services/Resolvers/ . I

Re: [Dnsmasq-discuss] DNSMasq and DNS reflection attacks

2013-10-24 Thread Simon Kelley
On 24/10/13 17:46, Brian Rak wrote: On 10/24/2013 12:28 PM, Simon Kelley wrote: On 24/10/13 17:03, Brian Rak wrote: We've recently undertaken a project to clean up our network, and lock down all the open DNS resolvers. As you may know, these are very frequently used for DDOS attacks: http

Re: [Dnsmasq-discuss] SERVFAIL for dnsmasq primary zone (success and failure on the same query)

2013-10-22 Thread Simon Kelley
On 22/10/13 06:25, Christopher LILJENSTOLPE wrote: Greetings, I am using host(1) pointed at the dnsmasq server to query for an A record that is primary on the dnsmasq server (i.e. it's in the hosts file and dhcp served by dnsmasq). I do get a response from dnsmasq, but it also forwards my

Re: [Dnsmasq-discuss] Anyone using authoritative to feed secondary name servers?

2013-10-22 Thread Simon Kelley
On 22/10/13 06:22, dnsm...@cdl.asgaard.org wrote: Greetings, I am trying to stand up dnsmasq at home, and my secondaries don't seem to be able to pull the serial number of the primary from dnsmasq. I'm including the only log messages I am getting, and the snipits from the config… Oct 22

Re: [Dnsmasq-discuss] Anyone using authoritative to feed secondary name servers?

2013-10-22 Thread Simon Kelley
On 22/10/13 06:22, dnsm...@cdl.asgaard.org wrote: Greetings, I am trying to stand up dnsmasq at home, and my secondaries don't seem to be able to pull the serial number of the primary from dnsmasq. I'm including the only log messages I am getting, and the snipits from the config… Oct 22

Re: [Dnsmasq-discuss] SERVFAIL for dnsmasq primary zone (success and failure on the same query)

2013-10-22 Thread Simon Kelley
On 22/10/13 08:08, Christopher LILJENSTOLPE wrote: On 21 Oct 2013, at 23:45, Simon Kelley wrote: On 22/10/13 06:25, Christopher LILJENSTOLPE wrote: Greetings, I am using host(1) pointed at the dnsmasq server to query for an A record that is primary on the dnsmasq server (i.e. it's

Re: [Dnsmasq-discuss] interface+macvlan on same network confuses dnsmasq v2.66rc2

2013-10-22 Thread Simon Kelley
On 21/10/13 20:31, Gui Iribarren wrote: Hello Simon! so, i'm trying to do whacky stuff with dnsmasq v2.66-rc2 on openwrt basically, i have two interfaces that have different ips but on the same netmask, and i want dnsmasq to offer dhcpv4 / RA on only one of them. yet, as dnsmasq config is

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-10-22 Thread Simon Kelley
On 22/10/13 19:09, Nehal J Wani wrote: if [ -n $DNSMASQ_IAID ]; then mac=$DNSMASQ_MAC # IPv6 The existence of the environment variable DNSMASQ_MAC is not mentioned in the man page formed from the recent pull of dnsmaq code. It would be helpful if someone could add it :) The man page

Re: [Dnsmasq-discuss] interface+macvlan on same network confuses dnsmasq v2.66rc2

2013-10-22 Thread Simon Kelley
On 22/10/13 17:17, Gui Iribarren wrote: On 10/22/2013 05:45 PM, Simon Kelley wrote: On 21/10/13 20:31, Gui Iribarren wrote: Hello Simon! My hunch is that this is something to do with ARP. indeed! i'm sorry i didn't provide tcpdumps you're right, instead of the expected DHCPOFFER, all i

Re: [Dnsmasq-discuss] Give ip for client only if mac and hostname are specific one

2013-10-18 Thread Simon Kelley
On 18/10/13 14:18, Beat Meier wrote: Hello I wanto to give a client a specifi ip only if the mac and the hostid or hostname which is logged in dhcp.leases is a speficic one, else give and other ip. Is this possible with dnsmasq and someting like remoteid? Any help Thanks Beat Assigning a

Re: [Dnsmasq-discuss] Give ip for client only if mac and hostname are specific one

2013-10-18 Thread Simon Kelley
interested to know if that works! Cheers, Simon. Thanks!! On 10/18/2013 10:22 AM, Simon Kelley wrote: On 18/10/13 14:18, Beat Meier wrote: Hello I wanto to give a client a specifi ip only if the mac and the hostid or hostname which is logged in dhcp.leases is a speficic one, else give

Re: [Dnsmasq-discuss] Give ip for client only if mac and hostname are specific one

2013-10-18 Thread Simon Kelley
On 18/10/13 15:09, Jim Alles wrote: On Fri, Oct 18, 2013 at 9:38 AM, Simon Kelleysi...@thekelleys.org.uk wrote: First, set a tag if the hostname is correct dhcp-match=set:hostname-ok,12,hostname-to-select then, set a tag if the MAC is correct dhcp-mac=set:mac-ok,00:11:22:33:44:55:66 noob

Re: [Dnsmasq-discuss] bad DHCP host name

2013-10-17 Thread Simon Kelley
On 17/10/13 09:04, Yves Dorfsman wrote: I recently upgraded to Fedora 19, which includes Dnsmasq version 2.66. Dnsmasq now choques on a hostname: dnsmasq: bad DHCP host name at line 165 of /etc/dnsmasq.conf Line 165 is: dhcp-host=00:80:de:ad:be:ef,4040CDN,192.168.0.3 Sure enough, if I add a

[Dnsmasq-discuss] announce: dnsmasq-2.67rc4

2013-10-16 Thread Simon Kelley
So, the initial start of the 2.67 release process looks to have been somewhat premature: a certain amount of water has flowed under the bridge since, so I've spun a new RC, 2.67rc4. As this has changed significantly since rc1, I'd encourage anyone who tested rc1 to also try rc4 and catch any

Re: [Dnsmasq-discuss] weird dnsmasq behaviour

2013-10-15 Thread Simon Kelley
I've just pushed code to the git repo which does a better knob of caching the answer in this case. Cheers, Simon. On 14/10/13 18:58, Yves Dorfsman wrote: Simon repllied off the list. The CNAME was point to an non-existing domain (typo in DNS). On 2013-10-14 11:32, Yves Dorfsman wrote: I

Re: [Dnsmasq-discuss] dumping current dhcp leases without always updating the leasefile curing normal ?

2013-10-15 Thread Simon Kelley
On 14/10/13 23:37, Dave Taht wrote: On Mon, Oct 14, 2013 at 9:42 AM, Simon Kelleysi...@thekelleys.org.uk wrote: On 11/10/13 16:37, Rick Jones wrote: On 10/11/2013 07:16 AM, Simon Kelley wrote: On 11/10/13 01:39, Rick Jones wrote: I am still on the steep learning slope for dnsmasq

Re: [Dnsmasq-discuss] weird dnsmasq behaviour

2013-10-15 Thread Simon Kelley
On 15/10/13 11:32, René van Dorst wrote: Does this fix that the CNAME also append the domain or do I understand CNAME syntax incorrect. My example. # SmartPhone, HTC HD2 dhcp-host=00:23:76:8f:14:79,192.168.10.50,SP-HD2 cname=HD2,SP-HD2 I can lookup HD2 but I can't lookup HD2.EXAMPLE.COM As

Re: [Dnsmasq-discuss] dumping current dhcp leases without always updating the leasefile curing normal ?

2013-10-15 Thread Simon Kelley
On 15/10/13 16:32, Rick Jones wrote: More context about what youre trying to achieve would help. What I would like to be able to do is know (make an informed guess) which of the clients which could have a lease probably have a lease (or probably do not have a lease), but in an environment

Re: [Dnsmasq-discuss] gatway

2013-10-14 Thread Simon Kelley
Kelley [mailto:si...@thekelleys.org.uk] Sent: Friday, October 11, 2013 2:01 AM To: Vladislav Grishenko Cc: dnsmasq-discuss@lists.thekelleys.org.uk Subject: Re: [Dnsmasq-discuss] gatway On 08/10/13 12:09, Vladislav Grishenko wrote: From: Simon Kelley Sent: Tuesday, October 08, 2013 4:20 PM On 06/10/13

Re: [Dnsmasq-discuss] gatway

2013-10-14 Thread Simon Kelley
On 14/10/13 12:03, Vladislav Grishenko wrote: The problem with that is that RDNSS and DNSSL are per interface, not per- prefix. Maybe the calculation should the maximum valid time of any prefix advertised on the interface? It will not work for several different prefixes and serveral different

Re: [Dnsmasq-discuss] dumping current dhcp leases without always updating the leasefile curing normal ?

2013-10-14 Thread Simon Kelley
On 11/10/13 16:37, Rick Jones wrote: On 10/11/2013 07:16 AM, Simon Kelley wrote: On 11/10/13 01:39, Rick Jones wrote: I am still on the steep learning slope for dnsmasq. The manpage lists a -l/--dhcp-leasefile option into which dnsmasq will store lease information. I gather though

Re: [Dnsmasq-discuss] weird dnsmasq behaviour

2013-10-14 Thread Simon Kelley
Could you share with me (off-list) the actual domain that showing this behaviour, so I can try and reproduce it? Cheers, Simon. On 14/10/13 18:32, Yves Dorfsman wrote: I am having a weird problem with dnsmasq. I'm using version 2.65 that comes with Fedora. I have added a CNAME for www

Re: [Dnsmasq-discuss] client-specific prefix possible on tftp-dir?

2013-10-11 Thread Simon Kelley
On 11/10/13 14:31, Oliver Rath wrote: Hi list, is it possible to generate any client-specific prefix (mac, ip, etc.)? I.e.: client with mac 00-01-12-23-34-45 calls for a file dir.cfg, so he should get /opt/tftproot/00-01-12-23-34-45/dir.cfg Any hints? I didnt found any recent in the net.

Re: [Dnsmasq-discuss] gatway

2013-10-10 Thread Simon Kelley
On 08/10/13 12:09, Vladislav Grishenko wrote: From: Simon Kelley Sent: Tuesday, October 08, 2013 4:20 PM On 06/10/13 11:32, Vladislav Grishenko wrote: Hi, RFC4861 says: A router might want to send Router Advertisements without advertising itself as a default router. For instance

Re: [Dnsmasq-discuss] [Cerowrt-devel] Names not resolved on Wireless

2013-10-10 Thread Simon Kelley
Does reverting http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=397542b213ab4071734f1cdf4cc914d87100456f fix the issue? I fear it might. Cheers, Simon. On 10/10/13 15:43, Dave Taht wrote: Dear Dr. Dnsmasq: When cerowrt made the jump between dnsmasq-2.67-test10 and

Re: [Dnsmasq-discuss] dhcp relay

2013-10-10 Thread Simon Kelley
On 10/10/13 15:48, Michael Rack wrote: Hi Simon, is dhcp-helper able to set Opt 5 / 11 * DHCP-Server-Identifier-Override * Subnet-Link-Selection No. and is dhcp-helper bind to interface or port? Interface, yes, port, no. And is dhcp-helper also able to forward DHCPv6 Requests? No,

Re: [Dnsmasq-discuss] [Cerowrt-devel] Names not resolved on Wireless

2013-10-10 Thread Simon Kelley
Taht wrote: On Thu, Oct 10, 2013 at 9:54 AM, Simon Kelley si...@thekelleys.org.uk wrote: Does reverting http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=397542b213ab4071734f1cdf4cc914d87100456f fix the issue? I fear it might. Seems likely. I reverted that patch and put

Re: [Dnsmasq-discuss] gatway

2013-10-10 Thread Simon Kelley
On 08/10/13 12:09, Vladislav Grishenko wrote: From: Simon Kelley Sent: Tuesday, October 08, 2013 4:20 PM On 06/10/13 11:32, Vladislav Grishenko wrote: Hi, RFC4861 says: A router might want to send Router Advertisements without advertising itself as a default router. For instance

Re: [Dnsmasq-discuss] [Cerowrt-devel] Names not resolved on Wireless

2013-10-10 Thread Simon Kelley
Having thought about this more, this patch is necessary http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=8584c502d37627d8abe18213771b5f4f98cb4aa3 and should fix the bug iff 1) Dnsmasq is configured using --except-interface=upstream interface and there are no --interface=interface we

Re: [Dnsmasq-discuss] gatway

2013-10-08 Thread Simon Kelley
frequency: you wouldn't want a router expiring before it could be re-advertised. Cheers, Simon. Best Regards, Vladislav Grishenko -Original Message- From: dnsmasq-discuss-boun...@lists.thekelleys.org.uk [mailto:dnsmasq- discuss-boun...@lists.thekelleys.org.uk] On Behalf Of Simon Kelley

Re: [Dnsmasq-discuss] Clarification of prefix length field in dhcp-range

2013-10-08 Thread Simon Kelley
On 06/10/13 09:28, Kevin Darbyshire-Bryant wrote: On 05/10/2013 22:43, Quintus wrote: Am Sat, 5 Oct 2013 14:21:26 +0100 schrieb Kevin Darbyshire-Bryantke...@darbyshire-bryant.me.uk: Hi All, Hi Kevin, dnsmasq2.67rc3 - possibly odd behaviour, probably I misunderstand :-) I have an interface

Re: [Dnsmasq-discuss] enable-ra problem

2013-10-08 Thread Simon Kelley
On 05/10/13 15:33, Gene Czarcinski wrote: I recently had a problem where dnsmasq caused the system to crash by filling the syslog with messages related to enable-ra. My currently solution is to not use enable-ra and instead use radvd. The messages in syslog are a pair of the form:

Re: [Dnsmasq-discuss] DHCPv6 Prefix delegation

2013-10-08 Thread Simon Kelley
On 07/10/13 22:18, mudru...@spoje.net wrote: Hello, is it possible to do prefix delegation using DHCPv6 in dnsmasq? No. I'd really like to do this. i am using dnsmasq to successfully serve network with 2000+ clients, but now i need to support IPv6 too, but all of these client router devices

Re: [Dnsmasq-discuss] Dealing with a unstable/slow upstream DNS

2013-10-04 Thread Simon Kelley
On 04/10/13 08:56, Joachim Berdal Haga wrote: Hi, I have tried to use dnsmasq on a compute cluster where the DNS is occasionally very slow. I was hoping to avoid the administration of a large host file on every node. But I have not been able to mask the problems completely: 1) I can maintain

Re: [Dnsmasq-discuss] question about dns behavior

2013-10-04 Thread Simon Kelley
On 03/10/13 17:55, Craig Yoshioka wrote: What does dnsmasq do in the event that it has a cached DNS entry that may be expired but the upstream DNS host isn't reachable? Does it give up and return the cached but expired entry? (That's how I'm hoping it behaves). No, it never returns

Re: [Dnsmasq-discuss] Questions about Adding IPv6 External DNS Servers to dnsmasq

2013-10-04 Thread Simon Kelley
On 04/10/13 12:11, Patrick Dickey wrote: On Fri, 2013-10-04 at 11:33 +0100, dnsmasq-discuss-requ...@lists.thekelleys.org.uk wrote: Re: Questions about Adding IPv6 External DNS Servers to dnsmasq One more quick question. If my local network uses both IPv4 and IPv6 addresses, and

Re: [Dnsmasq-discuss] Dealing with a unstable/slow upstream DNS

2013-10-04 Thread Simon Kelley
On 04/10/13 12:23, Joachim Berdal Haga wrote: On 4 October 2013 12:32, Simon Kelleysi...@thekelleys.org.uk wrote: On 04/10/13 08:56, Joachim Berdal Haga wrote: Is it possible to instruct dnsmasq to not forward requests when the A record is deduced from /etc/hosts (or vice versa)? No,

Re: [Dnsmasq-discuss] Questions about Adding IPv6 External DNS Servers to dnsmasq

2013-10-03 Thread Simon Kelley
On 02/10/13 23:07, Patrick Dickey wrote: Hello Simon, Thanks for your quick response. Here's my issue, if you will. When I go to www.test-ipv6.com and run their tests, the last one fails, because if I ever shut off IPv4 on my network, I don't have IPv6 DNS Servers listed. Which is what I'm

Re: [Dnsmasq-discuss] Announce: dnsmasq-2.67rc1

2013-10-03 Thread Simon Kelley
On 03/10/13 09:34, Tomas Hozza wrote: - Original Message - Dnsmasq 2.67rc1 is now available at: http://www.thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.67rc1.tar.gz Hi. Great news Simon. I noticed there is already rc2. Do you have any estimation when could be a stable

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-10-03 Thread Simon Kelley
On 03/10/13 14:05, Nehal J Wani wrote: Yes. I just added contrib/mactable/macscript to the git repo, which is your previous script slightly less elegantly modified by me for this circumstance. I also put back the make new file then atomically rename behaviour since that means anything using this

Re: [Dnsmasq-discuss] How to see how addresses are resolved - i.e. a sort of DNS traceroute?

2013-10-03 Thread Simon Kelley
On 03/10/13 14:25, Chris Green wrote: I want to check how addresses are resolved on my LAN, is there an easy[ish] way of finding where DNS requests are sent and where they are finally resolved (or at least where they leave my LAN)? --log-queries With the latest fashion of using dnsmasq on

Re: [Dnsmasq-discuss] Problem when system has both hardwired and wireless connections

2013-10-03 Thread Simon Kelley
On 03/10/13 14:38, Chris Green wrote: I have just noticed that my system running dnsmasq keeps repeating this sequence in syslog:- Oct 3 14:33:47 revo dhclient: DHCPREQUEST of 192.168.1.148 on wlan0 to 192.168.1.2 port 67 Oct 3 14:33:47 revo dnsmasq-dhcp[3989]: 1192620333 available

Re: [Dnsmasq-discuss] Problem when system has both hardwired and wireless connections

2013-10-03 Thread Simon Kelley
On 03/10/13 15:11, Chris Green wrote: On Thu, Oct 03, 2013 at 02:58:23PM +0100, Simon Kelley wrote: On 03/10/13 14:38, Chris Green wrote: I have just noticed that my system running dnsmasq keeps repeating this sequence in syslog:- Oct 3 14:33:47 revo dhclient: DHCPREQUEST

Re: [Dnsmasq-discuss] Why is dnsmasq reading /var/run/dnsmasq/resolv.conf twice when it starts up?

2013-10-03 Thread Simon Kelley
On 03/10/13 16:29, Chris Green wrote: When I start dnsmasq I see the following in syslog:- Oct 3 16:09:03 revo dnsmasq[2819]: started, version 2.63rc6 cachesize 150 Oct 3 16:09:03 revo dnsmasq[2819]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 Oct 3 16:09:03 revo

Re: [Dnsmasq-discuss] gatway

2013-10-02 Thread Simon Kelley
On 02/10/13 02:57, Moritz Warning wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, is it possible to tell dnsmasq not to announce itself as router? The problem is that connected computers try to use the router as gateway. The router is not the gateway of the network, but some other

Re: [Dnsmasq-discuss] Announce: dnsmasq-2.67rc1

2013-10-02 Thread Simon Kelley
On 02/10/13 10:24, Vladislav Grishenko wrote: Hi Simon, Remove the rule for constructed DHCP ranges that the local address must be either the first or last address in the range. This was originally to avoid SLAAC addresses, but we now

Re: [Dnsmasq-discuss] Can dnsmasq do this?

2013-10-02 Thread Simon Kelley
On 30/09/13 16:28, Christopher Murray wrote: I have a requirement to direct certain DNS queries to certain servers. I'm aware I can configure rules to do this, e.g. domain X - server Y. Note I also need reverse (PTR) queries to work and I know dnsmasq also supports that. The problems is (don't

Re: [Dnsmasq-discuss] immediate NXDOMAIN for some requests

2013-10-02 Thread Simon Kelley
On 27/09/13 07:16, Paul Wise wrote: Hi all, We are using dnsmasq as a DNS cache and would like dnsmasq to never forward requests for _kerberos-master._tcp.* and _kerberos-master._udb.* SRV records to the upstream nameservers. At the sites where we would like to do this, these domains always

Re: [Dnsmasq-discuss] gatway

2013-10-02 Thread Simon Kelley
you have, but if it does, I'd consider supporting the modifications detailed there, somehow. Cheers, Simon. On 10/02/2013 11:44 AM, Simon Kelley wrote: On 02/10/13 02:57, Moritz Warning wrote: Hi, is it possible to tell dnsmasq not to announce itself as router? The problem is that connected

Re: [Dnsmasq-discuss] FTBFS version dnsmasq-2.67test17

2013-10-01 Thread Simon Kelley
On 01/10/13 08:53, Shantanu Gadgil wrote: Compile options: make CC=gcc COPTS=-DNO_IPV6 -DNO_IPSET Thanks. Fix pushed. I really need to set up regression tests for the combinations. Simon. ___ Dnsmasq-discuss mailing list

[Dnsmasq-discuss] Announce: dnsmasq-2.67rc1

2013-10-01 Thread Simon Kelley
Dnsmasq 2.67rc1 is now available at: http://www.thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.67rc1.tar.gz Please test is you can, and translate if can Changelog/release-notes below. Cheers, Simon. version 2.67 Fix crash if upstream server returns SERVFAIL when

Re: [Dnsmasq-discuss] Questions about adding IPv6 external DNS servers to dnsmasq

2013-10-01 Thread Simon Kelley
On 01/10/13 19:26, Patrick Dickey wrote: Hello there, I'm running a dual-stack IPv4/IPv6 network, where my IPv6 address is handled through a tunnel service (TunnelBroker). My router handles the IPv6 DHCP, but doesn't hand out the DNS server information. I have an Amahi Server running dnsmasq

Re: [Dnsmasq-discuss] Renewing pool addresses inspite of static configuration?

2013-09-29 Thread Simon Kelley
On 28/09/13 16:16, Christian Peter wrote: unfortunately, the machines do not change their IP. the DHCP clients send DHCPREQUESTs for their previous addresses which are ACKed by the server. [...] is this a known bug/feature of dnsmasq? The opposite, it should reply to the DHCPREQUEST with a

Re: [Dnsmasq-discuss] Renewing pool addresses inspite of static configuration?

2013-09-27 Thread Simon Kelley
On 26/09/13 12:53, Christian Peter wrote: hi, we have a problem with machines keeping their old pool IPs and ignoring their newer static IP configuration: there's a bunch of machines that got their initial IP address from a DHCP pool range. later on, i configured other, static addresses for

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-27 Thread Simon Kelley
On 25/09/13 22:48, Vladislav Grishenko wrote: From: Simon Kelley [mailto:si...@thekelleys.org.uk] I understand that leasefile format is preserved due legacy reasons to allow dnsmasq precompiled updates. What if just to add LEASEFILE_LEGACY_FORMAT define to control the subj format? Ppl who able

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-27 Thread Simon Kelley
On 27/09/13 14:53, Lonnie Abelbeck wrote: On Sep 27, 2013, at 6:51 AM, Simon Kelley wrote: There's one change which needs to be made to the script. When dnsmasq is restarted, it won't know the MAC addresses for DHCPv6 (because they're not in the leasefile). So at start-up it will execute

Re: [Dnsmasq-discuss] ??????the --addn-hosts doesn't support reload when the host file changed

2013-09-25 Thread Simon Kelley
Are you sending SIGHUP to dnsmasq to tell it to re-read the configuration? Cheers, Simon. On 25/09/13 08:52, wrote: -- -- ??: ;78369...@qq.com; : 2013??9??25??(??) 1:50 ??:

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-25 Thread Simon Kelley
On 24/09/13 19:06, Vladislav Grishenko wrote: From: Simon Kelley [mailto:si...@thekelleys.org.uk] Sent: Tuesday, September 24, 2013 9:16 PM On 24/09/13 15:31, Vladislav Grishenko wrote: Hi Simon, However, if you're interested in the MAC addresses of clients, the very latest dnsmasq code

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-25 Thread Simon Kelley
On 25/09/13 21:52, Lonnie Abelbeck wrote: Hi Simon, May I be so bold to offer a couple tweaks to your script... :-) Of course, I make no claims to shell scripting expertise, and what I posted was very much proof-of-concept anyway. Add error checking as required. 1) Use 'sed' -i'

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Simon Kelley
On 24/09/13 10:48, Nehal J Wani wrote: On Tue, Sep 24, 2013 at 1:15 AM, Simon Kelleysi...@thekelleys.org.uk wrote: On 23/09/13 19:12, Nehal J Wani wrote: If I am not wrong, there are 5 fields in a dnsmasq/network-name.leases file: (i) Expiry time (ii) MAC Address (iii) IP Address (iv)

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Simon Kelley
On 24/09/13 13:01, Vladislav Grishenko wrote: Out of the three types: DUID-LLT, DUID-EN and DUID-LL, which one is used by dnsmasq? I am asking because I want to confirm whether the MAC address of the network interface is always a substring of the client DUID or not. 1. DUID-EN, if

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-24 Thread Simon Kelley
On 24/09/13 15:31, Vladislav Grishenko wrote: Hi Simon, However, if you're interested in the MAC addresses of clients, the very latest dnsmasq code can determine that in most cases. The MAC address is not stored in the leases file, but it can be used to key configurations to particular MAC

Re: [Dnsmasq-discuss] Build failure: dnsmasq-2.67test15.tar.gz

2013-09-23 Thread Simon Kelley
On 23/09/13 16:57, Shantanu Gadgil wrote: Hi, There are build failures using the following combination of COPTS: # make CC=gcc COPTS=-DNO_IPV6 -DNO_IPSET Thanks. Fixes for this and a few other build failures is in 2.67test16, out now. Cheers, Simon.

Re: [Dnsmasq-discuss] Some question about the dhcp feature of dnsmasq v2.51

2013-09-23 Thread Simon Kelley
On 23/09/13 10:33, Haifeng wrote: Hi everyone, We are going to design an android phone for our customer. As a routine, the customer request us to fill a compliance matrix to check against the requirement. There are some items related with dhcp server, which I’m not sure about . I know Google

Re: [Dnsmasq-discuss] Reg: Info related to leases file

2013-09-23 Thread Simon Kelley
On 23/09/13 19:12, Nehal J Wani wrote: If I am not wrong, there are 5 fields in a dnsmasq/network-name.leases file: (i) Expiry time (ii) MAC Address (iii) IP Address (iv) Hostname (v) Client ID Q1: Is the above order fixed? Q2: Which values from above can be NULL? (I know that leases contains

Re: [Dnsmasq-discuss] high availability options

2013-09-17 Thread Simon Kelley
On 16/09/13 17:55, Craig Yoshioka wrote: Hi all, I know it's been asked before, but just thought I'd get an update on high availability options in dnsmasq. My preference would be to let a backend db handle synchronization and just run two instances of dnsmasq pointed to the same backend; one

Re: [Dnsmasq-discuss] No IPv6 router advertisements for subnets other than /64?

2013-09-16 Thread Simon Kelley
On 16/09/13 10:18, Quintus wrote: Hi there, I’m trying to divide my home network into useful IPv6 subnets. I’ve got a /64 network from SiXxs and wanted to use a /80 for cable clients and another /80 for wifi clients (with the other /80s staying unused for now). Here’s what I’ve tried for cable:

Re: [Dnsmasq-discuss] No IPv6 router advertisements for subnets other than /64?

2013-09-16 Thread Simon Kelley
On 16/09/13 11:16, Roy Marples wrote: On 16/09/2013 10:44, Simon Kelley wrote: SLAAC works by generating addresses by composing the prefix and the so-called Interface Identifier. RFC-4291 says: For all unicast addresses, except those that start with the binary value 000, Interface IDs

Re: [Dnsmasq-discuss] No IPv6 router advertisements for subnets other than /64?

2013-09-16 Thread Simon Kelley
On 16/09/13 11:49, Roy Marples wrote: On 16/09/2013 11:44, Simon Kelley wrote: That links seems to refer entirely to DHCPv6. Dnsmasq will allow non-64 prefix lengths for DHCPv6. What we're talking about here is rfc4861 router advertisements and I'm not sure how the discussion you reference

Re: [Dnsmasq-discuss] Problem Reading from /etc/dnsmasq.conf on OSX 10.8

2013-09-13 Thread Simon Kelley
The default loaction of the configuration file may be somewhere other than /etc/dnsmasq.conf on non-Linux platforms. dnsmasq -w will tell you where it's expected. Usage: dnsmasq [options] Valid options are: . . . -C, --conf-file=path Specify configuration file (defaults to

Re: [Dnsmasq-discuss] DCHP server assign from the beginning IP addresses over and over. (no icmp's)

2013-09-13 Thread Simon Kelley
On 13/09/13 21:32, Ivan Pantovic wrote: Hi, i can't find anyone with a similar problem yet i have experienced quite unusual behavior of dnsmasq. In simple words it reassigns the same IP to different MAC addresses even if it has them in the lease file and issues no icmp/ping requests to the

Re: [Dnsmasq-discuss] Fwd: How to return NXDomain?

2013-09-11 Thread Simon Kelley
On 11/09/13 10:33, Maciej Soltysiak wrote: Hi everyone, To return a specific address for an IN A query we can do this: address=/double-click.net/127.0.0.1 Is it currently possible to return NXDOMAIN with similar syntax, e.g.: address=/double-click.net/nxdomain Yes, you can tell dnsmasq that

Re: [Dnsmasq-discuss] Dnsmasq dns/dhcp with multiple subnet - lease file issue

2013-09-09 Thread Simon Kelley
On 08/09/13 14:09, Robert Tsai wrote: Hi, I am having issues with dnsmasq with dns/dhcp with multple subnets. I have two subnets , one named app and the other storage. Both subnet clients get ips through dhcp but only the app subnet client's lease gets propagated to /var/lib/dnsmasq.leases.

Re: [Dnsmasq-discuss] Dnsmasq dns/dhcp with multiple subnet - lease file issue

2013-09-09 Thread Simon Kelley
On 09/09/13 14:07, Robert Tsai wrote: Hi Simon, Thanks for the reply! Sorry I didn't clarify, each subnet is on its own nic on the dnsmasq server. The storage subnet is an isolate non-routed network. So the storage subnet clients do get a ip from dhcp but the mac, lease, and hostname

Re: [Dnsmasq-discuss] Serving multiple addresses via DHCPv6

2013-09-08 Thread Simon Kelley
On 08/09/13 15:08, aloys...@eclipso.eu wrote: From: Simon Kelley si...@thekelleys.org.uk Best of luck. The DHCPv6 protocol allows this, in theory, but how it should work in practice is not really settled, in my experience. Do you have a DHCPv6 client that will do the work? All the clients

Re: [Dnsmasq-discuss] Serving multiple addresses via DHCPv6

2013-09-07 Thread Simon Kelley
On 07/09/13 18:47, aloys...@eclipso.eu wrote: Hello, I'm kind of new to IPv6 and was wondering if it would be possible for dnsmasq to assign both a static (via duid) ULA address and a random one from a global prefix. Also it would be preferrable if the latter could come from a /68 subnet or

Re: [Dnsmasq-discuss] dnsmasq crashing when serving multiple prefixes

2013-09-04 Thread Simon Kelley
On 04/09/13 18:16, Kaspar Schleiser wrote: Hi, we're experiencing a crash in dnsmasq 2.66 (also newest git) using it as DHCPv6 server serving multiple prefixes. This is on a slightly changed OpenWrt box with ARM/kirkwood architecture and uClibc. Linux router.ip 3.8.13 #42 Tue Sep 3 13:53:54

Re: [Dnsmasq-discuss] Multiple subnets without IP aliases

2013-08-22 Thread Simon Kelley
On 21/08/13 16:34, Brian Rak wrote: I have a layer 2 vlan (all hosts in the same broadcast domain), that has multiple subnets active on it. For example: interface ve 906 ip address 10.0.5.113 255.255.255.248 ip address 10.0.6.105 255.255.255.248 I have a machine with this configuration:

Re: [Dnsmasq-discuss] Using dnsmasq for multiple subnets

2013-08-20 Thread Simon Kelley
On 07/08/13 18:24, David Cooper wrote: Hi all! Scratching my head here on why this isn't working. I believe I am somehow not understanding how the set and tag system works. Hopefully someone can point me in the right direction. Recently I started using a Network Access Control (NAC) system.

Re: [Dnsmasq-discuss] sometimes dhcp-script does not trigger on lease renewal

2013-08-20 Thread Simon Kelley
On 08/08/13 16:09, Stefan wrote: Am 07.08.2013 15:30, schrieb Simon Kelley: OK, you're NOT using broken-RTC mode. Does you machine have an RTC or some way to make sure the time is always correct? ntpd is running... Can you reproduce this problem easily? More or less. Problem occurs only

Re: [Dnsmasq-discuss] SO_REUSEPORT and SO_REUSEADDR

2013-08-14 Thread Simon Kelley
On 14/08/13 12:43, Tomas Hozza wrote: Hi. In Fedora I had recently a couple of Bugs because of dnsmasq conflicting with ISC DHCP because of dnsmasq binding to ANY_ADDR for DHCPv4 socket. dnsmasq uses SO_REUSEPORT if the system supports it instead of SO_REUSEADDR. Since ISC DHCP uses always

Re: [Dnsmasq-discuss] Using DUID + IAID for identifying nic with dhcp-host

2013-08-13 Thread Simon Kelley
On 13/08/13 17:18, Immanuel Klinkenberg wrote: Hello, I successfully configured my openWRT Router for using IPV6 over sixxs.net, with stateful (I think it is) dhcpv6 (dnsmasq). Almost everything works like a charm. The problem is, that I only can assign one IP statically to a computer, because

Re: [Dnsmasq-discuss] Wildcard and round-robin DNS in one?

2013-08-13 Thread Simon Kelley
On 13/08/13 18:53, Joe Pranevich wrote: I am presently using dnsmasq for a load testing project and we have a challenging use-case. We're using DNSMasq on our testing servers to ensure that we are hitting the new systems for access, but we now need to test it behind round-robin DNS. To make this

Re: [Dnsmasq-discuss] dhcp-helper questions

2013-08-09 Thread Simon Kelley
On 09/08/13 08:50, Vasiliy Tolstov wrote: Anybody knowns? Or i need write patch or something else for dhcp-helper to provide not only one interface for listen and source address for dhcp questions.. ? 2013/8/8 Vasiliy Tolstovv.tols...@selfip.ru: Hello. I'm forward dhcp broadcast messages to

<    7   8   9   10   11   12   13   14   15   16   >