DNS and my OS X Apache server on a LAN Intranet.

Posted:
in macOS edited January 2014
I used to have an OS 9 intranet web server (ASIP 6 ). I replaced it with Jag. :0)



I have an internal DNS server on an NT box. I had no problem naming the previous (ASIP, OS 9) web server "intranet" on my DNS server, so that my company's users could surf to "intranet.mycompany.com" without having to enter 170.198.234.123. Cool. Loved it. Professional. I love DNS.



But...



With my new OS X (10.2.1) web server (Apache 1.3.26), I can't seem to connect to the server with a web browser unless I point to it's hard IP address. If I point to it's name ("intranet.mycompany.com"), it fails.





I am stumped. I did everything right:

I made a new entry for my OS X's name on the DNS box.

I gave the OS X box a static IP. No DHCP issues or conflicts.



I can ping the server, and I can connect to the server by IP, but not by name.



The server is a dedicated web server for 50 people. No other services are running.



All my servers and client desktop computers are configured with DNS properly. I see other computers by name with no problem. I just cant see the OS X box...





What is wrong?



Do I need to edit a network config file in X somewhere? A hosts file maybe?



Do I need to edit my Apache httpd.conf file?

Comments

  • Reply 1 of 2
    OK, it gets weider (sort of):



    I restarted my NT DNS services and that did the trick (sort of), Now I can ping my OS X server at intranet.mycompany.com, but I still can't connect to Apache using DNS, I HAVE to connect via IP address. It's weird. All my computers are pointed to the same DNS server, all of them are on the same subnet. Apache is working (via IP), I can ping the web server now, but I just can't connect using the servers DNS name...



    Gota be an OS X thing!



    Any ideas?
  • Reply 2 of 2
    OK, you first have to make sure you have root access. Next you will want to pico your httpd.conf file found in /etc/httpd/ area. (this means you will be editing the file)



    Note: assuming your in your /etc/httpd/ directory first make a backup of your httpd.conf file

    you would type:

    cp httpd.conf httpd.conf.old



    Next, pico your httpd.conf file

    you would type:

    pico httpd.conf



    Scroll down to an area that says:

    #ServerName whatever



    Uncomment this (get rid of the #) and replace the whatever with your full qualified server name.

    mycomputer.mycompany.com



    <control x> to exit pico - it will ask you to save and you say Y



    thats it - turn file sharing off then on and that should work. You can also achieve same results with Virtual Host. (located at the bottom of your httpd.conf file.
Sign In or Register to comment.