Setting up own DNS with Network Manager?

Is it possible to set up and host a Dns-server when using network manager?
When choosing the option DNS in Yast it tells me:

"Your network interfaces are currently controlled by NetworkManager
but the service to configure might not work well with it.

Really continue?"

If so how do I go about setting it up?

Kind regards

Henrik

Where? Please show all steps. Like YaST > Network Services > …

To me it seems as if you are looking at the DNS client configuration.

Which DNS server are you trying to use? I see bind(bind - Domain Name System (DNS) Server (named)) in the OSS repo. And I assume that the yast2-dns-serverworks on that. But it is unclear if you installed those and try to use them.

I think you should be able to do things with DNS settings etc. via the settings / Network menu. You certainly can on Gnome:

@jjis ,
What you show (specialy #7) is about the DNS client configuration. And you specify there which DNS server(s) should be used. But The OP talks about setting up his/her own DNS server. And that is not done with NetworkManager at all.

Super simple if @HenrikLjungberg doesn’t wish to call up the authoritative nameservers. :call_me_hand:

From my notes:

# Setup encrypted DNS:
zypper in dnscrypt-proxy

nano /etc/dnscrypt-proxy/dnscrypt-proxy.toml
server_names = ['cloudflare-security']

systemctl enable --now dnscrypt-proxy.socket
systemctl enable --now dnscrypt-proxy.service

ss -tulpn | grep dns
dig a opensuse.org @127.0.0.1

# In NetworkManager config / Gnome Network settings > use 127.0.0.1 as DNS for each connection.

Maybe, but he did not explain what he wants to achieve. :wink:

What I would like to achieve is having my own DNS-server running on my Firewall (OpenSUSE Leap 15.6) that serves as the primary DNS for my internal hosts and forwards questions about everything else onto public server like 8.8.8.8 or 1.1.1.1.

How do I configure this, shouldn’t I use Yast and the option:
Network Services - DNS Server to do this?

Kind regards

Henrik

  1. Use NetworkManager configuration dialog to define the DNS (because you’re using NetworkManager, not wicked). You can find DNS setings on the IPV4 and IPV6 tabs.
  2. I’m unfamiliar with what “forwards questions” … means … what are “questions”??

If you really want to get into network settings details, you could switch (from NetworkManager) to wicked.

I suppose “Forward questions” means that domains it can’t resolve it forwards a question to other dns-servers as 8.8.8.8 or 1.1.1.1.

You have to use something like dnsmasq for this:
https://thekelleys.org.uk/dnsmasq/doc.html

P.S. you don’t have to use the dhcp feature if you don’t want to! :dizzy: