Re: [Dnsmasq-discuss] Dnsmaq giving default gateway address as dns server on DHCP offer
dnsmasq is capable of being the first DNS for clients and determining which requests should go to the AD controller and which to external DNS. Or, the configuration you describe is also possible. Where Ravi appears to have gone wrong is in thinking that /etc/resolv.conf addresses would be sent to client. dnsmasq never does that. On Sat, Aug 5, 2017 at 12:35 PM, wrote: > On 08/05/2017 11:43 AM, /dev/rob0 wrote: > >> Yes, there is an option you can use in dnsmasq.conf to change the >> nameserver[s] given to DHCP clients, but why do you want that? See the >> dnsmasq(8) manual for details. >> > > one possibility is on an AD network where all device DNS lookups go > through the AD controller... the AD controller then talks to dnsmasq > running on the perimeter firewall and handles the lookups to outside DNS > servers... everything inside the AD network being restricted to the AD > network so no individual devices can make lookups outside... they can only > talk to the AD controller for DNS and the AD controller can only talk to > dnsmasq for DNS... the AD controller is not the perimeter device for > traffic headed outside of the AD network... the perimeter firewall running > dnsmasq is, though... > > > -- > NOTE: No off-list assistance is given without prior approval. >*Please keep mailing list traffic on the list unless* >*a signed and pre-paid contract is in effect with us.* > > > ___ > 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] Multiple subnets on a single broadcast domain
Hi, We have a use-case, where there maybe more than one subnet in a broadcast domain and we want one DHCP server to serve directly connected clients in these subnets. Currently, dnsmasq requires having one IP address from each subnet configured on DHCP server, otherwise it ignores DHCP requests from hosts, which are configured with static IPs from other "foreign" subnets. We have a patch, which allows "binding" "foreign" subnets in dnsmasq configuration file to an interface (that is to a broadcast domain), so dnsmasq will allocate IPs from these subnets as well even if it doesn't have an IP in them. We can submit the patch for upstream dnsmasq adoption, if the community is interested in such use-case. Regards, Ignat ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Dnsmaq giving default gateway address as dns server on DHCP offer
On 08/05/2017 11:43 AM, /dev/rob0 wrote: Yes, there is an option you can use in dnsmasq.conf to change the nameserver[s] given to DHCP clients, but why do you want that? See the dnsmasq(8) manual for details. one possibility is on an AD network where all device DNS lookups go through the AD controller... the AD controller then talks to dnsmasq running on the perimeter firewall and handles the lookups to outside DNS servers... everything inside the AD network being restricted to the AD network so no individual devices can make lookups outside... they can only talk to the AD controller for DNS and the AD controller can only talk to dnsmasq for DNS... the AD controller is not the perimeter device for traffic headed outside of the AD network... the perimeter firewall running dnsmasq is, though... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.* ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] Dnsmaq giving default gateway address as dns server on DHCP offer
On Fri, Aug 04, 2017 at 09:53:52PM -0700, Anoop Ravi wrote: > I am using dnsmasq as dns and dhcp server on my device. Somehow > dnsmasq is not giving correct dns server address to my clients. > Instead it is giving default gateway ip. I have correct dns servers > listed in resolv.conf and my dnsmasq.conf is pointing to correct > resolv file using "resolv-file" parameter. I am running dnsmasq as > below. > > dnsmasq -u nobody -q --dhcp-authoritative -C /var/dnsmasq.conf > > From the logs,I could see that it is reading resolv.conf > > reading /etc/resolv.conf > using nameserver xx.xx.xx.xx#53 > using nameserver xx.xx.xx.xx#53 > using nameserver xx.xx.xx.xx#53 > > While client connects, I can see that dnsmasq offering default > gateway address as dns-server ip. > > sent size: 4 option: 6 dns-server x.x.x.x > > Is there anything wrong in my parameters? why is not giving > correct dns servers? Nothing in your post indicates why you think that's incorrect; dnsmasq IS a DNS server. Typically that's what you want, for all local DHCP clients to use dnsmasq as DNS server. The point being: to have local name resolution and to have one central cache for external names. Yes, there is an option you can use in dnsmasq.conf to change the nameserver[s] given to DHCP clients, but why do you want that? See the dnsmasq(8) manual for details. -- http://rob0.nodns4.us/ 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] [ HELP ] Dnsmaq giving default gateway address as dns server on DHCP offer
> Hi, > > I am using dnsmasq as dns and dhcp server on my device. Somehow dnsmasq is > not giving correct dns server address to my clients. Instead it is giving > default gateway ip. I have correct dns servers listed in resolv.conf and my > dnsmasq.conf is pointing to correct resolv file using "resolv-file" > parameter. I am running dnsmasq as below. > > dnsmasq -u nobody -q --dhcp-authoritative -C /var/dnsmasq.conf > > From the logs,I could see that it is reading resolv.conf > > reading /etc/resolv.conf > using nameserver xx.xx.xx.xx#53 > using nameserver xx.xx.xx.xx#53 > using nameserver xx.xx.xx.xx#53 > > While client connects, I can see that dnsmasq offering default gateway > address as dns-server ip. > > sent size: 4 option: 6 dns-server x.x.x.x > > Is there anything wrong in my parameters? why is not giving correct dns > servers? > Thanks Anoop ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss