|
楼主 |
发表于 2006-8-25 20:43:29
|
显示全部楼层
[root@RHEL4-3 ssl]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 RHEL4-3 localhost.localdomain localhost
#192.168.121.1 vmware vmware.hnisi.com.cn
#192.168.121.1 vmware vmware.test.org
#192.168.1.146 vmware vmware.hnisi.com.cn
#192.168.121.10 test1.test.org
[root@RHEL4-3 ssl]# dig test1.test.org
; <<>> DiG 9.2.4 <<>> test1.test.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60069
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;test1.test.org. IN A
;; ANSWER SECTION:
test1.test.org. 86400 IN A 192.168.121.10
;; AUTHORITY SECTION:
test.org. 86400 IN NS localhost.test.org.
;; Query time: 5 msec
;; SERVER: 192.168.121.4#53(192.168.121.4)
;; WHEN: Fri Aug 25 21:10:18 2006
;; MSG SIZE rcvd: 72
[root@RHEL4-3 ssl]# cat /etc/hosts.allow
#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
vsftpd : .test.org : DENY
[root@RHEL4-3 ssl]# ssh test1.test.org
root@test1.test.org's password:
Permission denied, please try again.
root@test1.test.org's password:
Last login: Sat Aug 26 05:43:08 2006 from 192.168.121.4
[root@test1 ~]# ftp RHEL4-3.test.org
Connected to RHEL4-3.test.org.
220 (vsFTPd 2.0.1)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (RHEL4-3.test.org:root): |
|