summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kj@orbekk.com>2022-10-02 20:35:31 -0400
committerKjetil Orbekk <kj@orbekk.com>2022-10-02 20:35:31 -0400
commit53d0aeb2cf3e8c9d1a534c0f95352282e6509100 (patch)
tree9180860728e242f93b4fb59ad5cecdec9b179ccb
parent994b0a3805d2ad678e1dfe95950ef10f48fedd01 (diff)
dns config
-rw-r--r--config/router.nix8
-rw-r--r--modules/common.nix2
2 files changed, 8 insertions, 2 deletions
diff --git a/config/router.nix b/config/router.nix
index 92c2a5d..f5c7174 100644
--- a/config/router.nix
+++ b/config/router.nix
@@ -241,7 +241,10 @@ in {
port=2053
no-resolv
- address=/test-dns.orbekk.com/::1
+ no-hosts
+
+ address=/localhost/::1
+ address=/localhost/127.0.0.1
enable-ra
dhcp-authoritative
@@ -263,17 +266,20 @@ in {
dhcp-range=vlan30,172.20.30.50,172.20.30.254,5m
dhcp-option=net:vlan30,option:router,172.20.30.1
dhcp-option=net:vlan30,option:dns-server,172.20.30.1
+ dhcp-option=net:vlan30,option:domain-search,nyc.orbekk.com
dhcp-range=vlan100,172.20.100.50,172.20.100.254,5m
dhcp-host=vlan100,d8:3b:bf:59:22:de,172.20.100.10
dhcp-range=vlan100,::100,::500,constructor:bond0.100,ra-only
dhcp-option=net:vlan100,option:router,172.20.100.1
dhcp-option=net:vlan100,option:dns-server,172.20.100.1
+ dhcp-option=net:vlan100,option:domain-search,nyc.orbekk.com
dhcp-range=vlan32,172.20.32.50,172.20.32.254,5m
dhcp-range=vlan32,::100,::500,constructor:bond0.32,ra-only
dhcp-option=net:vlan32,option:router,172.20.32.1
dhcp-option=net:vlan32,option:dns-server,172.20.32.1
+ dhcp-option=net:vlan32,option:domain-search,nyc.orbekk.com
'';
};
diff --git a/modules/common.nix b/modules/common.nix
index 60e7910..bf87aa6 100644
--- a/modules/common.nix
+++ b/modules/common.nix
@@ -1,4 +1,4 @@
-{ config, lib, pkgs, ... }: {
+{config, lib, pkgs, ... }: {
programs.zsh.enable = true;
programs.zsh.interactiveShellInit = "bindkey -e";
programs.tmux.enable = true;