免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1235 | 回复: 7
打印 上一主题 下一主题

问个简单的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-13 10:19 |只看该作者 |倒序浏览
请问各位大大。在Solaris下什么命令相当于linux下的
/etc/init.d/network restart
还有就是我刚刚安装完Solaris。上网正常。就是没有域名解析。
我已经在/etc下添加了resolv.conf.并且reboot了。为什么还是不能解析啊?

论坛徽章:
0
2 [报告]
发表于 2006-08-13 12:14 |只看该作者
难道在Solaris 中没/etc/init.d/network restart 吗?
你可以ifconfig eth0 down
ifconfig eth0 up
在/etc/resolv.conf 中加入
nameservers  61.139.2.69(比如)

论坛徽章:
0
3 [报告]
发表于 2006-08-13 13:56 |只看该作者
在Solaris里运行出现如下提示
bash-2.05# /etc/init.d/network restart
Setting netmask of eri0 to 255.255.255.0
configuring IPv4 interfaces: eri0.
/etc/init.d/network: shcat: not found
Hostname: unknown

论坛徽章:
0
4 [报告]
发表于 2006-08-13 14:12 |只看该作者

  1. #vim /etc/nsswitch.conf
复制代码



hosts:      files dns

论坛徽章:
0
5 [报告]
发表于 2006-08-13 15:03 |只看该作者
原帖由 old-cow 于 2006-8-13 14:12 发表

  1. #vim /etc/nsswitch.conf
复制代码



hosts:      files dns

能说的具体点么
在/etc/nsswitch.conf 里添加
hosts:      files dns ???
网络重启呢?

论坛徽章:
0
6 [报告]
发表于 2006-08-14 08:14 |只看该作者
?????

论坛徽章:
0
7 [报告]
发表于 2006-08-14 08:22 |只看该作者
要做DNS吗?

论坛徽章:
0
8 [报告]
发表于 2006-08-14 08:43 |只看该作者
不是啊。在Solaris里怎样重启网络。
还有就是
我在/etc/resolv.conf 中加入
nameservers  192.168.1.1
#vim /etc/nsswitch.conf
hosts:      files dns
用nslookup的时候还是显示
*** Can't find server name for address 192.168.1.1: Non-existent host/domain
*** Default servers are not available
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP