• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 177
  • Last Modified:

Change DNS (or whatever) so when users go to intranet.company.com it points to servername (part 2)

In a previous questions: http://www.experts-exchange.com/Networking/Microsoft_Network/Q_21839442.html

I found out how to point intranet.company.com to 192.168.10.17 (which is the IP Address for my server called "servername".  

But now I want to point department.company.com to http://servername/sites/department.

The first time I was pointing to my root SharePoint site so just pointing to the IP Address worked.  Now I am going to a particular site within SharePoint.  How do I do that?  I imagine instead of adding a Host (A) I have to add something else in DNS, but I can't figure it out.

Thanks

Doug
0
dougshepard
Asked:
dougshepard
  • 3
  • 2
1 Solution
 
pcaiooCommented:
put this to default.htm in directory of department.company.com
<BODY onLoad="redirect()">
      <form method="post" action="http://servername/sites/department">
      <input name="test" value="test"  type="hidden" />
      </form>
      <SCRIPT language="javascript">
            function redirect(){
             setTimeout('document.forms[0].submit();', 100);
            }
      </SCRIPT>
</BODY>
0
 
Keith AlabasterCommented:
You cannot use DNS for this purpose. DNS will only return the IP address; nothing else.

You need to really use either the headers from within the IIS if the script submitted above does not help.
0
 
pcaiooCommented:
My script above should help you to work as you wanted.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
dougshepardAuthor Commented:
But there is no directory "department.company.com"... it's just the address I want to use... not a real location.

Doug
0
 
pcaiooCommented:
add a directory for the site is the easiest way to make it
0
 
Keith AlabasterCommented:
Still believe the answer is no.
0

Featured Post

Granular recovery for Microsoft Exchange

With Veeam Explorer for Microsoft Exchange you can choose the Exchange Servers and restore points you’re interested in, and Veeam Explorer will present the contents of those mailbox stores for browsing, searching and exporting.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now