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

我在用模拟器搭建思科路由器解析名称的时候,解析不了,郁闷了,具体是这样的:
这个是我的拓扑图,我在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#
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值