openzfs / openzfs-docs

OpenZFS Documentation
https://openzfs.github.io/openzfs-docs/
135 stars 194 forks source link

NixOS: DNS doesn't work if NetworkManager is not enabled #415

Closed mariaa144 closed 1 year ago

mariaa144 commented 1 year ago

When I installed my system without NetworkManager enabled as is default with the guide, my system wasn't able to get DNS. I wasn't able to easily remedy the situation because I couldn't just enable NetworkManager. The packages were missing and couldn't be downloaded. nixos-rebuild couldn't find the servers it needed because of no DNS. I ended up reinstalled with NetworkManager enabled.

Should DNS work by default if NetworkManager is disabled?

ghost commented 1 year ago

Yes it should.

Either you are using DHCP where it should "just work".

Or you are using a wireless network, in that case you need to configure the built-in DNS client, systemd-resolved.

In any case, you can override the DNS server configuration by directly replacing the contents of /etc/resolv.conf. An example would be the following:

cat /etc/resolv.conf nameserver 1.1.1.1

which sends all resolution requests to CloudFlare server.

mariaa144 commented 1 year ago

I was using a wired connection and it didn't "just work". I didn't try overriding the nameserver. I was using my own nameserver from my pfSense router which was configured by default when installing.

ghost commented 1 year ago

Maybe check how the DHCP server is configured on your router. During my last testing there was no such problem with DNS and a DHCP setup.

ghost commented 1 year ago

As described in #149, this is exclusively your problem, either your hardware or your DHCP server configuration. There is nothing I can do on my side.

Close this as WONTFIX.

SuperSandro2000 commented 1 year ago

I think so, too, that this is out of scope for the zfs guide.

ghost commented 1 year ago

I think so, too, that this is out of scope for the zfs guide.

NetworkManager is already removed.