LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-31-2011, 07:35 AM   #1
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
hostname resolving problem in centos


Hi all,

One of our development server experienced a problem today after reboot.

The problem is server could not able to connect to both LAN and WAN.

I checked all network settings everything is fine,but still i could not able to connect to the network.

I have noticed this is /var/log/messages file

Dec 31 18:51:58 csopb automount[2706]: create_udp_client:90: hostname lookup failed: No such file or directory

Dec 31 18:52:08 csopb automount[2706]: create_tcp_client:299: hostname lookup failed: No such file or directory

Dec 31 18:52:08 csopb automount[2706]: look_mount: exports lookup failed for sf

I am clueless,continuosly i am getting these messages.Your suggestions would be helpful.

Thanks in advance,
Dinesh.
 
Old 12-31-2011, 09:14 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
If you were to log in as root (or use su - or sudo) and enter
Code:
hostname
in a terminal window on that server, you should see the name of the server. If you don't, chances are that you either do not have /etc/HOSTNAME or you do and it's empty.

You should carefully read the manual page (man hostname) for options.

Addition.

You may want to double-check your network configuration; if you're using fixed-IP addressing, do you have the correct IP address set for the server, netmask and gateway server. Can you ping the gateway.

If your servers are using fixed-IP do you have entries in /etc/hosts for them; e.g.,
Code:
# For loopbacking.
127.0.0.1               localhost
192.168.1.10            thisserver.domain thisserver
192.168.1.20            thatserver.domain thatserver
192.168.1.30            otherserver.domain otherserver
If you have an internal; i.e., running on your LAN, domain name system (DNS) server, do you have its address in /etc/resolv.conf; e.g.,
Code:
search com
nameserver xx.xx.xxx.x     # Local DNS server
nameserver xx.xx.xxx.x     # External DNS server
And last but not least, is the cable plugged in?

Hope this helps some.

Last edited by tronayne; 01-01-2012 at 08:22 AM.
 
Old 01-01-2012, 12:26 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
First thing would be to check if you can ping other hosts on the LAN by IP address. If you can ping a host by IP, but cannot resolve its name (use dig or ping to find out) then your name resolution is a problem ... check and make sure you have the right nameservers listed in /etc/resolv.conf. If you can't ping a host by IP address, there's another problem with the network. Check with the ifconfig command to make sure that your network interfaces are up and their IP(s) are set properly.
 
  


Reply



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
CentOS 4.4 Changing hostname Problem Rush_898 Linux - Software 7 04-14-2008 03:58 PM
My hostname is NOT resolving correctly cucolin@ Linux - Networking 5 08-29-2007 10:22 AM
Problem resolving hostname with elinks / wget pk21 Linux - General 2 04-10-2006 09:22 PM
Resolving a hostname from it's ip? Infernal211283 Linux - Networking 3 01-09-2006 05:09 AM
FC4-a problem in resolving hostname jindo Linux - Networking 2 12-13-2005 02:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:28 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
Open Source Consulting | Domain Registration