I am having trouble getting my Ubuntu server to connect to the internet. To be clear, LAN works perfectly. I am running 14.04 LTS. I cannot ping Google.com yet ssh works over the internet as well as LAN. I do have a static IP set up, but that was working before. I set my DNS servers to google's, but still nothing. apt-get install/update returns cannot resolve host to us.archive.Ubuntu.com. My repo sources are working. I am out of ideas regarding what to do next. Any help would be VERY appreciated.
Still broken with and without the nameservers in interfaces and still able to ping 8.8.8.8 with both
Here's interfaces, resolv.conf is empty.
auto lo
iface lo inet loopback
auto eth0
#iface eth0 inet dchp
iface eth0 inet static
address 192.168.1.3
network 192.168.1.0
netmask 255.255.255.0
broadcast 192.168.1.255
gateway 192.168.1.1
nameserver 8.8.8.8
nameserver 8.8.4.4
ping 8.8.8.8
-- did that work? If so, you have network connectivity. If that ends up being the case, then your DNS is boken. How (or where/which file) did you set your DNS servers? Can you show us /etc/resolv.conf and /etc/network/interfaces? (Let me guess: you are doing SSH by IP. I bet your DNS is just broken).