"It's a wifi connection on a brand new Jessie. Can ping by ip not hostname"
Well, there you go. Your Pi isn't in the router's DNS.
Your router probably doesn't provide hostnames to the DNS. My ISP-supplied router has the balls to run dnsmasq but explicitly disable DHCP in it, running a separate DHCP server—which of course doesn't communicate to dnsmasq.
Alternatively, your PI isn't providing a hostname. I forgot to set up my tunnel into my Pi from here, so don't recall which DHCP client it's using. If dhclient, which I think it is, /etc/dhclient.conf should contain:
send host-name = gethostname();
alternatively the following in /etc/network/interfaces
iface wlan0 inet dhcp
hostname Something
As for libdns and nsswitch, you're not (likely) doing DNS on the Pi so it won't help you (however, if you are running a router like mine that can't be modified, I do have some good hacks to move your local network's DHCP and DNS off the router and onto the Pi).