Fedora Linux Support Community & Resources Center
  #1  
Old 9th October 2007, 04:38 PM
Gentoo Bob's Avatar
Gentoo Bob Offline
Registered User
 
Join Date: Oct 2007
Location: Indianapolis, IN
Age: 32
Posts: 119
Apache --> dns

I have FC7 installed here at work. I've got it joined to the domain (can see it in AD).

I'm running Apache for our groups little webserver. I created a little site just for us.


I can get to the webpage by doing a http://ip address but I can't get to it by http://hostname

I have /etc/sysconfig/network as HOSTNAME= hostname.domain.com

I have /etc/httpd/conf/httpd.conf as ServerName hostname.domain.com

I havent edited the /etc/hosts file cause I really dont need to.

I've disabled the firewall in FC7. Also, I cannot ping it by the hostname, just IP.

What am I doing wrong?
__________________
[FONT=Comic Sans MS]"I like mine with extra sugar please"[/FONT]

Linux/Unix distos currently used:
Fedora Core 8, Gentoo, and FreeBSD.
Reply With Quote
  #2  
Old 10th October 2007, 12:53 AM
Plankton's Avatar
Plankton Offline
Registered User
 
Join Date: May 2006
Posts: 25
The host name needs to get resolved either by looking in your /etc/hosts or via DNS. Is your host listed in a name server? You can check what DNS (name servers) your system is using by doing "cat /etc/resolv.conf" Try adding your host to your /etc/hosts and see what happens.
Reply With Quote
  #3  
Old 10th October 2007, 12:58 AM
blittle Offline
Registered User
 
Join Date: Jun 2007
Posts: 397
put an entry in your windows DNS your hosts that reference those servers will resolve the name correctly.

run this command on your client

nslookup
> server
an IP address will be returned, you need to make an entry on that server.

(if you're talking about from a client perspective)

from the server's perspective, type the command hostname on the command line, that's what it will resolve as the name for the assigned ip address.
__________________
My Smolt Profile
Reply With Quote
Reply

Tags
>, apache, dns

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure apache 2 with Apache tool box 1.5.72 kalpana Servers & Networking 2 18th February 2006 08:45 AM
How to change apache email address apache@localhost to admin@proporta.lk niloshima Servers & Networking 2 17th November 2005 11:36 AM
Upgrading to Apache Apache/2.0.52 - Lost ProxyPass foto Servers & Networking 1 24th July 2005 08:01 PM
apache fc3 questions: starting apache & file permissions mexicoshanty Servers & Networking 2 16th June 2005 07:56 AM
Custom apache module doesn't work in Apache 2 Skeptical Using Fedora 2 6th December 2004 07:32 AM


Current GMT-time: 16:31 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat