Basic network connectivity issue...

I did something, I'm not sure what, but now I can't seem to get external network connectivity:

ping google.com ping: unknown host google.com

ifconfig eth0 Link encap:Ethernet HWaddr 00:0c:29:c9:a8:5f
inet addr:192.168.1.96 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fec9:a85f/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1654 errors:0 dropped:0 overruns:0 frame:0 TX packets:545 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:214471 (214.4 KB) TX bytes:335417 (335.4 KB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:780 errors:0 dropped:0 overruns:0 frame:0 TX packets:780 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:47035 (47.0 KB) TX bytes:47035 (47.0 KB)

dig google.com

; <<>> DiG 9.9.5-3ubuntu0.1-Ubuntu <<>> google.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 61203 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;google.com. IN A

;; Query time: 6 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Feb 03 05:32:07 CST 2015 ;; MSG SIZE rcvd: 39

Any thoughts on what I should check? Thanks.

Status: 
Closed (fixed)

Comments

Routing issue? What does the command netstat -rn output on your system?

netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

Here's a SS with a better formatting (attachment):

Howdy -- it looks like you may not have a default gateway setup for your network interface there. You'd want to make sure that you have a default gateway setup, otherwise traffic won't be able to leave your server.

However, it looks like you may be using Virtualmin GPL there, or perhaps an expired copy of Virtualmin Pro. If you're not using Virtualmin Pro, you'd want to use the Forums for obtaining support.

We monitor the Forums, along with lots of wonderful folks in the community. Thanks!

Looks like you have no default route - do you know what the default gateway is supposed to be for your network?

Yes, I've poked around in the network settings but I'm not sure where to set it. I'm also not sure how it got un-set.