def nameservers():
 with settings(hide('running', 'stdout')):
  res = run("cat /etc/resolv.conf | grep 'nameserver' | cut -d\\  -f2")
 return res.splitlines()

def nameservers ( ) : with settings ( hide ( 'running' , 'stdout' ) ) : res = run ( "cat /etc/resolv.conf | grep 'nameserver' | cut -d\\  -f2" ) return res . splitlines ( )
get the list of nameserver addresses .