I am wondering what causes this to happen. I am using a WiFi connection (wlan0) in my /etc/network/interfaces file. With the settings below I can successfully ping 188.8.131.52 but I am unable to use "apt-get" or "git clone". When I type "route" the results take a long time to populate.
The contents of my /etc/resolv.conf file are:
# Generated by resolvconf search attlocal.net nameserver XXXX:XXX:XXXX:XXXX::X
The contents of my /var/run/dnsmasq/resolv.conf are:
# Generated by resolvconf nameserver XXXX:XXX:XXXX:XXXX::X
I don't understand why it is doing this. I usually just get an IP address for nameserver. Any idea what causes this to happen?
Using Raspberry Pi Raspbian Jessie
UPDATE: If I wait 24 hours the resolv file eventually populates with an IP address but the system fails to execute apt-get update. It will get stuck on the first "get" command. If I ifdown wlan0 and ifup wlan0 the system appears to work fine after. Why is this forced reset needed? How can I avoid doing this and have it connect correctly from the start.