Link to home
Start Free TrialLog in
Avatar of Hocke_sweden
Hocke_sweden

asked on

browse to local domain doesnt work but to other domains it works on my Windows 2003 server

I have a Windows 2003 server with some domains, now I try to browse them in the browser on the Windows 2003 server, but it doesent work. But if I try to browse other domains, it works good.

Any solution?

Avatar of Justin Owens
Justin Owens
Flag of United States of America image

If I were to hazard a guess from this, I would start by looking at DNS.  Is your server pointing to a local DNS server as its primary DNS source?  If a domain member, it should be pointing to only local-to-the-domain DNS server(s), anyway.

DrUltima
Avatar of Hocke_sweden
Hocke_sweden

ASKER

No its not pointing to a local DNS server as its primary, we have the server at a web hotel, its pointing to the web hotels DNS. I have talked with the web hotel and they it can't be the firewall because its local domains!

What I want is get some pictures from the local webbserver to make some pdf. One solution should be to put the pictures to another server and domain. But it doesn't feel so good and a bad solution!
If a server or workstation is a Domain Member, it needs to have the Domain aware DNS servers as its primary setting.  I am not sure what a "web hotel" is.  If you could explain a little more about your scenario, we should be able to get this resolved.
Sorry "web hotel" = web hosting!

I have a pdf component, http://www.asppdf.com/, who make import a HTML file and create a PDF of it, all the pictures are missing in the pdf, pictures is on my local server, and I get this error

failed. Data: http://www.testdomain.com/design/stats/y.gif
Image: MSXML2::ServerXMLHTTP Error: The attempt to connect to the server




So... The ADPPDF product is installed on a server in a web hosting environment.  It is trying to generate a PDF file pulling images from a domain which is NOT in your web hosting environment.  They are right about it probably not being the firewall (though I won't say can't, because it can, however unlikely that is).  Web hosting is a different environment.  Are you web hosting (renting web space) or are you server hosting (renting an entire server for your use)?  If web hosting, you will need to get the images to a location that is publicly available, not inside your domain.  If you are server hosting, then you should be able to modify DNS to allow you to see internal to your domain (assuming proper connectivity).

DrUltima
Its a server hosting, we have our own web server (rent), with some domains on, for example http://www.domain1.se, http://www.domain2.se.
The ASPPDSF product is installed on our server hosting server and the images are on the same server.The images are publicly available.
How can I modify the DNS to allow to see internal to to my domain?
Any tip how I can make it?
I am a little confused.... You indicate that your product is:

1) Installed on a hosted server...
2) Images are on that same server...
3) Images are publicly available...
4) Your single server is hosting two web domains...

How do you connect to your hosted server when you are needing to edit the websites?
Where, on those servers, are the images stored?
Why do you need to see internal to your domain if the images are stored in a publicly available space?

DrUltima
I connect to the server with remote desktop or FTP or with CMS  through a browser

They are located here (the domain is not the real one)
D:\inetpub\wwwroot\www.testdomain.com\design\stats\y.gif
http://www.testdomain.com/design/stats/y.gif

We have a pdf componet who is installed on the same server, and it need to get the images from http://www.testdomain.com/design/stats/y.gif on the same server

You understand my problem? Or Im unclear :)


So, do you have control of the settings on the host server?  If so, you can place a static IP address for www.testdomain.com to 127.0.01 or its own assigned IP address into your HOSTS file.  If you PING www.testdomain.com from the remote server, does it reply with the correct IP address (assigned to the NIC or loopback)?
Yes I have all controll of the host server!

 I changed the host file here
C:\WINDOWS\system32\drivers\etc\
I tried with both 127.0.0.1 and the real IP address, the same result!


If I ping www.testdomain.com from the remote server I get the correct IP address, I can also ping www.testdomain.com from the host server and get the correct IP address!

When you display the web pages, do you see all the images?  It just fails to generate a PDF with the images you otherwise see on the page?
No I don't see the images and the web pages if I browse on internet explorer on the host server,

