code: public static dnsaddrec get(nitro_service service, String hostname) throws Exception{
  		dnsaddrec obj = new dnsaddrec();
  		obj.set_hostname(hostname);
  		dnsaddrec response = (dnsaddrec) obj.get_resource(service);
  		return response;
  	}
docs: Use this API to fetch dnsaddrec resource of given name .