Dns fixes
This commit is contained in:
parent
3e92619aaf
commit
0fc0cc0e38
3 changed files with 7 additions and 6 deletions
|
@ -63,13 +63,13 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
mainInterface = "40-end0";
|
mainInterface = "end0";
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
hostName = "orangepihole"; # Define your hostname.
|
hostName = "orangepihole"; # Define your hostname.
|
||||||
useDHCP = lib.mkDefault true;
|
useDHCP = lib.mkDefault true;
|
||||||
};
|
};
|
||||||
systemd.network.networks."40-end0" = {
|
systemd.network.networks."end0" = {
|
||||||
matchConfig.Name = "end0";
|
matchConfig.Name = "end0";
|
||||||
address = [
|
address = [
|
||||||
"10.42.69.2/24"
|
"10.42.69.2/24"
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
];
|
];
|
||||||
dns = [
|
dns = [
|
||||||
"10.42.69.2"
|
"10.42.69.2"
|
||||||
"fd72:3dd5:21ae:3c97::2"
|
"10.42.69.100"
|
||||||
];
|
];
|
||||||
domains = [ "icanttype.org" ];
|
domains = [ "icanttype.org" ];
|
||||||
gateway = [ "10.42.69.1" ];
|
gateway = [ "10.42.69.1" ];
|
||||||
|
|
|
@ -182,7 +182,7 @@ in
|
||||||
"10.42.69.100/24"
|
"10.42.69.100/24"
|
||||||
"fd72:3dd5:21ae:3c97:101b:87ff:fe86:5f01/64"
|
"fd72:3dd5:21ae:3c97:101b:87ff:fe86:5f01/64"
|
||||||
];
|
];
|
||||||
dns = [ "10.42.69.2" ];
|
dns = [ "10.42.69.100" "10.42.69.2" ];
|
||||||
domains = [ "icanttype.org" ];
|
domains = [ "icanttype.org" ];
|
||||||
gateway = [ "10.42.69.1" ];
|
gateway = [ "10.42.69.1" ];
|
||||||
dhcpServerConfig = {
|
dhcpServerConfig = {
|
||||||
|
@ -243,6 +243,7 @@ in
|
||||||
"/etc/containers/networks"
|
"/etc/containers/networks"
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
|
"/etc/unbound/ads.conf"
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
"/etc/adjtime"
|
"/etc/adjtime"
|
||||||
"/etc/ssh/ssh_host_rsa_key"
|
"/etc/ssh/ssh_host_rsa_key"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
systemd = {
|
systemd = {
|
||||||
services.adblock = {
|
services.adblock = {
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
server = {
|
server = {
|
||||||
do-ip6 = "no";
|
do-ip6 = "no";
|
||||||
qname-minimisation = "yes";
|
qname-minimisation = "yes";
|
||||||
# interface = [ "end0" ];
|
interface = [ config.mainInterface ];
|
||||||
access-control = [
|
access-control = [
|
||||||
"10.0.0.0/8 allow"
|
"10.0.0.0/8 allow"
|
||||||
"fc::/7 allow"
|
"fc::/7 allow"
|
||||||
|
|
Loading…
Add table
Reference in a new issue