Properly configure Proxy client settings via command line

Issues related to configuring your network
Post Reply
minipop4747
Posts: 1
Joined: 2017/03/09 05:53:06

Properly configure Proxy client settings via command line

Post by minipop4747 » 2017/03/09 06:03:16

I have configure settings in /etc/profile. My proxy client settings has usernames and password so I have put below line in profile file

export http_proxy=http://username:password@192.168.x.x:8080/

apart from that I have created proxy.sh file under /etc/profile.d/ and put the same proxy configuration line to it as well

and configure DNS on /etc/resolv.conf by adding google DNS 8.8.8.8

But still I couldn't resolve the google DNS. ping 8.8.8.8 send reply packets as well

First I observe this DNS issue when I received the below error message

curl: (6) Couldn't resolve host 'packages.graylog2.org'

I need to configure proxy settings using command line only. Plz help me, if any body setup this kind of incident earlier.

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: Properly configure Proxy client settings via command line

Post by mghe » 2017/03/10 10:05:49

What did you get by run command: echo $http_proxy

BTW: you can set it globally in: /etc/environment

Post Reply