⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 algo

📁 bind 源码 最新实现 linux/unix/windows平台
💻
字号:
Just for info, can be out of date.RFC 1876, 5.2, specially 5.2.3Important points:- LOC RRs are always attached to a *name*.- we can have two (or more) RRs for one address, one more specific than the othermain if (host is a name) 	getLOCbyname else # host is an IP address		gethostbyaddr	if (name) 		getLOCbyname		# If there is none, do not search. We assume the above was sufficient	       # (But check 5.2.2)	else		getLOCbyaddressgetLOCbyname (host) 	get LOC for host	if (it exists)		OK	else		get all A records of the name		foreach A record			getLOCbyaddress			OK at the first one found 				# we assume they are consistent		ENDgetLOCbyaddress (address)	# May receive a mask. Otherwise, deduce it from the class	makeNetAddress	getLOCbynetworkgetLOCbynetwork	get PTR and A for it	if (exist)		getLOCbyname	******* DIFFICULT : we have to manage a stack. See the code		makeNetAddress (level--)		getLOCbynetwork	else		END	

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -