LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   host name not resolved (https://www.linuxquestions.org/questions/linux-newbie-8/host-name-not-resolved-932176/)

petermrice 03-01-2012 10:04 AM

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.

SAbhi 03-01-2012 10:14 AM

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..

petermrice 03-01-2012 10:40 AM

/etc/resolv.conf has two lines
nameserver <ip of nameserver>
nameserver <ip of alternative nameserver>

This server is not set up to do dns.

jefro 03-01-2012 03:12 PM

host or hostname issue? I am confused.

chrism01 03-01-2012 11:37 PM

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


yashdesai7 03-01-2012 11:40 PM

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

chrism01 03-02-2012 12:12 AM

@yashdesai7: please start a new thread.

yashdesai7 03-02-2012 12:38 AM

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..!!

jefro 03-02-2012 05:25 PM

See if this works to post a new topic or question.

http://www.linuxquestions.org/questi...=newthread&f=3

SAbhi 03-13-2012 06:09 AM

Quote:

Originally Posted by petermrice (Post 4616088)
/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

RobertEachus 03-15-2012 08:55 AM

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.


All times are GMT -5. The time now is 11:30 PM.