|
|
发表于 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. |
|