forked from M-Labs/nix-scripts
nixbld: use own DNS resolver
This commit is contained in:
parent
98e6c29401
commit
b6c186b632
|
@ -100,6 +100,15 @@ in
|
||||||
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
|
boot.kernel.sysctl."net.ipv6.conf.all.forwarding" = "1";
|
||||||
boot.kernel.sysctl."net.ipv6.conf.default.forwarding" = "1";
|
boot.kernel.sysctl."net.ipv6.conf.default.forwarding" = "1";
|
||||||
|
|
||||||
|
services.unbound = {
|
||||||
|
enable = true;
|
||||||
|
extraConfig =
|
||||||
|
''
|
||||||
|
server:
|
||||||
|
port: 5353
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.hostapd = {
|
services.hostapd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interface = netifWifi;
|
interface = netifWifi;
|
||||||
|
@ -118,6 +127,7 @@ in
|
||||||
};
|
};
|
||||||
services.dnsmasq = {
|
services.dnsmasq = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
servers = ["::1#5353"];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
interface=${netifLan}
|
interface=${netifLan}
|
||||||
interface=${netifWifi}
|
interface=${netifWifi}
|
||||||
|
@ -128,6 +138,8 @@ in
|
||||||
dhcp-range=interface:${netifLan},::,constructor:${netifLan},ra-names
|
dhcp-range=interface:${netifLan},::,constructor:${netifLan},ra-names
|
||||||
dhcp-range=interface:${netifWifi},::,constructor:${netifWifi},ra-only
|
dhcp-range=interface:${netifWifi},::,constructor:${netifWifi},ra-only
|
||||||
|
|
||||||
|
no-resolv
|
||||||
|
|
||||||
# Static IPv4s to make Red Pitayas less annoying
|
# Static IPv4s to make Red Pitayas less annoying
|
||||||
dhcp-host=rp-f05cc9,192.168.1.190
|
dhcp-host=rp-f05cc9,192.168.1.190
|
||||||
dhcp-host=rp-f0612e,192.168.1.191
|
dhcp-host=rp-f0612e,192.168.1.191
|
||||||
|
|
Loading…
Reference in New Issue