I have a java program that was working just fine till yesterday but today I am getting network is unreachable and unknown host exception.I then looked at my network config files on Ubuntu 14.04 and found few areas of concern.
The ping returns normally and I have no problems while browsing via Google Chrome it is only the my code that fails. I have wireless internet.

This is how my /etc/network/interfaces looks like -
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo

iface lo inet loopback

This is how my /etc/resolv.conf looks like -
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1

When I run ip a I get the following message -


1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether f8:bc:12:58:40:e4 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.100/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::fabc:12ff:fe58:40e4/64 scope link
valid_lft forever preferred_lft forever

When I run ip route show I get the following message -

default via 192.168.1.1 dev eth0 proto static 192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.100 metric 1

Is everything configured properly the way it should be ? Any suggestions would be appreciated.