Next Topic

Previous Topic

Book Contents

Sample Script: TLuaDNS

DNS = TLuaDNS();
DNS:Begin(true);

if DNS:Query("microsoft.com",TLuaDNS.LuaDNS_TYPE_MX,false) then

	Record = TLuaDNS_MXRecord();

	while (DNS:Next(Record)) do
		print(Record.m_sNameExchange);
	end

	SetExitStatus("Test ok",true);

else
	SetExitStatus("Test failed",false);
end