umm on inferno you can do
<>/net/dns {
echo -n ip www.google.com > [1=0];
addr:=`{read};
echo $addr
}sorry thats not actually answering your question but I thought it might be of some use.
Abhey On 17 Mar 2006, at 21:06, erik quanstrom wrote:
to do a dns query directly, one needs to open /net/dns and write the query and read the results on the same fd. how can this be done with rc? - erik
