feat(network): enable systemd-resolved with custom settings
- Enable systemd-resolved and configure DNSSEC with downgrade option. - Add extra configuration to allow resolving unicast single-label names. This improves DNS handling and ensures compatibility for SGX setup.
This commit is contained in:
parent
a753a2fbba
commit
1235ec9071
|
@ -5,6 +5,12 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
{
|
{
|
||||||
|
services.resolved.enable = true;
|
||||||
|
services.resolved.dnssec = "allow-downgrade";
|
||||||
|
services.resolved.extraConfig = ''
|
||||||
|
ResolveUnicastSingleLabel=yes
|
||||||
|
'';
|
||||||
|
|
||||||
networking.hostName = "sgx"; # Define your hostname.
|
networking.hostName = "sgx"; # Define your hostname.
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue