OpenWrt Forum Archive

Topic: how to configure DNS server ip address in DHCP file

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi,

I am running Kamikaze 7.09 on LA Fonera device. The DHCP server is running on the LAN and WLAN interface.

I need to configure DNS server address as part of DHCP server options. What DHCP option i need to configure in

/etc/config/dhcp file.

Or any other methods or solutions!!

With Regards,
Channareddy

Add to /etc/dnsmasq.conf:

dhcp-option=6,_DNS_IP_1,_DNS_IP_2,ETC....

6 is the option to set the DNS server that your DHCP will hand out.

Additionally, you might want to add the default route (option "3") for the clients to use to get to the internet.

FYI: All options are listed in /etc/dnsmasq.options

(Last edited by Ateo on 16 Sep 2008, 22:00)

The discussion might have continued from here.