cat > resolv.conf
Scrivi quello che vuoi scrivere, poi vai a capo e fai ctrl+D