DNS query: Difference between revisions
Content added Content deleted
(Added entry for unix statement/function in FB 7.0.23 and newer) |
|||
Line 1,084: | Line 1,084: | ||
=={{header|FutureBasic}}== |
=={{header|FutureBasic}}== |
||
FB has several ways to query a DNS server |
FB has several ways to query a DNS server. In FB 7.0.23 the unix statement/function was added making such queries trivial: |
||
<syntaxhighlight lang="futurebasic"> |
<syntaxhighlight lang="futurebasic"> |
||
print unix @"nslookup -querytype=A www.kame.net" |
|||
HandleEvents |
|||
</syntaxhighlight> |
|||
Classic FB: |
|||
<syntaxhighlight> |
|||
Str255 UnixCommand |
Str255 UnixCommand |
||
Str255 UnixResponse |
Str255 UnixResponse |