mirror of
https://git.checksum.fail/alec/slon.git
synced 2025-12-08 12:09:55 +02:00
Meta: Add files to repository
This commit is contained in:
10
System/Utilities/Dns.HC
Normal file
10
System/Utilities/Dns.HC
Normal file
@@ -0,0 +1,10 @@
|
||||
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];
|
||||
}
|
||||
Reference in New Issue
Block a user