So I found out my problem when I would use the curl method on my linux Ubunutu 12.10 Server at home while logged in from my laptop (Mac OSX Lion). Nothing was happening when I would use the curl method so I thought I would try to ping a website where I know its up and running and I would get this:
ping: unknown host facebook.com
So Im guessing there is something blocking something here. I tried other sites with no success. Just the same error. I researched elsewhere but I couldn't really find a solution.
I typed this in terminal:
sudo iptables -L
...and I got this response
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Does that look fine to anybody or should there be more information in there?
Update
I should also add that I am pretty new to hosting my own server and I have a Dynamic IP at the moment and not a static one. I have learned a lot over the past short while but just want to give the heads up that I may not know a whole lot about it.
That being said everyone seems to think its a DNS issue. So I checked the etc/resolv.conf file and there wasn't anything in there except a commented message.
# 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
Did I forget a step when setting up my server? Also would this fix the curl issues I was having. I was just trying to install RVM by curl according to the tutorial but nothing happened. No message that it failed or succeeded.
Update 2
So I did some research and it looks like a known bug with Ubuntu 12.10 upgrade, which I had just did before using these commands.
DNS resolution fails after 12.10 upgrade
I thought the above was causing the problem but it wasn't in my case
Here is what reads inside /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.131
netmask 255.255.255.0
gateway 192.168.1.1
Thanks,
Joe