To view DNS settings
# resolvectl status
To resolve the IPv4 and IPv6 addresses for one or more domains
# resolvectl query domain1 domain2
To retrieve the domain of a specified IP
# resolvectl query <ip_address>
To retrieve an MX record of domain
# resolvectl --legend=no --type=MX query domain_name
regards,
T.Dhanasekar