LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-01-2004, 09:06 AM   #1
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Rep: Reputation: 15
Post Accessing web server by the domain name


I'm having trouble accessing the domain name of my webserver from within the network it resides on. For example, I want to access the website from my workstation so I type in http://www.mydomain.com. I get a timed out message from within my browser. If I type the ip address which is 10.0.0.6, I have no problems accessing the site. I do have a problem with our hivemail installation, which says mail.mydomain.com could not be found (the hostname for the server is mail.mydomain.com). The domain is pointing to the router, which in turn is pointing all HTTP and mail ports to the server IP.

The server is running Slackware 10 without X installed.

Basically I'm pretty new with domain names and routing, so I'm wondering if I'm missing a setting or such since I would assume I could simply put in the domain name on my browser to access the server on the internal network.
 
Old 12-01-2004, 10:20 AM   #2
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
have you added it to /etc/hosts?

Code:
10.0.0.6 mydomain www.mydomain.com
I'm no expert but I hope this might point you in the right direction
 
Old 12-01-2004, 10:44 AM   #3
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
I just tried tacking that into /etc/hosts as you mentioned, however it doesn't seem to be helping. I have two DNS servers, the main one being a Windows 2003 domain and the other being built into my firewall (running BIND I would imagine). This problem I'm having is when trying to access the server from a windows machine...to the outside world the nles.k12.wi.us address seems to work just fine except when you don't specifiy index.php to the address in php scripts. It always says "mail.mydomain.com cannot be found". If you specify the index.php, things are peachy.
 
Old 12-01-2004, 01:32 PM   #4
Tuttle
Senior Member
 
Registered: Jul 2003
Location: Wellington, NZ
Distribution: mainly slackware
Posts: 1,291

Rep: Reputation: 52
Sorry, can't help any further, I have little experience of these things.
However, I had one experience with my 4-port router which would only allow the use of names ending in .dydns.org (or similar) and I was forced to use my linux box direct (without the router in the way) in order to use the name you see below in my sig. no-ip.com provided a small daemon - called "noip2" - to maintain sychronisation with their dns server.

Last edited by Tuttle; 12-01-2004 at 01:36 PM.
 
Old 12-01-2004, 01:40 PM   #5
bdogg
Member
 
Registered: Sep 2004
Location: Salt Lake City, UT
Distribution: Debian Sarge
Posts: 93

Rep: Reputation: 15
Quote:
Originally posted by Tuttle
have you added it to /etc/hosts?

Code:
10.0.0.6 mydomain www.mydomain.com
I'm no expert but I hope this might point you in the right direction
Try making it

10.0.0.6 www.mydomain.com
10.0.0.6 mail.mydomain.com

This could be a quick fix to a bigger problem. You mentioned that there is a windows server running on the network and it is running a DNS server? Should the windows DNS server know that mydomain.com points to 10.0.0.6? In other words the question would be "Will other clients on your network on other machines ALSO need to know that mydomain.com points to 10.0.0.6?
 
Old 12-01-2004, 01:57 PM   #6
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
Yes, I'm starting to wonder if this is more Windows related (setting the DNS server to accept mydomain.com as 10.0.0.6 and vice versa). I'll give it a shot and see what I come up with.

So far I think DNS is a pain in the arse
 
Old 12-01-2004, 02:21 PM   #7
technician
Member
 
Registered: Jul 2003
Location: Wisconsin
Distribution: Slackware 10
Posts: 50

Original Poster
Rep: Reputation: 15
All right, after wading through the Win2k3 DNS I:

1. Created a new primary zone
2. Named it mydomain.com
3. Added a class A host to it called mail with the ip 10.0.0.6

Everything seems to be in order now. Sorry for posting this on a Linux forum seeing as it's a Win2k3 issue, but I really appreciate the help guys, thanks!
 
  


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
Accessing Web Site dudeman41465 Linux - Networking 2 09-17-2005 10:36 AM
Accessing domain resource comtex Mandriva 0 09-24-2004 08:08 PM
Help me setting up my web server and win free 100MB webspace with your own domain abimanyu007 Linux - Networking 9 09-07-2004 05:17 PM
Accessing Web Server over Internet lawadm1 Linux - Software 4 08-04-2004 07:51 PM
Problems accessing my RH9 Apache web server from the URL! kman2045 Linux - Networking 7 01-10-2004 08:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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