Use dnsmasq to resolve loopback

This commit is contained in:
coolneng 2022-12-21 10:11:34 +01:00
parent d564a94aa7
commit 5433a0285f
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ in {
matchConfig.Name = "eth0"; matchConfig.Name = "eth0";
address = [ "192.168.13.2/24" ]; address = [ "192.168.13.2/24" ];
gateway = [ "192.168.13.1" ]; gateway = [ "192.168.13.1" ];
dns = [ "51.158.108.203" "137.220.55.93" ]; dns = [ "192.168.13.2" ];
networkConfig.DNSSEC = "no"; networkConfig.DNSSEC = "no";
}; };
@ -102,7 +102,7 @@ in {
# DNS server with ad-block # DNS server with ad-block
services.dnsmasq = { services.dnsmasq = {
enable = true; enable = true;
servers = config.systemd.network.networks."24-home".dns; servers = [ "51.158.108.203" "137.220.55.93" ];
extraConfig = '' extraConfig = ''
domain-needed domain-needed
bogus-priv bogus-priv