找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3895|回复: 4

[原创]获得当地 DNS 地址的方法

[复制链接]
发表于 2005-6-12 11:51:52 | 显示全部楼层 |阅读模式
[watermark]Modem设置路由时,必须知道当地DNS服务器地址,怎么才能得到呢?自己的方法,不敢独享,特奉献出来,希望对你有所帮助。
当你设置好路由,保存重启后,刷新Modem的WEB界面,查看“系统日志”,其中
1/1/1970 0:20:17> PPP1: DNS Primary IP address is 210.52.107.2
1/1/1970 0:20:17> PPP1: DNS Secondary IP address is 210.53.31.2
就是你所需要的DNS地址了,填入Internet协议(TCP/IP)属性里即可。
我的大亚DB108-B刷成星网数码,设置好路由选项,还不清楚DNS地址时无法上网,系统日志是:
1/1/1970 0:0:15> ADSL connected
1/1/1970 0:0:15> PPP1 PPPoE Session is established.
1/1/1970 0:0:15> PPP PAP Authentication failed
1/1/1970 0:0:15> PPP Invalid Username or Password
1/1/1970 0:0:19> PPP1 Session is down.
1/1/1970 0:0:22> PPP1 PPPoE Session is terminated.
1/1/1970 0:20:17> PPP1 PPPoE Session is established.
1/1/1970 0:20:17> PPP PAP Authentication success
1/1/1970 0:20:17> PPP1: PPP IP address is 220.249.132.120
1/1/1970 0:20:17> PPP1: PPP Gateway IP address is 24.24.24.24
1/1/1970 0:20:17> PPP1: DNS Primary IP address is 210.52.107.2
1/1/1970 0:20:17> PPP1: DNS Secondary IP address is 210.53.31.2
1/1/1970 0:20:17> NAT/NAPT Session Start: interface ppp1, WAN IP is 220.249.132.120
1/1/1970 0:20:17> Initialized Dynamic NAPT.
1/1/1970 0:20:17> No Static Session Information is defined.
1/1/1970 0:20:17> PPP1 Session is up.
6/10/2005 18:18:22> Received time from Time Server 128.138.140.44
当填入正确的首选DNS服务器地址和备用DNS服务器地址(可不填),即可正常上网了,开机就连接好了。系统日志是:
1/1/1970 0:0:0> Ethernet Device 0 Detected
1/1/1970 0:0:0> ATM: Detected
1/1/1970 0:0:0> ATM: Setting up vcc0, VPI=0, VCI=35
1/1/1970 0:0:0> Dynamic NAPT is enabled
1/1/1970 0:0:0> CfgMgr: ';Shtm.dlz'; module loaded.
1/1/1970 0:0:0> CfgMgr: ';Washer.dlz'; module loaded.
1/1/1970 0:0:0> Washer - washer_reg called!
1/1/1970 0:0:14> ATM Connected
1/1/1970 0:0:14> ATM layer is up, cell delineation achieved
1/1/1970 0:0:14> ADSL connected
1/1/1970 0:0:14> PPP1 PPPoE Session is established.
1/1/1970 0:0:14> PPP PAP Authentication success
1/1/1970 0:0:16> PPP1: PPP IP address is 220.249.131.215
1/1/1970 0:0:16> PPP1: PPP Gateway IP address is 24.24.24.24
1/1/1970 0:0:16> PPP1: DNS Primary IP address is 210.52.107.2
1/1/1970 0:0:16> PPP1: DNS Secondary IP address is 210.53.31.2
1/1/1970 0:0:16> NAT/NAPT Session Start: interface ppp1, WAN IP is 220.249.131.215
1/1/1970 0:0:16> Initialized Dynamic NAPT.
1/1/1970 0:0:16> No Static Session Information is defined.
1/1/1970 0:0:16> PPP1 Session is up.
[/watermark]
发表于 2005-6-12 12:10:59 | 显示全部楼层

[原创]获得当地 DNS 地址的方法

不用如此麻烦,把DNS设置为MODEM的IP一样的可以。因为MODEM可以做DNS转发的。
 楼主| 发表于 2005-6-12 12:35:57 | 显示全部楼层

[原创]获得当地 DNS 地址的方法

我按照楼上的方法试试了,不管用啊
发表于 2005-6-12 12:53:49 | 显示全部楼层

[原创]获得当地 DNS 地址的方法

可以先拨号
用nslookup就可以看到DNS了(2K, XP才能用这个命令)
发表于 2005-6-12 13:30:38 | 显示全部楼层

[原创]获得当地 DNS 地址的方法

回3楼:
MODEM处于路由方式时,DNS转发都是打开的。
除非刻意把它关闭。
*滑块验证:
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|宽带技术网 |网站地图 粤公网安备44152102000001号

GMT+8, 2025-5-16 02:36 , Processed in 0.020675 second(s), 3 queries , Redis On.

Powered by Discuz! X3.5 Licensed

Copyright © 2001-2020, Tencent Cloud.

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