免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: ttplay
打印 上一主题 下一主题

门户网站为什么要用DNS轮循? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-01-07 20:06 |只看该作者
原帖由 xufengnju 于 2009-1-7 17:11 发表


"修改DNS的生效时间却要超过几个小时" 这个论段不是十分准确,即使考虑ISP等的name server的缓存机制。
看下news.sina.com.cn

[root@localhost ~]# dig news.sina.com.cn

;  DiG 9.2.4  news.sina. ...

这是我的经验值, 上次我这有服务器要迁移. 更换了IP. 一直等了6个小时...

论坛徽章:
0
12 [报告]
发表于 2009-01-08 08:54 |只看该作者

回复 #12 ttplay 的帖子

solve this problem.you can use iptables nat


1.how to control port forward

first active port forward,please modify or add  in /etc/sysctl.conf as follows,

net.ipv4.ip_forward = 1
net.ipv4.conf.default.rp_filter = 1
kernel.sysrq=0



second ,please add below lines to iptables nat tables

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -d 219.146.117.27 -i eth0 -p tcp --dport 80 -j DNAT --to-destination 61.156.40.112


my purpose is when visiting 219.146.117.27:80.redirect your request to 61.156.40.112

[ 本帖最后由 todayhero 于 2009-1-8 08:57 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2009-01-08 14:56 |只看该作者
原帖由 ttplay 于 2009-1-7 20:06 发表

这是我的经验值, 上次我这有服务器要迁移. 更换了IP. 一直等了6个小时...



只要NS服务器你自已能控制,ttl收敛时间调成5分钟也可以,大家可以dig g.cn看看。

论坛徽章:
0
14 [报告]
发表于 2009-01-08 18:53 |只看该作者
原帖由 todayhero 于 2009-1-8 08:54 发表
solve this problem.you can use iptables nat


1.how to control port forward

first active port forward,please modify or add  in /etc/sysctl.conf as follows,

net.ipv4.ip_forward = 1
net.i ...

莫明其妙!

你设个重定向干嘛!

论坛徽章:
0
15 [报告]
发表于 2009-01-08 23:34 |只看该作者
when changing your computer ip address.because of dns cache.some users can't visist your website immediate.because they still visit the original ip address.you can do port forward on original ip.let some user visist that original ip,and then visist them to your new ip address.

论坛徽章:
0
16 [报告]
发表于 2009-01-09 00:31 |只看该作者
ttplay 你激动个鸟啊,新浪的a记录的ttl是 10min的,而且出来轮询的ip一般都是群集的ip,vip来的,比如f5设备 ,squid群集,后面对应的是内网n台机器支撑着,挂几台没啥的,群集的交换机也是有互备的,死不了。。。就怕机房线路故障,但是按ttl最多影响几分钟,切换到其他机房时间,前不久,qq就部分线路挂了次。。。
----------------------------------------------------------------------------------------------
还整个我是专门来破坏CU和谐的. bs你。。。

论坛徽章:
0
17 [报告]
发表于 2009-01-09 00:42 |只看该作者
原帖由 todayhero 于 2009-1-8 23:34 发表
when changing your computer ip address.because of dns cache.some users can't visist your website immediate.because they still visit the original ip address.you can do port forward on original ip. ...

问题是: 如像我上次,把主机从2楼搬到3楼, 不得不换IP. 你咋弄这重定向?

论坛徽章:
0
18 [报告]
发表于 2009-01-09 00:44 |只看该作者
原帖由 jake8 于 2009-1-9 00:31 发表
ttplay 你激动个鸟啊,新浪的a记录的ttl是 10min的,而且出来轮询的ip一般都是群集的ip,vip来的,比如f5设备 ,squid群集,后面对应的是内网n台机器支撑着,挂几台没啥的,群集的交换机也是有互备的,死 ...

SB,你不说话,没人把你当哑巴. ttl就你懂?

论坛徽章:
0
19 [报告]
发表于 2009-01-09 00:45 |只看该作者
。。。就你这样的sb,赖得鸟你。。。

论坛徽章:
0
20 [报告]
发表于 2009-01-09 00:49 |只看该作者
原帖由 ttplay 于 2009-1-9 00:42 发表

问题是: 如像我上次,把主机从2楼搬到3楼, 不得不换IP. 你咋弄这重定向?

这样的sb问题也问得出?你说你懂 ttl?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP