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?
Something like
<>[4]/dev/dns { echo foo >[4]; cat <[4] }
?
I don't have a machine handy with which to test this ...
