您的位置:首页 > 其它

请教思科DNS解析名称使用方法

2012-01-19 16:55 429 查看
我在用模拟器搭建思科路由器解析名称的时候,解析不了,郁闷了,具体是这样的:


这个是我的拓扑图,我在RTA上,设置好了。

RTA(config)#ip host R1 2.2.2.2

RTA#ping r1

Translating "r1"...domain server (2.2.2.2)

% Unrecognized host or address or protocol not running.

RTA#CONFigure

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line. End with CNTL/Z.

RTA(config)# IP NAME

RTA(config)# IP NAME-server 10.10.10.1

RTA(config)#ip domain-na

RTA(config)#ip domain-name baidu.com

RTA(config)#end

RTA#

%SYS-5-CONFIG_I: Configured from console by console

RTA#ping R1

Translating "R1"...domain server (10.10.10.1)

% Unrecognized host or address or protocol not running.

RTA#show

RTA#show hos

RTA#show hosts

Default Domain is not set

Name/address lookup uses domain service

Name servers are 10.10.10.1

Codes: UN - unknown, EX - expired, OK - OK, ?? - revalidate

temp - temporary, perm - permanent

NA - Not Applicable None - Not defined

Host Port Flags Age Type Address(es)

R1 None (perm, OK) 0 IP 2.2.2.2

但是就是解析R1 ping不通,何解??谢谢啊,真的很谢谢啊,,

最佳答案 ( 回答者: siumem )

刚才没有仔细看你的每一行,抱歉。

% Unrecognized host or address or protocol not running.

上面这一句说明你的2.2.2.2根本没有响应。

你这个根本就不需要DNS的,你已经配置好了ip host R1 2.2.2.2 ,路由器已经知道了R1对应 2.2.2.2

而你又配置了IP NAME-server 10.10.10.1,路由器每次碰到非系统内置的命令,就跑到10.10.10.1去解析一下,而你的10.10.10.1貌似根本不能到达?

10.10.10.1Translating "R1"...domain server (10.10.10.1)

% Unrecognized host or address or protocol not running.

首先你试试能不能在路由器上PING通2.2.2.2和10.10.10.1两个HOST ?

路由器上的测试:

我把TEST指向192.168.123.197,再PING TEST

HC_Voice(config)#ip host TEST 192.168.123.197

HC_Voice(config)#exi

HC_Voice#ping test

Translating "test"

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.123.197, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

HC_Voice#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: