Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to create dhcp-host values into dnsmasq.conf #407

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dopplerreflect
Copy link

Added --dhcp-hosts option to add dhcp-host= lines do dnsmasq.conf.

This allows us to set specified ip addresses for hosts connecting to the ap.

Sample result from my pi running NixOS:

# head -1 /nix/store/vdhr1snnzdjvdc04gn64jsqp6rqycf6a-create_ap.conf
DHCP_HOSTS=thinkpad,192.168.12.10 GW2000X,192.168.12.11
# cat /tmp/create_ap.wlan0.conf.ooKP4z5Q/dnsmasq.conf
listen-address=192.168.12.1
bind-dynamic
dhcp-range=192.168.12.1,192.168.12.254,255.255.255.0,24h
dhcp-option-force=option:router,192.168.12.1
dhcp-option-force=option:dns-server,192.168.12.1
dhcp-option-force=option:mtu,1500
dhcp-host=thinkpad,192.168.12.10
dhcp-host=GW2000X,192.168.12.11

@lakinduakash
Copy link
Owner

Waiting until documentation is updated

@dopplerreflect
Copy link
Author

Apologies for the mess that is the diff in 01af6c8. Prettier on VSCode insisted on changing * to - and adding all the newlines under the headings, so I just went with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants