LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Command line DNS settings (http://www.linuxquestions.org/questions/linux-software-2/command-line-dns-settings-223612/)

nateDiggsCSU 08-28-2004 03:52 PM

Command line DNS settings
 
Hello everyone--

I'm trying to set up a Fedora Core 2 server using the command line. I was able to set the ip address for the ethernet card but I am unable to figure out how to set DNS up through command line. I've been trying to google it for a little while with NO success. Any help other then just installing X?

slano 08-28-2004 04:29 PM

just edit the /etc/resolv.conf file and add this line to it:
Code:

nameserver 192.168.0.1
where 192.168.0.1 is the IP address of your preferred DNS


All times are GMT -5. The time now is 07:45 PM.