Strange server not found issue
The problem comes when I try to visit one of the random subdirectories I have setup, e.g. if I go to sub.mysite.com/random, I get redirected to my ISPs search engine, which my ISP does by default when I try to visit a non-existent site. Strange thing is, the URL gets rewritten from sub.mysite.com/random to
I was able to access my subdomain just fine yesterday, and I had added the subdomain the night before. My ISPs DNS seems to update itself every hour, while Linode updates every 15 minutes, and a 24 hour max propogation is mentioned in quite a few places. This means that having setup the subdomain the night before last, the subdomain should be working right, and it apparently is if I'm getting the expected forbidden message when I'm not trying to append anything on to sub.mysite.com.
P.S. If anybody is willing to test to see if it is possibly something strange with my ISP, the subdomain is
EDIT: I just placed a random HTML file in my subdomain's root. It seems to load correctly when I visit
11 Replies
Server: 203.12.160.35
Address: 203.12.160.35#53
** server can't find
Im going to guess your isp is taking you to their error page for any domains that dont resolve..
@Internat:
allsparc:/var/log# nslookup
www.tests.youdolinux.com Server: 203.12.160.35
Address: 203.12.160.35#53
** server can't find
www.tests.youdolinux.com : NXDOMAINIm going to guess your isp is taking you to their error page for any domains that dont resolve..
That's what their error page is for, though it shouldn't be directing my to
I am thinking that there is a problem with my ISP. From my Linode, I did a nslookup to youdolinux.com, tests.youdolinux.com, and
kris@li283-45:~$ nslookup youdolinux.com
Server: 207.192.69.4
Address: 207.192.69.4#53
Non-authoritative answer:
Name: youdolinux.com
Address: 66.228.33.45
kris@li283-45:~$ nslookup tests.youdolinux.com
Server: 207.192.69.4
Address: 207.192.69.4#53
Non-authoritative answer:
Name: tests.youdolinux.com
Address: 66.228.33.45
kris@li283-45:~$ nslookup www.tests.youdolinux.com
Server: 207.192.69.4
Address: 207.192.69.4#53
** server can't find www.tests.youdolinux.com: NXDOMAIN
kris@li283-45:~$ ping -c 4 youdolinux.com
PING youdolinux.com (66.228.33.45) 56(84) bytes of data.
64 bytes from youdolinux.com (66.228.33.45): icmp_req=1 ttl=64 time=0.032 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=2 ttl=64 time=0.046 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=3 ttl=64 time=0.045 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=4 ttl=64 time=0.046 ms
--- youdolinux.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.032/0.042/0.046/0.007 ms
kris@li283-45:~$ ping -c 4 tests.youdolinux.com
PING tests.youdolinux.com (66.228.33.45) 56(84) bytes of data.
64 bytes from youdolinux.com (66.228.33.45): icmp_req=1 ttl=64 time=0.035 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=2 ttl=64 time=0.058 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=3 ttl=64 time=0.055 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=4 ttl=64 time=0.056 ms
--- tests.youdolinux.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.035/0.051/0.058/0.009 ms
kris@li283-45:~$ ping -c 4 www.tests.youdolinux.com
ping: unknown host www.tests.youdolinux.com
I expected the results for
Doing this same tests from home:
piki@debian:~$ nslookup youdolinux.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: youdolinux.com
Address: 66.228.33.45
piki@debian:~$ nslookup tests.youdolinux.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: tests.youdolinux.com
Address: 66.228.33.45
piki@debian:~$ nslookup www.tests.youdolinux.com
Server: 192.168.1.1
Address: 192.168.1.1#53
Non-authoritative answer:
Name: www.tests.youdolinux.com
Address: 63.251.179.13
Name: www.tests.youdolinux.com
Address: 8.15.7.117
piki@debian:~$ ping -c 4 youdolinux.com
PING youdolinux.com (66.228.33.45) 56(84) bytes of data.
64 bytes from youdolinux.com (66.228.33.45): icmp_req=1 ttl=51 time=22.2 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=2 ttl=51 time=19.6 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=3 ttl=51 time=21.1 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=4 ttl=51 time=21.0 ms
--- youdolinux.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3004ms
rtt min/avg/max/mdev = 19.677/21.022/22.220/0.915 ms
piki@debian:~$ ping -c 4 tests.youdolinux.com
PING tests.youdolinux.com (66.228.33.45) 56(84) bytes of data.
64 bytes from youdolinux.com (66.228.33.45): icmp_req=1 ttl=51 time=27.4 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=2 ttl=51 time=20.8 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=3 ttl=51 time=20.6 ms
64 bytes from youdolinux.com (66.228.33.45): icmp_req=4 ttl=51 time=20.8 ms
--- tests.youdolinux.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 20.608/22.446/27.436/2.884 ms
piki@debian:~$ ping -c 4 www.tests.youdolinux.com
PING www.tests.youdolinux.com (63.251.179.13) 56(84) bytes of data.
--- www.tests.youdolinux.com ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3024ms
As you can see, the first two nslookups and pings match up, then goof up on
Is anybody else able to reproduce the nslookup and ping results from my home box, in addition to being redirected to
There are isps out there that if you attempt to visit a domain name that doesnt exist/resolve that they send you to their friendly error page.
going to tests.youdolinux.com takes you to your page as expected.
Your isp's dns servers are returning the IP of their error page when you attempt to nslookup/ping a domain name that doesnt resolve, like
is redirecting you to
allsparc:/var/log# wget --max-redirect=1 http://tests.youdolinux.com/adaptcms/
--2011-09-25 11:30:33-- http://tests.youdolinux.com/adaptcms/
Resolving tests.youdolinux.com... 66.228.33.45
Connecting to tests.youdolinux.com|66.228.33.45|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://www.tests.youdolinux.com/adaptcms/ [following]
--2011-09-25 11:30:34-- http://www.tests.youdolinux.com/adaptcms/
Resolving www.tests.youdolinux.com... failed: Name or service not known.
wget: unable to resolve host address `www.tests.youdolinux.com'
so im guessing you have a redirect or problem within your webserver config
You esentially have a few issues going on:
1. Your webserver config is attempting to redirect
2. Your isp has a friendly error message page for servers that dont exist. your hitting it when you get redirected to
Obviously there is a webserver on your ISP's error page server, or you wouldnt get their friendly error page.
@Internat:
Im not sure what your getting at here?
You esentially have a few issues going on:
1. Your webserver config is attempting to redirect
http://tests.youdolinux.com/adaptcms/ tohttp://www.tests.youdolinux.com/adaptcms/ . You'll need to resolve this config error.2. Your isp has a friendly error message page for servers that dont exist. your hitting it when you get redirected to
www.test .*Obviously there is a webserver on your ISP's error page server, or you wouldnt get their friendly error page.
I'm getting at that there is a problem in the code of AdaptCMS, which I am attempting to house at
Regardless, I have checked my config a bunch of times, and I'm confident it is correct. tests.youdolinux.com uses an almost exact copy of the vhost for youdolinux.com with the only difference (other than adjusting all the needed values to point it at the correct web root and logs) being that I removed the /home/user/public_html config, so tests.youdolinux.com/~kris gives a 404 Not Found error, but youdolinux.com/~kris gives you an actual web page. The youdolinux.com vhost file is also the same exact vhost file that I use for my webmail, forum, wiki, and phpmyadmin, which are all on different subdomains, and the only difference between each vhost is that I had to adjust for the different web roots and logs. I also use the same exact vhost configuration for arklinux.org and their forum and wiki, and their site was transfered over to my Linode from a non-Linode that ran apache (not nginx). All requests to both sites AND their subdomains are served up by the same exact nginx process, so the main nginx configuration is the same for each, and each site loads without any problems. To further my case, I am using nginx 1.1.0, which is a development version of nginx, and it is still serving everything up flawlessly. All this further convinces me that there isn't any configuration error.
EDIT: I would hardly consider Verizons errors to be friendly
Case and point:
And just to prove that my vhosts are configure right:
EDIT 2: I just realized that the vhosts to my other subdomains mimic my tests vhost in that they don't have my /home/user/public_html, though the config is still otherwise exactly the same as youdolinux.com and arklinux.org.
I can assure you its your server doing the redirect.
And obviously youve just changed something, because its no longer doing the redirect to www.
Sure, the server would do the redirect, because there was something in AdaptCMS's code that was causing it to do this. PHP has just as much power to force a server to redirect the client somewhere else as would a normal HTML redirect. My guess would be something in index.php – since AdaptCMS isn't configure yet, I would expect it to redirect to AdaptCMS's install script, which is what most CMS's/Blogs/whatever do when they haven't been configure yet. However, as you just witnessed, it wasn't redirecting to the correct location.
What changed is that I removed the adaptcms directory. If you attempt to visit http://tests.youdolinux.com/adaptcmshttp://www.tests.youdolinux.com/
I am going to try several versions of AdaptCMS to see what happens.