DNS Resolution Issue Http:// works but www. doesn't

cant get my web server to resolve to my www.domain.com. it resolves when I enter http://domain.com. any ideas anyone??

Ok, that still leaves two combinations. What happens if you try these two in your web browser:

http://www.domain.com/
domain.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The ‘http://’ part on front has nothing to do with anything (or
shouldn’t). I presume this is for a domain of yours. If you own
domain.com’ then it is up to you to also resolve ‘www.domain.com’ to
something. If you do not own ‘domain.com’ then you have no say over
www.domain.com’. In this particular case it would be beneficial to use a
DNS tool to troubleshoot a DNS issue and not your browser:

cat /etc/resolv.conf #Get your host’s DNS confirmation
dig domain.com #Resolve domain.com
dig www.domain.com #Resolve the ‘www’ A record for domain.com

Every entry for a domain (or subdomain) must be setup explicitly. ‘www’
is a standard convention for a web server but that’s just because
everybody is used to doing that; there is no rule in DNS stating that if
domain.com works then www.domain.com works.

Good luck.

auctionrunner wrote:
> cant get my web server to resolve to my www.domain.com. it resolves
> when I enter http://domain.com. any ideas anyone??
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJKHMpIAAoJEF+XTK08PnB5o1AP/isIhkmMHxht59M0xFQ+4M6k
Wu0cw6l04lt0QBvq7g2K3UY/f95adSSYtyFqNgcVAZlWymrCTcMowJepJlHPpTOc
P2E6oPU/KFImOcoNUmL8pIyZPTrmAOsEdLUM+448z+lyepTSE7hYJK/CpxflHUZf
wJMXSUO3QBazrXXuT20zliMvrV53pWO5mepsobtv78aTPGGEG++3nMH+yuSPkTBh
rthEj3bhwaJ/WSSQtpdipPu3aZ2hD19n446p/pjBMNsXi4iYrcE4Do+2BE9+47SU
9S1D54UhQHwNju8bicpUGna2/KOIFDYQ+8hNTZUCqT63B6AAcLHlqFhMCfnYTSt3
DZ1y+cCTGuDQRhDxwqjZW+HA6GOf9uAVWgqWzG+TnXc839Rmkr4RXa1s5Ia2p/of
fOip0ju5POOfUpahO99YTqyWpPJIX6NSxaQh3G1G2y4u6h8okzL9bKmFgbMqNUnZ
DzAMh0Ai+VaZz4kafbQwpRVTnmaD0Zsl7XPiBLMKAjXoqvcYZrw+HjwV/bAsBz9E
xE/h3QvGJ2g1m5WGUFVtup5SYuQ22vIKNE8BQUyjW8pL3mopKkSFSHwPU7epdEAx
nfT8QdTG6UUpv8xQWSJIghdmn8asL8BXGzEXyheJ2KrkLI06aG6yCIAZNO3+Dnfo
AX6lyV2QBXDYmAd3XwX8
=1NoI
-----END PGP SIGNATURE-----

auctionrunner wrote:

> cant get my web server to resolve to my www.domain.com. it resolves
> when I enter http://domain.com. any ideas anyone??

Tell domain dns admin to setup an alias (cname) or just an “A” record
pointing to the IP :slight_smile:

Greetings


Camaleón

An A record pointing to the IP must be already there and that is why http://domain.com is working.
A CNAME record for www should be added.

syampillai wrote:

> An A record pointing to the IP must be already there and that is why
> http://domain.com is working.
> A CNAME record for www should be added.

Well, I don’t mean that :wink:

There are 2 ways for achieving this:


Using canonical name

IN A 192.168.1.1
www IN CNAME somesamplesite.com.

Using A record

IN A 192.168.1.1
www IN A 192.168.1.1


But both ways need to be explicitly defined.

Greetings,


Camaleón