mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 20:19:56 +02:00
11 lines
261 B
HolyC
11 lines
261 B
HolyC
U0 DnsQuery(U8* host)
|
|
{
|
|
U32 result = @dns_query(host);
|
|
if (result == U32_MAX) {
|
|
"Error looking up host %s\n", host;
|
|
return;
|
|
}
|
|
"Query for %s: %d.%d.%d.%d\n", host, result.u8[3], result.u8[2], result.u8[1],
|
|
result.u8[0];
|
|
}
|