高手急救··我是菜鸟··
下列代码如何理解,是否可用类C进行编写。
[sigma]# dig @ 10.1.1.100 version.bind chaos txt
;<<>\>Dig 8.1 <<>\>@ 10.1.1.100 version.bind chaos txt
;{ 1 server found }
;;res options: init recurs defnam dnsrch
;;got answer:
;;->\>HEADER<<- opcode: QUERY, status: NOERROR, id: 10
;;flags: qr aa rd ra ; QUERY: 1, ANSWER: 1,AUTHORITY: 0,ADDITIONAL: 0
;;QUERY SECTION:
;;version.bind, type-txt, class-CHAOS
;;ANSWER SECTION:
VERSION BIND, OS CHAOS TXT “8.2.2”
[itchy]# nolookup
Defailt server:localhost.attackers.org
Address: 127.0.0.1
> server 10.1.1.100
Default server:dns.victim.net
Address: 10.1.1.100
> hash.attackers.org
Server:dns.victim.net
Address:10.1.1.100
------解决方案--------------------
我不是在另外一个帖子告诉你了吗?
nslookup 和dig命令的源码 都是c语言