but if I browse from another computer I see the images and webpages, its only from the host server I don't see the images.

The pdf is generated but without images, beacause it can't get the images!
Can you post the HTML code (even just a snippit) from one of the pages which has the image errors?  For this purpose, it would need to be the real code, not scrubbed URLs.

DrUltima
Here comes the code, its ASP code, who make the pdf! The attached HTML file is the source to make the PDF file.



<%filename_and_path_pdf_url="http://www.vastaa.com/files/1_B5A068CD.pdf"
'filename_and_path_html_url="http://www.vastaa.com/files/1_B5A068CD.html"
filename_and_path_html_url="D:\inetpub\wwwroot\www.vastaa.com\files\1_A8935BC0.html"


Set Pdf = Server.CreateObject("Persits.Pdf")
Set Doc = Pdf.CreateDocument
		
Doc.ImportFromUrl	filename_and_path_html_url, "PageWidth=950"
filename = Doc.Save( filename_and_path_pdf, False )
Response.Write "Downnload your pdf file here<A HREF='" & filename_and_path_pdf_url & "'>Click here</A>"
%>

Open in new window

1-A59440C71.html
1-A59440C71.pdf
When you are remotely logged into your server, what result do you get then you type at a command prompt:

NSLOOKUP marknadskraft.com

DrUltima
Server:  ns1.citynetwork.se
Address:  91.123.193.2

Name:    marknadskraft.com
Address:  91.123.194.31
OK... And when you

PING marknadskraft.com

Do you get a reply from that same IP address?  Is marknadskraft.com the AD domain name to which your remote server belongs?
Yes its the same IP address! Yes marknadskraft.com is the remote server belongs


C:\Documents and Settings\Administrator>ping marknadskraft.com

Pinging marknadskraft.com [91.123.194.31] with 32 bytes of data:

Reply from 91.123.194.31: bytes=32 time<1ms TTL=255
Reply from 91.123.194.31: bytes=32 time<1ms TTL=255
Reply from 91.123.194.31: bytes=32 time<1ms TTL=255
Reply from 91.123.194.31: bytes=32 time<1ms TTL=255

Ping statistics for 91.123.194.31:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
So, the FQDN of that server is servername.marknadskraft.com?

Does an NSLOOKUP of www.marknadskraft.com yield the same IP address?
I think marknadskraft.com is the FQDN, but Im not 100% sure, I haven't installed it from scratch! How can I check it?

www.marknadskraft.com NSLOOPUP give the same Ip address
If you do an IPCONFIG /all, you should get a bunch of info.  The first two entries should be:

Host Name . . . . . . . . . . . . : YOURSERVERNAME
Primary Dns Suffix  . . . . . . . : marknadskraft.com
ipconfig /all

Windows IP Configuration
   Host Name . . . . . . . . . . . . : marknad7
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Unknown
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Broadcom BCM5708C NetXtreme II GigE (NDIS
 VBD Client)
   Physical Address. . . . . . . . . : 00-1E-4F-31-7D-0A
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 192.168.1.3
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 91.123.193.2
                                       91.123.193.3

Ethernet adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Description . . . . . . . . . . . : Broadcom BCM5708C NetXtreme II GigE (NDIS
 VBD Client) #2
   Physical Address. . . . . . . . . : 00-1E-4F-31-7D-0C








Is your server, marknad7, a member of a domain, or a stand alone server?
I think its a stand alone server, but Im not 100% sure, can I check it?
ASKER CERTIFIED SOLUTION
Avatar of Justin Owens
Justin Owens
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Its in a workgroup!

Does your hosting company allow loopback routing? I don't know, I ask them!


Does the hosting server actually do the processing of the PDF creation? Yes

Now the images is there and I can browse marknadskraft.com in the hosting server when I changed in the hosts file to 192.168.1.3

Thanks DrUltima :)
Thanks DrUltima, it took a while to find the problem. But you did it :)