Dumb DNS question

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Craig White
Dátum:  
Tárgy: Dumb DNS question
On Mon, 2003-08-04 at 08:52, Don Calfa wrote:
> How can I find out/change my DNS settings via command line without using
> netconfig?
>

----
echo "nameserver xxx.xxx.xxx.xxx" > /etc/resolv.conf

and maybe

echo "nameserver xxx.xxx.xxx.xxx" >> /etc/resolv.conf

one ">" will entirely replace the contents of the file
two ">" will append to the bottom of the file

Craig