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

DHCP Options - DNS Servers #407

Open
wispr opened this Issue Feb 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@wispr

wispr commented Feb 21, 2018

Trying to find the correct option in FM to set the DNS servers in a given subnet in DHCP. Sample config from ubuntu wiki is below, but the option for domain-name-servers seems to be missing.

Added: same thing with default gateways, specifically option routers

Sample /etc/dhcpd.conf

default-lease-time 600;
max-lease-time 7200;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.1, 192.168.1.2;
option domain-name "mydomain.example";

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.10 192.168.1.100;
range 192.168.1.150 192.168.1.200;
}

@WillyXJ

This comment has been minimized.

Owner

WillyXJ commented Feb 21, 2018

Big oversight you found. Not only is domain-name-servers missing, but routers is missing, too!

@wispr

This comment has been minimized.

wispr commented Feb 21, 2018

Ok, well glad I'm not crazy. We can manually add them to the conf file on the server and all works as it should. But as soon as the config change is written from FM, it overwrites and then it stops working. Push it in the next update and we'll keep testing.

WillyXJ pushed a commit that referenced this issue Feb 22, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment