Monday, March 24, 2008

Nameserver

The resolv.conf file is the resolver configuration file. It is use to configure client side access to the Internet Domain Name System (DNS). This file defines which name servers to use.

The resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains information that is read by the resolver routines the first time they are invoked by a process. The file is designed to be human readable and contains a list of keywords with values that provide various types of resolver information

Note: File name is /etc/resolv.conf and not /etc/resolve.conf.


Sample resolv.conf file

nameserver 202.54.1.10
nameserver 202.54.1.11

Sunday, March 23, 2008

Setting Up Clients To Use a Proxy

http_proxy
ftp_proxy
gopher_proxy
wais_proxy


export http_proxy="http://your.proxy.server:8080/"; //export http_proxy
eg: export http_proxy=http://cache.mrt.ac.lk:3128

export ftp_proxy="http://your.proxy.server:8080/"; //export ftp_proxy
eg: export ftp_proxy=http://cache.mrt.ac.lk:3128

export gopher_proxy="http://your.proxy.server:8080/"; //export gopher_proxy
eg: export gopher_proxy=http://cache.mrt.ac.lk:3128

export wais_proxy="http://your.proxy.server:8080/"; //export wais_proxy
eg: export wais_proxy=http://cache.mrt.ac.lk:3128



No proxy

Some clients support the no_proxy environment variable that specifies a set of domains for which the proxy should not be consulted; the contents is a comma-separated list of domain names, with an optional :port part:
export no_proxy="cern.ch,ncsa.uiuc.edu,some.host:8080"


Monday, March 17, 2008

Get Money