Solved Installing a DHCP Server

OK lets strip it down to bare basics dnsmasq server for you. I changed my setup file to conform to your needs.

This is the server interface. I am assuming this is your LAN interface. (ue0 is WAN)
interface=em0

DNS Servers (OpenDNS used in this example):
server=208.67.220.220
server=208.67.222.222


Here is the meat and potatoes.

This tells our server it it the master. No subordinate dhcp servers
dhcp-authoritative


Here is the DHCP range of address it will assign to clients. You can choose what you want here. 100 to 170 is what I use. You can use from 2 to 253
dhcp-range=set:em0,192.168.1.100,192.168.1.170,72h

This tells dnsmasq what its function is. "Router"
dhcp-option=em0,option:router,192.168.1.1

This sets our DNS server used settings.
dhcp-option=option:dns-server,208.67.220.220,208.67.222.222

/usr/local/etc/dnsmasq.conf {OVERWRITE ORIGINAL FILE YES}
Code:
interface=em0
server=8.8.8.8
server=1.1.1.1
dhcp-authoritative
dhcp-range=set:em0,192.168.1.100,192.168.1.170,72h
dhcp-option=em0,option:router,192.168.1.1
dhcp-option=option:dns-server,208.67.220.220,208.67.222.222
 
These setting are needed too.
Code:
domain-needed
bogus-priv
strict-order
listen-address=127.0.0.1,192.168.1.1


This setting depends on how you resolv and resolvconf.
Code:
no-resolv
 
Back
Top