title: Ubuntu 18.04 Server - how to check DNS IP server setting being used
body: <p>Working with Ubuntu 18.04 Server LTS.  I am trying to find a way to check the DNS IP(s) that is actually being used when set via DHCP.  The resolv.conf only will point to 127.0.0.53 now.  /etc/systemd/network folder is empty.  The NSLOOKUP output also always references the internal 127.0.0.53 IP. Seems all the old tricks aren't working. </p>
  
  <p>The Ubuntu documentation is not updated yet as it still looks like the help for 16.04 referencing eth0, ifup and ifdown which are all deprecated on 18:  <a href="https://help.ubuntu.com/lts/serverguide/network-configuration.html" rel="noreferrer">https://help.ubuntu.com/lts/serverguide/network-configuration.html</a></p>
  
  <p>I've tried setting a static adapter setup with Netplan via a custom .yaml.  The settings work fine but I can't seem to find the DNS IP that I set anywhere.  I expect it will be consistent between DHCP and static settings but I'm not sure where to look now.</p>
  
  <p>I would settle for either a C library call or a bash CLI method at this point.  Does anyone have a way to check this on 18.04 Server?</p>