Use this command to view DNS settings.
get system dns
This example shows the output for get system dns:
primary : 111.11.111.11
secondary : 111.11.111.12
ip6-primary : ::
ip6-secondary : ::