LinuxQuestions.org
Review your favorite Linux distribution.
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 03-01-2012, 11:04 AM   #1
petermrice
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Rep: Reputation: Disabled
host name not resolved


I have a server (Red Hat 6.0) named XXServer with a static IP address. When I run
host XXServer
it replies that the host is not found.
JBoss is failing to start because it hits this problem.
All other network functions work well, including accessing other hosts.
 
Old 03-01-2012, 11:14 AM   #2
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
hmm u need be some more specific..

give the output of these commands:

cat /etc/resolv.conf

and

also have you configured dns server on your xxserver...

this is to be answered ....

in between u can try making an entry in resolv.conf file under /etc..

hope it helps..
 
Old 03-01-2012, 11:40 AM   #3
petermrice
LQ Newbie
 
Registered: Mar 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
/etc/resolv.conf has two lines
nameserver <ip of nameserver>
nameserver <ip of alternative nameserver>

This server is not set up to do dns.
 
Old 03-01-2012, 04:12 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
host or hostname issue? I am confused.
 
Old 03-02-2012, 12:37 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Please post output of
Code:
cat /etc/resolv.conf

cat /etc/hosts

hostname

ifconfig


# for this, use matching file as indicated by output of ifconfig above
cat /etc/sysconfig/network-scripts/ifcfg-eth0

cat /etc/nsswitch.conf
 
Old 03-02-2012, 12:40 AM   #6
yashdesai7
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
Hello Everyone

I am trying to connect pop3 server using telnet hostname 110
It is showing connected but I am unable to execute commands like user.. pass etc..
and same problem for SMTp port 25 ..

Please help
 
Old 03-02-2012, 01:12 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
@yashdesai7: please start a new thread.
 
Old 03-02-2012, 01:38 AM   #8
yashdesai7
LQ Newbie
 
Registered: Feb 2012
Posts: 9

Rep: Reputation: Disabled
How to start new thread.. I know its very silly question.. but as a new subscriber. I am not able to find option for starting new thread..
sorry..!!
 
Old 03-02-2012, 06:25 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
See if this works to post a new topic or question.

http://www.linuxquestions.org/questi...=newthread&f=3
 
Old 03-13-2012, 07:09 AM   #10
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 664

Rep: Reputation: 80
Quote:
Originally Posted by petermrice View Post
/etc/resolv.conf has two lines
nameserver <ip of nameserver>
nameserver <ip of alternative nameserver>

This server is not set up to do dns.
ofcorse ot wont work ...

you have to specify a **hostname or to configure a dns to do that...

for more help i'll prefer u should answer above requested outputs here ...as specified by a GURU user....above
 
Old 03-15-2012, 09:55 AM   #11
RobertEachus
Member
 
Registered: Dec 2011
Posts: 32

Rep: Reputation: 8
The quick and dirty solution would be to add the servers real name and IP to /etc/hosts (Not best practice, but can be ok for labs or tests.)
Example 1
Code:
192.168.1.13	xxserver.mydomain.org  xxserver
Example 2
Code:
192.168.1.13	xxserver
Better would be to set up the server to resolve DNS and have the server name added to DNS so that the host name can be resolved by the DNS servers.
 
  


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
Forwarding ping packets from one 1st host to 2nd host via 2rd host sachee Linux - Networking 1 09-25-2011 02:51 PM
No TCP connection to host if the DNS resolved IP same as gateway IP rbhuksin Linux - Networking 6 07-24-2009 02:42 PM
try install host ; bind9-host uninstalled , how to undo sudo apt-get install host? shojaru Linux - Newbie 0 06-11-2009 01:45 AM
mysql host could not be resolved Longinus Linux - Software 1 04-03-2004 10:48 PM
how many threads get resolved pfunk LQ Suggestions & Feedback 5 11-20-2003 02:50 PM


All times are GMT -5. The time now is 02:33 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration