LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-13-2005, 11:50 AM   #1
stanleytiew
LQ Newbie
 
Registered: Apr 2005
Posts: 7

Rep: Reputation: 0
resolv.conf


I'm new in Linux and need some help. My server is install with Linux Redhat Enterpise 3.0 AS, Linux software is running well and had been connected to fixed IP address. I can ping my server using IP address. I'm now ordering cpanel software from cpanel inc and requesting cpanel inc to do installation of software for me. However cpanel support team told me my server having problem because it is unable to ping my domain name, they ask me to add valid DNS server IPs to /etc/resolv.conf

I do not know how to do it since I not familiar with Linux, normally in Windows we have c:\ and we can move from one folder to another, but in Linux there is no folder so how do I entering /etc/resolv.conf folder

Please help.
 
Old 05-13-2005, 01:08 PM   #2
rpb
Member
 
Registered: Mar 2005
Location: the thrid rock from the sun
Distribution: Red Hat 8, FC 3
Posts: 31

Rep: Reputation: 15
hi,

hope you are familiar with DNS etc, though u're not familiar with linux..

/etc/resolv.conf is not a directory, resolv.conf is a file in /etc directory...you just have to add the your name servers onto this file. you can do it by using any text editor in linux..you can try gedit, or any other GUI based text tool...add the following lines and hopefully it should work..

nameserver <ip address>
nameserver <ip address>

in that order of primary, secondary DNS etc...thats all.

oh well, before editing the file, do the following as root:

/etc/init.d/network stop

after editing the file,

/etc/init.d/network start


hope this helps...

rpb
 
Old 05-13-2005, 04:25 PM   #3
depdiver
Member
 
Registered: Aug 2004
Distribution: RedHat Enterprise, SLED 10, Freespire
Posts: 49

Rep: Reputation: 15
adding search <your domain name> to that /etc/resolv.conf makes life much easier by allowing you to ping a host name without adding the domain.

mine looks similar to this

Code:
search mydomain.com
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

Dep
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
resolv.conf albundy Linux - Software 5 12-14-2004 03:12 PM
resolv.conf jmdlcar Slackware 9 05-15-2004 11:44 AM
resolv.conf ricemark20 Linux - Networking 12 11-11-2003 04:08 PM
resolv.conf dnsbum Linux - Networking 1 10-21-2003 12:00 PM
resolv.conf Culbert Linux - Networking 8 03-20-2003 04:11 PM


All times are GMT -5. The time now is 05:18 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration