当前位置: 首页 > news >正文

DNS指向别名还是IP

现在有一台服务器dbprod126,ip是172.22.100.4

现在有一个需求,需要在dns中对dbprod126建一个别名wondadb3r的记录,也就是ping wondadb3r的时候显示的是dbprod126的ip,目前有两​种方法,主要使用方法1指向别名,因为使用方法1的时候,如果dbprod126更改了ip,以后ping wondadb3r也会显示更改后的ip
方法1:指向别名,在dns中,建立wondadb3r指向服务器dbprod126,结果类似图中name为DWPROD2R的记录
方法2:指向ip,在dns中,建立wondadb3r指向ip 172.22.100.4,结果类似图中name为DWdbalias的记录
在这里插入图片描述
方法1的ping结果,dwprod2r和dbprod83指向通一个ip,但是ping dwprod2r时显示的是dbprod83

C:\Users\lukes.liao>ping dwprod2r
Pinging dbprod83.dai.netdai.com [172.22.100.45] with 32 bytes of data:
Reply from 172.22.100.45: bytes=32 time=136ms TTL=123
Reply from 172.22.100.45: bytes=32 time=135ms TTL=123
Reply from 172.22.100.45: bytes=32 time=135ms TTL=123
Reply from 172.22.100.45: bytes=32 time=138ms TTL=123C:\Users\lukes.liao>ping dbprod83
Pinging dbprod83.dai.netdai.com [172.22.100.45] with 32 bytes of data:
Reply from 172.22.100.45: bytes=32 time=135ms TTL=123
Reply from 172.22.100.45: bytes=32 time=134ms TTL=123
Reply from 172.22.100.45: bytes=32 time=134ms TTL=123
Reply from 172.22.100.45: bytes=32 time=135ms TTL=123

方法2的ping结果,dwdbalias和dbprod4指向通一个ip,但是ping dwdbalias时显示dwdbalias自己而不显示dbprod4

C:\Users\lukes.liao>ping dwdbalias
Pinging dwdbalias.dai.netdai.com [172.22.100.75] with 32 bytes of data:
Reply from 172.22.100.75: bytes=32 time=138ms TTL=123
Reply from 172.22.100.75: bytes=32 time=136ms TTL=123
Reply from 172.22.100.75: bytes=32 time=135ms TTL=123
Reply from 172.22.100.75: bytes=32 time=135ms TTL=123C:\Users\lukes.liao>ping dbprod4
Pinging dbprod4.dai.netdai.com [172.22.100.75] with 32 bytes of data:
Reply from 172.22.100.75: bytes=32 time=134ms TTL=123
Reply from 172.22.100.75: bytes=32 time=134ms TTL=123
Reply from 172.22.100.75: bytes=32 time=134ms TTL=123
Reply from 172.22.100.75: bytes=32 time=134ms TTL=123
http://www.lryc.cn/news/148235.html

相关文章:

  • 【考研数学】概率论与数理统计 —— 第二章 | 一维随机变量及其分布(1,基本概念与随机变量常见类型)
  • CSS判断手机暗黑模式
  • 【java中的Set集合】HashSet、LinkedHashSet、TreeSet(最通俗易懂版!!)
  • python中的文件操作
  • spark支持深度学习批量推理
  • 代码随想录打卡—day52—【子序列问题】— 8.31 最大子序列
  • gcc4.8.5升级到gcc4.9.2
  • Golang 中的 archive/zip 包详解(三):常用函数
  • 微服务架构七种模式
  • 关于CICD流水线的前端项目运行错误,npm项目环境配置时出现报错:Not Found - GET https://registry.npm...
  • element-plus的周选择器 一周从周一开始
  • Android 9.0 pms获取应用列表时过滤掉某些app功能实现
  • HTML <thead> 标签
  • 谷歌发布Gemini以5倍速击败GPT-4
  • 力扣92. 局部反转链表
  • 九、适配器模式
  • 使用spring自带的发布订阅来实现发布订阅
  • Walmart电商促销活动即将开始,如何做促销活动?需要注意什么?
  • Matlab(画图进阶)
  • 人生的回忆
  • Spring之依赖注入源码解析
  • 5G NR:RACH流程-- Msg1之生成PRACH Preamble
  • 高基数类别特征预处理:平均数编码 | 京东云技术团队
  • 高效利用隧道代理实现无阻塞数据采集
  • 图论岛屿问题DFS+BFS
  • Cypress web自动化windows环境npm安装Cypress
  • CentOS7.9设置ntp时间同步
  • 36、springboot --- 对 tomcat服务器 和 undertow服务器 配置访客日志
  • MySQL表的增删改查
  • yolov3