Avatar of acurasebas
acurasebas
 asked on

accessing website from inside the lan

ok so i just got a new job and i inherited a server.unfortunately whomever setup the server gave the internal domain the same name as the external domain so as you would expect when employees try to go to the website they are taken to the http://companyweb page from small business server 2003.

I've had this happen before and all i had to do was add a Host(A) record in the DNS for www pointed to the external ip address where the website is hosted but for some reason that is not working on this server. I also added a blank Host(A) record pointed to the external IP

I've cleared the dns cache, I even added a rules inside the etc\host file but nothing's working.  Is there anything else i'm missing that i'm supposed to do?
Microsoft IIS Web ServerSBSDNS

Avatar of undefined
Last Comment
DrDave242

8/22/2022 - Mon
M A

did u try ping the server by name?
 and check it resolves to the correct ip.
e.g. ping companyname.com
        ping www.companyname.com

if resolves to correct ip then problem with your webserver
acurasebas

ASKER
yes i ping it and it resolved to the correct external ip.. but if i go to the browser and go to it either www or naked domain it takes me to the dumb http://companyweb business server page
M A

-->dumb http://companyweb business server page
 I am not clear on this.

meanwhile please type the IP address of the webserver and check whether your page is opening or not?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
acurasebas

ASKER
http://companyweb is the intrnet site built in microsoft small business server..

so i open i browser and enter www.possosports.com and it takes me to http://companyweb (the intranet site)

yes i can hit site by IP
M A

How you open the intranet site http://companyweb?
Do you have a new forwardlookupzone "possosports.com" created in your internal DNS server?  If not please create one and create an A record www points to the external IP

Meanwhile Please try to open www.possosports.com from a PC which is out of domain and which has your internal dns configured in it.
acurasebas

ASKER
yes you open the intranet site like that..

like i said on my first post.. i alrady created the www record and also a blank record in case people don't type www.  

i'll have to test the non member pc tomorrow when i get to the office and see.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
M A

do you have forwardlookupzone named "possosports.com" created in your internal DNS server?  
acurasebas

ASKER
Yes that's where the www host(A) record is
alihamedsa

Hi,

Try this solution..

When your trying to open http://companyweb? this webpage. it is going to dump means it is  resolving one server. you install iis in this server then redirect webpage to your external website using    www.companyweb.com  .


i think it will work.


Regards,

alihamed.sa
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
M A

@alihamed.sa
That is a workaround not a solution.
Which will create traffic in the network
DrDave242

The blank host record you created can cause more problems than it solves, as AD uses blank host records to enumerate domain controllers.  I highly recommend deleting it.  Then, make double-sure there's only one "www" host record in the possosports.com zone and that the machine you're on is only using your internal server for DNS.  Flush the resolver cache on that machine with the ipconfig /flushdns command, flush the server cache by right-clicking the server in the DNS console and selecting "Clear cache," and try to ping www.possosports.com again.
acurasebas

ASKER
Dave thanks for the post.. all that has been done.  I added the blank host out of desperation because the www wasn't working so just to try something else i added the blank host.

I did flush dns with ipconfig command and also by right clicking in the DNS console.  

i can ping www.possosports.com just fine and it replies with the correct IP (external) address but if i go to the browser it sends me to the intranet site.  this is so frustrating, i've done this plenty of times and it always works just by adding the www record.  i'm not sure if the fact that it's windows SBS 2003 has anything to do with the problem.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
DrDave242

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
acurasebas

ASKER
You're right it is doing a redirect to the naked domain and that's when it gets redirected to the intranet site. Hmm I really don't want to do an AD rename so that only leaves me with few choices. I'm gonna leave this question open for a few more days to see if someone else has any other ideas .
DrDave242

This question comes up a lot. The answer I provided in comment #39053218 is the only solution.