Author Topic: How to change CWP DNS Resolvers ?  (Read 163 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
How to change CWP DNS Resolvers ?
« on: April 29, 2026, 02:02:34 PM »
Hello,

In Almalinux you can define the IP address of a DNS resolver the server should use. That works fine.

However CWP does not use this server defined DNS IP resolver. Instead CWP make DNS (port 53) requests to a number of internet DNS resolvers. Were in CWP can I redefine what DNS resolvers CWP will use.

Does it matter which DNS resolver is used as long as its reliable ?

Thanks.

Offline
*****
Re: How to change CWP DNS Resolvers ?
« Reply #1 on: May 02, 2026, 01:55:42 AM »
CWP should use the system DNS resolvers, as set by NetworkManager or manually in /etc/resolv.conf.

Cloudflare's 1.1.1.1 and 1.0.0.1 servers work fine, as does Google's 8.8.8.8 and 8.8.4.4 (although they are a bit more loaded at times). I have also used Quad9 and OpenDNS in the past, but filtering DNS should generally not be used on a server, as you want a server to use clean, accurate results. Usually I have had bad experiences with ISP and hosting DNS, due to latency, poor management, overload, or DDoS attacks -- so I avoid them.

Or are you looking to setup custom DNS?
https://www.hostwinds.com/tutorials/cwp-custom-dns

Offline
*
Re: How to change CWP DNS Resolvers ?
« Reply #2 on: May 06, 2026, 03:52:09 PM »
Hello,

Thanks for your reply.

I initially assumed that `/etc/resolv.conf` was the correct file to configure manual DNS resolver IP addresses. However, after making changes there, the system does not behave as expected.

When monitoring outgoing DNS requests from the CWP server’s network interface, I can see queries being sent to multiple IP addresses in a round-robin pattern. Notably, the IP address specified in `/etc/resolv.conf` is not among them.

This suggests that some component within CWP may be managing its own list of DNS servers, rather than relying on the configuration in `/etc/resolv.conf`.

DNS resolution itself is working, but I’m unclear which DNS servers are actually being used. If you have insight into how CWP handles DNS resolution, I’d appreciate your guidance before I proceed with further testing.

On a standard AlmaLinux 9 setup, DNS servers defined during installation are typically used by default. It seems CWP may handle this differently, and I’m trying to better understand that behavior.

Thanks.