LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-16-2004, 06:33 AM   #1
anupverma
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Rep: Reputation: 15
problem in hostname resolution


Hai,
I had recently installed the apache webserver in red hat8.0 linux ...i hav created a virtual host and i connected with the LAN . when from client side (another PC in LAN) i tried to connect with linux webserver the home page for the virtual is opened ,but only when,when i give the URL as ipaddress but if i give the hostname then it is unable to open the page or unable to resolv the host name
......as I am very new to the linux as well as in webserver
SO i need help in detail to resolv this problem.
Thanx
 
Old 05-16-2004, 06:48 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Do you have the hostname of the webserver on a DNS server or in your clients hosts file?
 
Old 05-17-2004, 03:31 AM   #3
anupverma
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
thanx for the reply,
well in my DNS ..hostname is configured .But it works properly or not how i can find ?
I don't want to enter the hostname in the hosts file of client ,well if i do it works ,but we hav a long list of clients so it is difficult and even not possible to resolv the hostname in clients host file ..
I want to do it only from the server side.
Thanx .
 
Old 05-17-2004, 01:08 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You could check if the dns is correct by querying your DNS server - eg:
dig www.yourhost.com A

Does it return the IP address of your server?
 
Old 05-18-2004, 08:23 AM   #5
anupverma
LQ Newbie
 
Registered: Apr 2004
Posts: 24

Original Poster
Rep: Reputation: 15
hai,
When i give the command dig hostname it is returning me the primary DNS not the ip address of my server.
 
Old 05-18-2004, 12:27 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Then you will need to update your DNS server to point to the right IP.
 
  


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
hostname resolution problems. FLOODS Fedora 4 10-27-2005 07:58 PM
Automatic Hostname Resolution douceur Linux - Networking 3 06-21-2005 04:50 AM
Linux Hostname resolution, etc... nex6 Linux - Enterprise 2 12-28-2004 03:28 PM
Hostname resolution not working akela Linux - Networking 0 06-07-2003 01:17 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 05:01 PM


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

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