Skip to content

Commit

Permalink
Improved dns configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Jan 14, 2024
1 parent dfd7fa6 commit edc2d3c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 30 deletions.
12 changes: 0 additions & 12 deletions hosts/mno001/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@ in

useNetworkd = true;
wireguard.enable = true;

nameservers = [
"212.111.228.53" # IBH 1
"193.36.123.53" # IBH 2
];
};

services.resolved = {
enable = true;
fallbackDns = [
"9.9.9.9" # QUAD 9
];
};

systemd.network = {
Expand Down
13 changes: 0 additions & 13 deletions hosts/ns-mno001/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ in
];
};

networking.nameservers = [
# rns-01.ibh.net
"2a01:7700:0:1035::1:53"
"212.111.228.53"
# rns-02.ibh.net
"2a01:7700:0:1036::1:53"
"193.36.123.53"
];

services.resolved.extraConfig = ''
FallbackDNS=
'';

systemd.network.networks = {
"10-lan" = {
matchConfig.MACAddress = mac;
Expand Down
11 changes: 6 additions & 5 deletions modules/dd-ix/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{ ... }:
{
imports =
[
./base.nix
./general-options.nix
];
imports = [
./base.nix
./general-options.nix
./dns.nix
];
}
15 changes: 15 additions & 0 deletions modules/dd-ix/dns.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{ ... }:
{
networking.nameservers = [
# rns-01.ibh.net
"2a01:7700:0:1035::1:53"
"212.111.228.53"
# rns-02.ibh.net
"2a01:7700:0:1036::1:53"
"193.36.123.53"
];

services.resolved.extraConfig = ''
FallbackDNS=
'';
}

0 comments on commit edc2d3c

Please sign in to comment.