Re: [Dnsmasq-discuss] dnsmasq acts as the DHCP server for selected nodes overriding the existing DHCP server on the same LAN?
On Sat, Nov 10, 2012 at 06:25:24PM -0800, Zack Perry wrote: I am trying to set up a small lab in my home. Like many homes, I have a regular DSL service which comes with a 2Wire 3600HGV router, which acts also as a DHCP server. Since Can't you simply turn off the DHCP server in the 2-wire router? This is what I have done for my home LAN with dnsmasq. -- Chris Green ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Does anyone know how dnsmasq works on a 12.04 (or 12.10) Ubuntu installation nowadays?
In Ubuntu 12.04 and onwards dnsmasq is installed 'by the system' as a local DNS cache. A ps shows:- nobody1273 1154 0 Nov10 ?00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address=127.0.0.1 --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec I currently run dnsmasq on a separate 'server' machine on my LAN but that server is steadily becoming more redundant and I'd like to move dnsmasq off it to my desktop machine (which is also left turned on all the time and is the web server anyway). Does anyone here know how to [re]configure dnsmasq on my desktop machine so it will use my configuration and also not get started automatically by Network Manager (I think) but by the normal direct method from /etc/init.d? At present apt shows 'dnsmasq-base' as being installed but 'dnsmasq' isn't installed. Could it be that all that I need to do is uninstall 'dnsmasq-base' and install 'dnsmasq'? -- Chris Green ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] Setting netmask via /etc/ethers
We use /etc/ethers to set IP addresses dynamically. Is there a way to set the netmask along with the IP address? If not, I would like to request an upgrade. Thanks, Eldon ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq for road warriors
Try: http://roy.marples.name/projects/openresolv Nothing wrong with dhcp hooks. Setup things as advanced as you need. Dnsmasq regularly sends *all* requests to *all* nameservers and picks the fastest responding. So it will choose a faster responding server where there are several options Ed W On 10/11/2012 15:54, /dev/rob0 wrote: Seems to me that dnsmasq is a better nscd replacement, and it has a place in mobile computing. # we use this dnsmasq as this system's own resolver no-resolv # I'm not sure if both of these are needed; we only want DNS and # only on loopback; we serve only this machine. no-dhcp-interface=lo listen-address=127.0.0.1 user=dnsmasq group=dnsmasq # When connected to VPN, these names/addresses resolve. When not # connected, they don't, but that's okay, because we can't get to # them anyway. server=/rob0.vpn/192.168.6.1 server=/6.168.192.in-addr.arpa/192.168.6.1 # upstream: Google Public DNS server=8.8.4.4 The problem here is when you might not want to use 8.8.4.4, such as when you're at a dnsmasq site where internal DNS is working. The solution, I guess, would be a hook in the DHCP client to write the DHCP-obtained nameserver[s] to a dnsmasq.d/file to include, and signal or restart dnsmasq. Problem with that solution: will dnsmasq.d get crufty, or do we just reuse the same file? Also, what if one of the mobile connections is not handled by DHCP, such as some cellular data connections? Speaking of cruft, maybe that's not a bad thing? What will dnsmasq do with multiple upstream servers? server=192.168.40.1 server=192.168.0.1 server=192.168.1.1 server=8.8.4.4 When we're at a site where one of those is our router, that should respond much faster than 8.8.4.4 can. OTOH, it could cause intermittent errors with local names; 8.8.4.4 is not going to know minipax.rob0.lan. Can we priortise upstream servers? --all-servers implies that this can be done somehow, but I don't know how ... is it merely the order in which they are listed in the config (or on the command line)? When not using --all-servers, how does dnsmasq decide when to try a different one, and which one will be tried in that case? Random selection, rotating sequential, fixed top-down priority? Ideally we'd want something which you set up one time and is mostly done; something that should work at regular sites you frequent, as well as most public hotspots. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if /dev/rob0 is in the Subject: ___ 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
Re: [Dnsmasq-discuss] DNS mapping for a specific IP
Or, if you can spare another IP to run the second dnsmasq instance on, you could just assign that DNS server IP to the photo frame. Jima On 2012-11-10 16:47, richardvo...@gmail.com wrote: You could use iptables to redirect DNS queries from that photo frame to an alternate dnsmasq instance, via port masquerade. On Sat, Nov 10, 2012 at 9:58 AM, Karina Goyal karinago...@yahoo.com mailto:karinago...@yahoo.com wrote: I need to do following DNS mapping in my router for all requests coming from a specific computer/IP- 192.168.2.2amazonaws.com http://amazonaws.com This mapping should not be done for requests coming from other computers in my network. Currently I have defined it in my router (DDWRT) using dnsmasq but it is applicable for all computers in my network. The computer that I want to restrict this mapping for is a wireless photo frame. I don't have access to its /etc/hosts file. That's why I need to do it at the router level. Is this possible in standard dnsmasq? If not, is it possible to do it with some small code change in dnsmasq? Thanks, Karina. ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk mailto: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 mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq for road warriors
On 10/11/2012 15:54, /dev/rob0 wrote: Seems to me that dnsmasq is a better nscd replacement, and it has a place in mobile computing. # we use this dnsmasq as this system's own resolver no-resolv On Sat, Nov 10, 2012 at 05:46:10PM -0600, richardvo...@gmail.com wrote: no-resolv is doing more harm than good. dnsmasq is smart enough to ignore 127.0.0.1 in /etc/resolv.conf And it will automatically pick up DHCP-assigned DNS servers which written there. But you don't understand. The point of dnsmasq on a laptop is to serve ONLY that machine and its local processes. /etc/resolv.conf must contain ONLY nameserver 127.0.0.1. If there are other nameservers listed, the system resolver will be contacting them; possibly getting different results, and ... well, this discussion would not be relevant to the dnsmasq list. Some DHCP clients have an option to update a different file with the DNS servers, in that case use dnsmasq's resolv-file option. Either this, or DHCP hooks as Ed mentioned, is the way to go. Actually DHCP hooks are needed in either case, as dnsmasq must be signalled to reread its configuration (I guess that means stop and restart, which is sad because it loses the cache.) On Sun, Nov 11, 2012 at 08:34:38PM +, Ed W wrote: Try: http://roy.marples.name/projects/openresolv Eww, no. That's a kludge, and again, it totally misses the point of this dnsmasq instance exclusively providing DNS to local processes. This was brought to the dnsmasq mailing list for a reason: I am indeed using dnsmasq. Speaking of cruft, maybe that's not a bad thing? What will dnsmasq do with multiple upstream servers? server=192.168.40.1 server=192.168.0.1 server=192.168.1.1 server=8.8.4.4 When we're at a site where one of those is our router, that should respond much faster than 8.8.4.4 can. OTOH, it could cause intermittent errors with local names; 8.8.4.4 is not going to know minipax.rob0.lan. Can we priortise upstream servers? --all-servers implies that this can be done somehow, but I don't know how ... is it merely the order in which they are listed in the config (or on the command line)? When not using --all-servers, how does dnsmasq decide when to try a different one, and which one will be tried in that case? Random selection, rotating sequential, fixed top-down priority? Nothing wrong with dhcp hooks. Setup things as advanced as you need. Dnsmasq regularly sends *all* requests to *all* nameservers and picks the fastest responding. So it will choose a faster responding server where there are several options This goes against what the manual says. See --all-servers in the man page. What you describe is only applicable when --all-servers was specified. I don't think I would want that. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if /dev/rob0 is in the Subject: ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss