LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 613|回复: 1

如何在SuSE Linux的Shell下设置代理? 跟RedHat Linux一样麽?

[复制链接]
发表于 2006-10-30 18:49:47 | 显示全部楼层 |阅读模式
这样可以吗?

  1. export http_proxy="user:password@192.168.0.2"
复制代码

如果http代理地址是192.168.0.2的话,,这样是否正确?


另外,如何在Shell下更改DNS地址并启用呢?(不用yast,直接改相应的网络配置文件)
在/etc/resolv.conf文件第一行里加入
nameserver 192.168.0.3

如果dns服务器地址是192.168.0.3的话,这样是否正确?
发表于 2006-10-30 23:55:32 | 显示全部楼层
Post by Osirix

另外,如何在Shell下更改DNS地址并启用呢?(不用yast,直接改相应的网络配置文件)
在/etc/resolv.conf文件第一行里加入
nameserver 192.168.0.3

如果dns服务器地址是192.168.0.3的话,这样是否正确?

yes.

ncowboy@SuseBox:~> cat /etc/resolv.conf
### BEGIN INFO
#
# Modified_by:  pppd
# Backup:       /etc/resolv.conf.saved.by.pppd.modem0
# Process:      pppd
# Process_id:   5984
# Script:       /etc/ppp/ip-up
# Saveto:
# Info:         This is a temporary resolv.conf created by service pppd.
#               The previous file has been saved and will be restored later.
#
#               If you don't like your resolv.conf to be changed, you
#               can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
#               variables are placed in /etc/sysconfig/network/config.
#
#               You can also configure service pppd not to modify it.
#
#               If you do not want the pppd to change your nameserver
#               settings set MODIFYDNS=no in the config file for
#               this provider in /etc/sysconfig/network/providers/
#               and ensure that the option usepeerdns is not set
#               in /etc/ppp/options.
#
### END INFO
nameserver 220.192.0.130
nameserver 220.192.8.58
ncowboy@SuseBox:~>   





Powered by vBulletin 版本 3.5.4
版权所有 ©2000 - 2006, Jelsoft Enterprises Ltd.
官方中文技术支持: vBulletin 中文  
版权所有 ©2000 - 2005, Jelsoft Enterprises Ltd.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表