Linux/Unix DNS question

While traveling, I found a motel with WiFi where Firefox and the DNS utilities,
nslookup and dig, worked as expected, but wget, termtter (a CLI Twitter
client), my Ruby on Rails applications, and several other programs could not
resolve any domain names (getaddrinfo error, from memory). If I plugged the
IP address obtained with nslookup into /etc/hosts, they worked as expected.

Could anyone enlighten me about how these programs resolve domain names
differently?

TIA,
  Jeffrey

Sounds like the ports were being blocked.

Which ports. clearly not 53 (DNS).

Jeffrey

Quoting Charles A. Lopez <charlesalopez@gmail.com>: