The invention discloses a synchronous and automatic Intelligent DNS system and a configuration method, including step 1: the configuration receiving module on each bind server sends a connection request to the central configuration node, verifies the key, establishes a long connection if the verification succeeds, disconnects the connection if the verification fails, step 2: when the configuration file of the central configuration node is updated, the configuration node automatically generates the latest Push the configuration file and the current time stamp of the local server to the message channel; step 3: after the configuration receiving module receives the configuration, verify the last received time stamp and the current time stamp. If the time stamp is the same as the last time or the time is older than the last time, it indicates that the configuration is abnormal, then discard the current received configuration; if the time stamp is newer, calculate and compare Compare the hash values of the local configuration and the receive configuration, if not, update the local configuration; step 4: after the configuration module updates the configuration, control the bind server to configure the hot load update the latest configuration.
【技术实现步骤摘要】
一种同步自动化的智能DNS系统及配置方法
本专利技术涉计算机网络领域,具体的说,是一种同步自动化的智能DNS系统及配置方法。
技术介绍
在IP网络中,DNS是最关键的基础服务之一,其主要功能是将域名与IP地址作转换。通过DNS服务器的查询服务,可以找到站点或资源的入口,进而进行访问。BIND(BerkeleyInternetNameDomain,伯克莱网间名域)是目前最常用的DNS服务器软件,其配置文件包括:named.conf文件:记录BIND安装路径、acl文件的存放路径、view文件的存放路径、日志的存放路径;view文件:包含多个view(区域),每个view记录了地区信息、运营商信息、域名信息的组合对应的zone文件的存放路径;zone文件:记录view对应的解析记录信息;acl文件:记录view对应的IP地址信息。这四个配置文件控制了一台bind服务器完整的DNS解析策略,若DNS集群存在配置不一致的情况,则会导致域名解析异常。现有技术中,BIND软件的配置同步多半采用配置主从服务器的方案,即将一台BIND服务器作为master,其余的作为slaver与master保持同步;现有技术配置BIND主从服务器的重点流程如下:生成密钥用于主从服务器的身份验证;修改主服务器配置,将自身角色配置为master,添加生成的密钥,在允许复制配置选项中加入从服务器的ip地址;修改从服务器配置,将自身角色配置为slaver,添加生成的密钥,并添加master服务器的ip地址; ...
【技术保护点】
1.一种同步自动化的智能DNS配置方法,其特征在于,所述方法包括如下步骤:/n步骤1:每个BIND服务器上的配置接收模块向中心配置节点发起连接请求,验证密钥,若验证成功则建立长连接,配置接收模块主动监听中心配置节点的消息通道接收消息;若验证失败则断开连接;/n步骤2:当中心配置节点的配置文件更新时,配置节点自动生成最新的配置文件,并将配置文件和本机服务器的当前时间戳推送至消息通道;/n步骤3:配置接收模块收到配置后,校验上一次收到的时间戳与本次的时间戳,若本次时间戳与上次一致或时间比上次旧,表明配置异常,则丢弃本次接收的配置;若本次时间戳较新,计算并比较本地配置与接收配置的哈希值,若不一致则更新本地配置;/n步骤4:配置模块更新配置后,控制BIND服务器进行配置热加载更新最新配置。/n
【技术特征摘要】
1.一种同步自动化的智能DNS配置方法,其特征在于,所述方法包括如下步骤:
步骤1:每个BIND服务器上的配置接收模块向中心配置节点发起连接请求,验证密钥,若验证成功则建立长连接,配置接收模块主动监听中心配置节点的消息通道接收消息;若验证失败则断开连接;
步骤2:当中心配置节点的配置文件更新时,配置节点自动生成最新的配置文件,并将配置文件和本机服务器的当前时间戳推送至消息通道;
步骤3:配置接收模块收到配置后,校验上一次收到的时间戳与本次的时间戳,若本次时间戳与上次一致或时间比上次旧,表明配置异常,则丢弃本次接收的配置;若本次时间戳较新,计算并比较本地配置与接收配置的哈希值,若不一致则更新本地配置;
步骤4:配置模块更新配置后,控制BIND服务器进行配置热加载更新最新配置。
2.根据权利要求1所述的同步自动化的智能DNS配置方法,其特征在于,所有的BIND服务器地位均等,彼此之间不互相访问,每台服务器的配置文件均从中心配置节点获取。
3.根据权利要求1所述的同步自动化的智能DN...
【专利技术属性】
技术研发人员:文有庆,杨川,常清雪,
申请(专利权)人:四川长虹电器股份有限公司,
类型:发明
国别省市:四川;51
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。