Added "address resolve" query

Also fixed printf() format string