Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Nameserver question

Kind of a noob question here but how do I set my nameservers correctly so that my site pulls up with or without the www? Right now y subdomains only open without the www

Thanks

Comments

  • Add the www A or CNAME record for the subdomains.

  • painfreepcpainfreepc Member
    edited January 2014

    @thedarkfox said:
    Right now y subdomains only open without the www

    subdomains don't use www,

    www is a subdomain


    Try not to use CNAME, unless there is no alternative and do not every use CNAME for MX record,

    only time that a CNAME is required is when you want to alias a host in the current domain to an external domain.

    when you use a cname you are making the dns server do more work,

    if using configuration below, the dns server will need to lookup A record

    for painfreepc.com to get ip for www.painfreepc.com and ftp.painfreepc.com

    painfreepc.com.           +14400     A   162.xxx.xxx.xxx ~
    www.painfreepc.com.       +14400   CNAME    painfreepc.com.
    ftp.painfreepc.com.       +14400   CNAME    painfreepc.com.
    

    Below is Maradns zone file (without CNAME ) for my domain painfreepc.com

    http://www.dnsinspect.com/painfreepc.com/1389803933

    ( yes i know marsdns has a shortcut to append the domain name )

    painfreepc.com.        SOA    ns1.painfreepc.com. dnsmaster.painfreepc.com. 2014010810 14400 3600 604800 14400 ~ 
    painfreepc.com.         +14400     NS   ns1.painfreepc.com. ~
    painfreepc.com.         +14400     NS   ns2.painfreepc.com. ~
    painfreepc.com.         +14400    TXT   'v=spf1 mx -all' ~
    painfreepc.com.         +14400    SPF   'v=spf1 mx -all' ~
    ns1.painfreepc.com.     +14400     A   162.xxx.xxx.xxx ~ # if dns not this domain, don't add this
    ns2.painfreepc.com.     +14400     A   209.xxx.xxx.xxx ~ # if dns not this domain, don't add this
    painfreepc.com.         +14400     A   162.xxx.xxx.xxx ~
    www.painfreepc.com.     +14400   A    162.xxx.xxx.xxx ~
    ftp.painfreepc.com.     +14400   A    162.xxx.xxx.xxx ~
    pop.painfreepc.com.  +14400  A  162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    pop3.painfreepc.com.  +14400  A 162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    smtp.painfreepc.com.  +14400  A 162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    imap.painfreepc.com.  +14400  A 162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    imap4.painfreepc.com.   +14400  A   162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    mail.painfreepc.com.    +14400   A    162.xxx.xxx.xxx ~ # if not your email domain, don't add this
    painfreepc.com.         +14400     MX 10 mail.painfreepc.com. ~
    

    Also www (ServerAlias) needs to be in the VirtualHost

         <VirtualHost *:80>
            ServerAdmin [email protected]
            ServerName example.com
            ServerAlias www.example.com
    
Sign In or Register to comment.