OpenWrt Forum Archive

Topic: DHCP Server Options

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

Okay, am I missing something?   I've been trying my hardest to avoid asking (seemingly) simple questions on this forum but I just can't find the answers..

I want to set up a fairly basic DHCP server for the LAN network, providing WINS, DNS, and domain name.   I'm at a loss to figure out how.

Dnsmasq is a combined dns, dhcp and tftp server that is installed by default. It does not do wins but it can tell clients via dhcp where a wins server is. In older versions of kamikaze you had to write the config file yourself and change the init script. In trunk you can use uci or edit the files in /etc/config.

Yea, all I want to do is assign a WINS server, with other options, but I don't know what the verbage is in the config file.

i think the /etc/dnsmasq.options contains every supported option.

Perfect, that's exactly what I was looking for.  Thanks guys!

Hi,
I added that options (I have samba installed) in dnsmasq.conf file:
dhcp-option=44,192.168.1.1
But dhcp still assigns wrong ip wins server (IP of WAN).

Also, in logs I have:
Mar  7 21:39:01 (none) daemon.err dnsmasq[751]: failed to load names from /etc/hosts: Permission denied
Mar  7 21:39:01 (none) daemon.err dnsmasq[751]: failed to read /etc/ethers:Permission denied

Why? Permissions of these files are:
-rwxr-xrwx    1 root     root           92 Jan  1  2000 /etc/hosts
-rwxr-xrwx    1 root     root           93 Mar  7 18:49 /etc/ethers

I don't understand....

The discussion might have continued from here.