[Dnsmasq-discuss] Can I specify the DNS address returned by DHCP?

Alex Morris dnsmasq-discuss at alexmorris.co.uk
Thu Feb 4 16:12:46 UTC 2021


On Thu, 4 Feb 2021, at 15:25, Vallevand, Mark K wrote:
> I don’t want dnsmasq to do DNS.   Nor do I want it to do any kind of 
> forward or relay.  
> 
> I want to specify the address of my DNS to be returned as the giaddr in 
> the DHCP offer.
> 
> Can I do that?
> 

Yes. You can specify DHCP option 6 (DNS) as a subnet-specific option, by using tags.

For example:

dhcp-range=name_of_subnet,<start address>,<end address>,<netmask>,12h
dhcp-option=name_of_subnet,6,<giaddr address>


-- 
Alex



More information about the Dnsmasq-discuss mailing list