Fixes dns.
This commit is contained in:
parent
c1b7e623e8
commit
d2a261f41a
|
@ -22,8 +22,6 @@
|
||||||
windowManager.fluxbox.enable = true;
|
windowManager.fluxbox.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedUDPPorts = [ 67 ];
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
git btop tmux
|
git btop tmux
|
||||||
];
|
];
|
||||||
|
|
|
@ -45,9 +45,19 @@
|
||||||
|
|
||||||
services.dnsmasq = {
|
services.dnsmasq = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
resolveLocalQueries = false;
|
||||||
settings = {
|
settings = {
|
||||||
|
bind-interfaces = true;
|
||||||
|
expand-hosts = true;
|
||||||
|
no-hosts = true;
|
||||||
|
local = "/lan/";
|
||||||
|
domain = "lan";
|
||||||
interface = [ "wlan0" ];
|
interface = [ "wlan0" ];
|
||||||
dhcp-range = [ "192.168.24.100,192.168.24.200" ];
|
dhcp-range = [ "192.168.24.100,192.168.24.200" ];
|
||||||
|
dhcp-option= "6,0.0.0.0";
|
||||||
|
host-record = "melodypond,melodypond.lan,192.168.24.1";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.firewall.allowedUDPPorts = [ 53 67 ];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue