-
Notifications
You must be signed in to change notification settings - Fork 48
dnsmasq.conf
The following files are tested in this order and the first one that is found will be used to configure the dnsmasq
daemon:
/data/etc/dnsmasq.conf
/boot/dnsmasq.conf
/etc/dnsmasq.conf
The file is not present by default and should be created by the user, if dnsmasq
is needed.
If the file is present, the dnsmasq daemon will be started to make your system act as a DHCP server (and other possible dnsmasq functionalities).
Note that dnsmasq
package is not enabled by default in thingOS. You'll need to enable it in your configurations to have this functionality.
See also captive-portal.conf.
Here are some details on the file format.
The file is first preprocessed and any environment variables of the form $var
or ${var}
are replaced. You can use any variables exported by /etc/init.d/base
, which include all os.conf variables and others such as HOSTNAME,
BOARD_SNand
BOARD_NAME`.
Following is a simple example of a dnsmasq configuration that will enable the DHCP server on the wlan0
interface, offering IP addresses in the range of 192.168.27.50
to 192.168.27.150
, valid for 24 hours:
interface=${OS_AP}
dhcp-range=192.168.27.50,192.168.27.150,24h
dhcp-leasefile=/var/lib/dnsmasq.leases
- bluetooth.conf
- captive-portal.conf
- cpufreq.conf
- date.conf
- dnsmasq.conf
- docker-compose.yml
- dtoverlays
- dyndns-update.sh
- environment
- firewall.sh
- fstab.user
- hostapd.conf
- ifalias.conf
- localtime
- modprobe.conf
- modules
- mongodb.conf
- netwatch.conf
- ntp.conf
- os.conf
- proftpd.conf
- redis.conf
- smb.conf
- ssh/config
- ssh/sshd_config
- ssl/domain
- ssl/email
- static_ip.conf
- sysctl.conf
- toemmc.conf
- version
- watchdog.conf
- wpa_supplicant.conf