Wifi, DNS problem on MacBook Pro retina
Google Chrome uses its own DNS resolver, that's why it behaves differently.
dig command also connects directly to DNS server.
To verify your current DNS server settings on the Wi-Fi network interface use:

networksetup -getdnsservers Wi-Fi

To troubleshoot your problem try:


clearing the DNS server settings (and rely on DHCP) with:

sudo networksetup -setdnsservers Wi-Fi empty

setting the DNS server manually with the command:

sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4

create a new location with separate DNS settings by:


clicking on the network icon in the menu bar
choosing Open Network Preferences...
selecting Edit Locations... from the top list box (you might need to unlock settings with administrator's password first) and creating new location
clicking on Advanced... button, selecting DNS tab and adding the DNS servers in the left pane