Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

domain.com works - www.domain.com does not

domain.com works - www.domain.com does not

domain.com works - www.domain.com does not

I have a site on my web server that resolves correctly when you type in the domain without the www, but when you type in the domain name WITH www, it resolves to an incorrect IP on the server.

www.domain.com ----> Wrong IP resolves
domain.com -----> Resolve correctly

I have done nslookup to verify that it resolves incorrectly when typing in "www" before the domain name. nslookup shows proper output without "www" before the domain.

I have checked the dns record in /var/named . I have rebooted http, DNS and I have rebooted the server. However, the problem persists. I have even changed the IP number hoping to overwrite any incorrect settings, but to no avail.

Oh, and this is not a dns propagation issue after a DNS update. This domain has existed on this server for over 1 month and nothing has changed with the DNS at the registrar.

Does anyone have any advice?

RE: domain.com works - www.domain.com does not

Do you have a ServerName and ServerAlias directive in httpd.conf (assuming apache)?

Do you have www.domain.com and domain.com as Hostnames (A records) in your zon file?

RE: domain.com works - www.domain.com does not

> I have rebooted the server

Bad habbit. Don't do that.

open your zone file and increment the serial number.

Do 'tail -f /var/log/messages' while doing 'ndc restart' or 'ndc reload'

Anything problems reported??


Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close