I've recently begun to use GIT repositories for Node.js, Socket.io, websockets, etc. The specific project isn't important here, what is is I'm unable to connect anywhere outside of localhost using the command line on my OSX computer. I am using a proxy.
This is a problem because I'm completely unable to clone GIT repositories to my machine, or install certain repositories/programs from the command line as they use the internet and return complicated errors when trying to do so.
The strange thing is I'm able to connect to the internet through my browser just fine--I'm posting from the machine as we speak!
When trying to ping google:
ME$ ping google.com
ping: cannot resolve google.com: Unknown host
When trying to "host" google:
ME$ host google.com
Host google.com not found: 3(NXDOMAIN)
When trying to "whois" google:
ME$ whois google.com
whois: com.whois-servers.net: nodename nor servname provided, or not known
When trying to curl google:
ME$ curl google.com
curl: (6) Couldn't resolve host 'google.com'
Contents of my resolv.conf file:
search d###.t###.u#.t##### i#####.t###.u#.t#####
nameserver 172.##.##.#
When trying to get a GIT repository:
ME$ sudo git clone http://github.com/isaacs/npm.git
Cloning into npm...
error: Couldn't resolve host 'github.com' while accessing
http://github.com/isaacs/npm.git/info/refs
fatal: HTTP request failed
I also have the list of my resolvers if you'd like them; not sure how secure it would be posting them here. Probably completely fine.
Will update with all information anyone asks me to check for. Thank you! :)
Update: This problem seems to be affecting more than one computer at my office (where I'm posting this from). Either that means it's a problem outside the hands of an individual computer, or each time a computer is installed, it was given this problem inadvertently.
And there is a tech guy, but his know-how stops at Macs :P
Update: Someone asked me to post the results of "netstat -rn":
Routing tables
Internet:
Destination........Gateway............Flags........Refs......Use...Netif.Expire
default............172.16.112.254.....UGSc............3........0.....en0
127................127.0.0.1..........UCS.............0........0.....lo0
127.0.0.1..........127.0.0.1..........UH..............0.....6008.....lo0
169.254............link#4.............UCS.............0........0.....en0
172.16.112/24......link#4.............UCS.............1........0.....en0
172.16.112.247.....127.0.0.1..........UHS.............0........0.....lo0
172.16.112.254.....e0:5f:b9:4f:bf:53..UHLWI...........3........0.....en0...1197
Internet6:
Destination........Gateway............Flags...........Netif Expire
::1................::1................UH................lo0
fe80::%lo0/64......fe80::1%lo0........Uc................lo0
fe80::1%lo0........link#1.............UHL...............lo0
ff01::/32..........::1................Um................lo0
ff02::/32..........::1................UmC...............lo0