请教思科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#
这个是我的拓扑图,我在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#
相关文章推荐
- 排除DNS解析故障方法 Windows系统名称解析过程
- Win7系统日志提示在没有配置的 DNS 服务器响应之后,名称“域名”的名称解析超时的解放方法
- android学习笔记---44_在线视频播放器,网络视频解析器,SurfaceView 控件使用方法
- Java创建和解析Json数据方法(四)——Google Gson包的使用
- 使用Python解析JSON数据的基本方法
- Android使用Jsoup解析Html表格的方法
- js方法的命名不能使用表单元素的名称或ID
- Java创建和解析Json数据方法——org.json包的使用(转)
- php parse_url 函数使用方法解析
- JSONObject使用方法详解json解析
- Java解析json文件的方法--直接拷贝可以使用
- 实例解析Android中使用Pull解析器解析XML的方法
- IOS数据解析_使用GDataXML解析,多层结构,相同目录的方法
- 详细解析IOS中的CGContextAddArcToPoint方法的使用
- 解析在PHP中使用全局变量的几种方法
- python 各种解析xml包使用方法总结 - 转
- 【类库解析】一个轻量级C++ xml解释器 TinyXML的使用方法
- 织梦CMS程序使用拼音首字母做栏目名称的方法
- Developer Express V9.2中的 WPF Theme使用方法及资源名称总结