host sid is now nameserver #28
3 changed files with 9 additions and 3 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
|
{ constants, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
networking.hostName = "rx4";
|
networking.hostName = "rx4";
|
||||||
networking.domain = "sid.ovh";
|
networking.domain = "sid.ovh";
|
||||||
|
networking.nameservers = [ constants.hosts.sid.ip ];
|
||||||
|
|
||||||
# boot.kernel.sysctl = {
|
# boot.kernel.sysctl = {
|
||||||
# "net.ipv4.conf.all.forwarding" = 1;
|
# "net.ipv4.conf.all.forwarding" = 1;
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
config = with constants; ''
|
config = with constants; ''
|
||||||
.:53 {
|
.:53 {
|
||||||
bind 127.0.0.1 ${hosts.sid.ip}
|
bind 127.0.0.1
|
||||||
forward . 1.1.1.1 8.8.8.8
|
|
||||||
cache 30
|
|
||||||
hosts {
|
hosts {
|
||||||
${hosts.sid.ip} ${ca-fqdn}
|
${hosts.sid.ip} ${ca-fqdn}
|
||||||
|
|
||||||
|
|
@ -24,6 +22,8 @@
|
||||||
${hosts.vde.ip} vde.tail
|
${hosts.vde.ip} vde.tail
|
||||||
fallthrough
|
fallthrough
|
||||||
}
|
}
|
||||||
|
forward . 1.1.1.1 8.8.8.8
|
||||||
|
cache 30
|
||||||
log
|
log
|
||||||
errors
|
errors
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,8 @@
|
||||||
|
{ constants, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
networking.networkmanager.ensureProfiles.profiles = {
|
networking.networkmanager.ensureProfiles.profiles = {
|
||||||
|
nameservers = [ constants.hosts.sid.ip ];
|
||||||
enp34s0-profile = {
|
enp34s0-profile = {
|
||||||
connection = {
|
connection = {
|
||||||
id = "enp34s0";
|
id = "enp34s0";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue