The current DNS setting can be checked by using the command resolvectl status. This command provides information such as the protocols to be used, name server, settings for each individual interface.
To check the current DNS settings on a Linux system, one can utilize the resolvectl status command. This command yields valuable information, including the protocols in use, the configured name server, and specific settings for each network interface.