0

I cannot make command wget work behind a router. Here are my situation and network settings.

Ubuntu 14.04.

In organization A's network, I have a router (R) which connects a few servers (X, Y, Z), and R resides in A's network. R has IP like 172.12.34.56 X has IP like 192.168.98.76 under R with portal 2210. In other words, 192.168.98.76 is X's IP assigned by R whose IP assigned by A is 172.12.34.56. Basically R is the router of a subnetwork within A. I usually VPN to A, then get to X via a router with the following command, just to give you an idea of this:

ssh -p 2210 myUsername@172.12.34.56

After I'm prompted with a password entry, I'm on X and need use wget to download something such as:

wget https://www.gnu.org/software/wget/

# output below:

--2019-05-15 01:02:03-- https://www.gnu.org/software/wget/
Resolving ftp.gnu.org ... failed: Temporary failure in name resolution
wget: unable to resolve host address 'ftp.gnu.org'

The file of /etc/network/interfaces looks like this:

  source /etc/network/interfaces.d/* # there's no file in this .d folder
  # The loopback network interface
  auto lo
  iface lo inet loopback
  # The primary network interface
  auto eno1
  iface eno1 inet static
  address 192.168.98.76 # I used X's ip under router
  gateway 172.12.34.56 # I used the router's ip
  netmask 255.255.255.0
  dns-nameservers 208.67.222.222

As suggested, I checked

  nslookup www.gnu.org

and got

  server can't find www.gnu.org.xxx.com: REFUSED

where xxx is my company's name, which I'm not sure where comes from (rounter?)

A is usually very strict on network security settings. I'm not sure if this is due to A's setting or due to my Ubuntu settings.

How can I solve this issue?

New contributor
Tony Xu is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

put on hold as off-topic by Kulfy, vidarlo, Thomas Ward May 15 at 17:50

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • Draw a diagram. You may for instance use Draw.io. I have a hard time following your descriptions. – vidarlo May 15 at 17:40
  • Note that 14.04 is beyond our support, now, and can only be supported by Canonical via an ESM subscription. Note also that the core problem here is DNS related, your system isn't able to make DNS requests outbound. – Thomas Ward May 15 at 17:51
  • which site should I ask for help? Thanks! – Tony Xu May 15 at 17:55
  • Wouldn't matter, becuase this sounds like A's problem. Your DNS server is iset to 208.67.222.222, which I bet is blocked on the company's network. (It's coming from the search domain setting which is probably still embedded in your resolv.conf). You need to talk to your network admins for assistance here, it's the settings on Org. A's network. They will instruct you in the proper network settings to use so DNS and such work – Thomas Ward May 15 at 17:58

Browse other questions tagged or ask your own question.