try "emacs -nw /etc/resolv.conf"

or try vi
you'll need to read abit to get vi to work.

or just
echo "nameserver 1.2.3.4" >> /etc/resolv.conf

hope that helps