更改/etc/resolv.conf文件
如果你的linux主機(jī)只是在局域網(wǎng)內(nèi)工作,請(qǐng)將nameserver地址改為網(wǎng)卡本身的地址。
例:
suselinux:~ # more /etc/resolv.conf
nameserver 192.168.0.160
search site
然后重啟網(wǎng)卡
suselinux:~ # ifconfig eth0 down
suselinux:~ # ifconfig eth0 up
更改/etc/resolv.conf文件
如果你的linux主機(jī)只是在局域網(wǎng)內(nèi)工作,請(qǐng)將nameserver地址改為網(wǎng)卡本身的地址。
例:
suselinux:~ # more /etc/resolv.conf
nameserver 192.168.0.160
search site
然后重啟網(wǎng)卡
suselinux:~ # ifconfig eth0 down
suselinux:~ # ifconfig eth0 up
只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。 | ||
![]() |
||
網(wǎng)站導(dǎo)航:
博客園
IT新聞
Chat2DB
C++博客
博問
|
||