Re: [Dnsmasq-discuss] dhcp-host match based on set of tags
Hi Peter, We discussed a solution and Simon said it was good but it has not yet been implemented. https://www.mail-archive.com/dnsmasq-discuss%40lists.thekelleys.org.uk/msg09297.html Simon, with 2.75 out the door already, is this something we could revisit? Thanks, -- Jason Kincl HPC Systems Administrator National Center for Computational Sciences Oak Ridge National Laboratory From: Dnsmasq-discuss on behalf of Peter Holmberg Date: Friday, August 21, 2015 at 3:51 AM To: "dnsmasq-discuss@lists.thekelleys.org.uk" Subject: Re: [Dnsmasq-discuss] dhcp-host match based on set of tags Hi! I know this is an old post but i try to solve a similar problem as this. And wonder if you solved it? And in that case how? /Peter ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] strict-order backwards in Debian 7 dnsmasq 2.72-3 (vs dnsmasq 2.59)?
On Tue, Sep 1, 2015 at 11:13 AM, Albert ARIBAUDwrote: > Hi Tim, > > Le Tue, 1 Sep 2015 10:00:36 -0700, Tim Wright a > écrit : > > > Hello, > > I apologize if this is something known, or if I'm doing something silly, > > but I switched over from Ubuntu 12.04LTS (dnsmasq 2.59) to Debian 7 > stable > > (dnsmasq 2.72-3) and I'm seeing something odd. I have "strict order" > > enabled, and many lines in /etc/dnsmasq.conf of the form: > > > > server=/example.domain.com/ > > server=/example.domain.com/ > > server=/example.domain.com/ > > server=/example.domain.com/ > > server=/example.domain.com/8.8.8.8 > > > > The reason for this is that there are a number of names where " > > example.domain.com" returns a different, internal IP address when > connected > > to the corporate network (vpn), but I want to fail back to the external > if > > the vpn is down etc. > > > > In version 2.59, this worked perfectly. In the newer version, it appears > to > > be completely backwards. I reversed the entire config file so that > entries > > are now of the form: > > > > server=/example.domain.com/8.8.8.8 > > server=/example.domain.com/ > > server=/example.domain.com/ > > server=/example.domain.com/ > > server=/example.domain.com/ > > > > but I was curious if this is expected behaviour or whether it would be > > considered a bug. > > Hmm... From the dnsmasq man page, --strict-order is about following the > order in which upstream DNS servers appear in /etc/resolv.conf, not in > /etc/dnsmasq.conf. > Hi Albert, I'm not sure that it's that clear. At least for 2.73, the man page is conflicted: -o, --strict-order By default, dnsmasq will send queries to any of the upstream servers it knows about and tries to favour servers that are known to be up. Setting this flag forces dnsmasq to try each query with each server strictly in the order they appear in /etc/resolv.conf The first part clearly states that by default it will query "any of the upstream servers it knows about". If you use lines of the form "server=" in the config file, that's a lot more than what you might find in /etc/resolv.conf. Furthermore, that certainly isn't how it works. With "strict-order" enabled, it certainly applies to servers defined in the config file. The issue is that at some point, it applied in forward order, and now, it appears to apply in reverse order. Looking at the code, servers from /etc/resolv.conf are not treated especially compared to those from the config file - they all end up in the daemon->servers list. Regards, Tim ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] try to split dcp ranges into known and unknown devices
Hi, i'm trying to split my devices into specific ip ranges and give all unknown devices another range. But it doesn't work like i expected. devices_unknown.conf: - dhcp-option=tag:unknown_gw,3,10.0.255.1 dhcp-range=net:#known,set:unknown_gw,10.0.255.10,10.0.255.250,5m - devices_ipmi.conf: - dhcp-mac=ipmi,0c:c4:7a:*:*:* dhcp-mac=ipmi,00:25:90:*:*:* dhcp-option=tag:ipmi_gw,3,10.0.32.1 # set dhcp range dhcp-range=net:ipmi,set:ipmi_gw,10.0.32.10,10.0.47.250,60m - devices_server.conf: - dhcp-mac=server,0c:aa:aa:aa:*:* dhcp-option=tag:server_gw,3,10.0.16.1 dhcp-range=net:server,set:server_gw,10.0.16.10,10.0.31.250,60m - But when i install new ipmi or server devices it still get's an IP from the unknown range. Stefan ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
[Dnsmasq-discuss] different name resolution per host
I am trying to set up a single host on my network that would have different name resolution for a particular domain from the rest of the hosts. As an example, the name www.example.com would normally be handed over to, let's say, google's servers for name resolution. but for one host on my network I want it to always resolve to a specific address, so If request comes in from client a.my.net, return 1.2.3.4 If request comes in from any other client on a.my.net, return the answer that google's servers provide The problem I am trying to solve is that the domain names I am dealing with resolve to multiple IPs, and this particular box needs to connect to one specific server, not round-robin. And it's an appliance and I can't change any of the network parameters; everything has to be handled through the DNS server. Does this make any sense at all? ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss