Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k & phranque

Message Too Old, No Replies

scripts before dns resolves

do cgi scripts not parse before dns resolves



12:40 pm on Jun 22, 2004 (gmt 0)

10+ Year Member

I am wondering if it's the nature of cgi scripts to not parse if you upload them to IP address before dns nameservers resolve. When I check the page in form ipnumber/~username I do not see the output.. I thought this happened once before and things were fine once the dns resolved and I used the domain name itself. Someone said the tilde creates problems.. Does that make sense? I want everything to work when dns resolves and can't tell if it's a script error or something in the nature on cgi scripts using a tilde. Thanks.


3:51 pm on Jun 22, 2004 (gmt 0)

10+ Year Member

I develop all of my sites using a format, and haven't had a problem, except when setting cookies (you need to write some additional code to properly set cookies for an IP rather than a FQDN).


3:56 pm on Jun 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Generally, CGI's don't need DNS to function. But maybe the specific CGI includes an URL that can't be resolved.

The tilde shouldn't be a problem, either.

I'm going to take a wild stab here and guess you are setting up a CGI on a Mac OS X machine in a /Users/[usernmae]/Sites directory. In that case, your problem may be that the CGI is not in a place where your Apache Web server (currently) recognizes it as an executable script. (Am I close?)


2:03 pm on Jun 23, 2004 (gmt 0)

10+ Year Member

Thanks guys. I'm not too technical so don't know the answer but did try it with a different domain on same host and the scripts now work after dns resolved.. So I'm not sure but it does seem like it didn't before!

Featured Threads

Hot Threads This Week

Hot Threads This Month