LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 北南南北

Linux服务器的一些基本应用[原创:xchen兄]

[复制链接]
发表于 2002-11-26 10:50:14 | 显示全部楼层

Re: Linux服务器的一些基本应用[原创:xchen兄]

[root@localhost whj]# /etc/rc.d/init.d/named restart
停运 named:
启动 named:                                               [  确定  ]
[root@localhost whj]# nslookup sx.cx.com
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.1.12
Address:        192.168.1.12#53

** server can't find sx.cx.com: SERVFAIL

[root@localhost whj]# nslookup 192.168.1.12
Note:  nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead.  Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server:         192.168.1.12
Address:        192.168.1.12#53

** server can't find 12.1.168.192.in-addr.arpa: SERVFAIL
请大侠们帮忙看一看.redhat8.0 ip:192.168.1.12 msak 255.255.255.0
和其他的之间可以互相ping通


[root@localhost etc]# cat named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
// query-source address * port 53;
};

zone "." IN {
type hint;
file "named.ca";
};
zone "cx.com" IN {
type master;
file "named.hosts";
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "named.1.168.192";
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
};

[root@localhost named]# ls
localhost.zone  named.1.168.192  named.hosts  named.localbak
named           named.ca         named.local

[root@localhost named]# cat named.1.168.192
@ IN SOA ns.cx.com. root.ns.cx.com. (
2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS ns.cx.com.
1 IN PTR ns.cx.com.
2 IN PTR ns1.cx.com.


[root@localhost named]# cat named.local

$TTL    86400
@ IN SOA ns.cx.com. root.ns.cx.com. (
# @       IN      SOA     localhost. root.localhost.  (
1997022700 ; Serial
28800      ; Refresh
14400      ; Retry
3600000    ; Expire
86400)     ; Minimum
#              IN      NS      localhost.
IN NS ns.cx.com.
1 IN PTR localhost.


[root@localhost named]# cat named.hosts


@ IN SOA ns.cx.com. root.ns.cx.com. (


2002042302; serial
28800; refresh
14400; retry
3600000; expire
86400; minimu
)
IN NS ns.cx.com.
cx IN A 192.168.1.12
cx1 IN A 192.168.1.223
www IN CNAME ns.cx.com.
ftp IN CNAME cx

[root@localhost etc]# cat resolv.conf
# search localdomain
domain cx.com
nameserver 192.168.1.12

发表于 2002-11-28 20:02:20 | 显示全部楼层
那个chkconfig –level 3 proftpd on //设置为系统自启动服务
应该是chkconfig -–level 3 proftpd on //设置为系统自启动服务 吧
发表于 2002-11-29 08:53:34 | 显示全部楼层
对对,royce兄,你说的完全正确,纯碎笔误!!!
发表于 2002-11-29 09:00:27 | 显示全部楼层
navy兄弟,你好,也不知你的问题解决没???

我对dns研究不是很多(不是很需要),你贴出这么一大段叫我看,我眼睛也不大好,实在是为难我。
你最好是按照书本上的来搞,出错可能会少一些,对各个配置文件的理解也会深一些。
小弟水平如此,无法帮你解决问题,甚憾!!!!
发表于 2002-11-29 17:31:34 | 显示全部楼层
为什么没有mail系统,请版主抽空整理一个mail系统的做法,不胜感激
发表于 2002-11-30 16:29:52 | 显示全部楼层

请教

我在configure openssh时出现错误,请大哥们帮忙一下:
我的环境是:bluepoint 2.0 kernel 2.2.16中文,
[root@linux openssh-3.4p1]./configure --prefix=/usr/local/ssh\
> --sysconfdir=/etc/ssh --with-tcp-wrappers --with-ipv4-default \
>--with-md5-passwords
..
..
checking whether snprintf correctly terminates long starings ... yes
checking whether getpgrp requires zero arguments ... yes
configure: error: ***Can't find recent OpenSSL libcrypto (see config.log for details) ***
[root@linux openssh-3.4p1]
发表于 2002-11-30 22:34:18 | 显示全部楼层
应该是你没有安装openssl,
可以用rpm -q openssl查一下,如果确实没装的话,请在安装光盘上找到*openssl*.rpm,并安装它,完了以后再安装openssh。
发表于 2002-12-2 20:51:18 | 显示全部楼层
我在winxp里用vm虚拟了个RedHat7.3。我想在RedHat7.3里学配dns服务器。我按照xchen兄的方法可是配不成功。是不是与双网卡的不一样。请问怎样配置。(我的RedHat7.3的IP设为192.168.0.1、winxp的为192.168.0.2)。
发表于 2002-12-2 23:04:28 | 显示全部楼层
在同一时刻,一台机器上运行有两个系统,它们相互之间或是单独对外的网络功能是否能用?理论上是否行得通?
我不大明白,惭愧,没玩过vm,知道的朋友讲来听听,谢!
发表于 2002-12-2 23:43:34 | 显示全部楼层
理论上应该可以吧。它们之间可以相互ping通,并且我在vm里的redhat7.3里设置web服务器,在winxp里的浏览器里输入redhat7.3的IP(192.168.0.1)就可以访问到redhat7.3的默认主页。
我重起了一下后在/etc/resolv.conf增加了一行search win2000并且在终端下里显示由原来的[root@localhost root]#变为[root@win2000 root]#这是什么原因呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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