Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

DNS Zone Edit - can't access site without www

Discussion in 'Bind/DNS/Nameserver' started by skanwhost, Jul 1, 2004.

  1. skanwhost

    skanwhost Member

    Joined:
    Dec 24, 2003
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    Can not access site without typing the "www" before the domain name!!! Please help!!

    I am trying to edit the DNS zone file so the following will occur:

    1. Website will point to a differnt IP address which is NOT on my server (or within the network at all)

    2. FTP will point to a different IP address which is NOT on my server (or within the network at all)

    3. Mail will be delivered locally to my server.


    *********************

    Currently if I type in the domain name with the "www" it resolves to the site like I want it to.

    Currently when I send mail to the domain it is delivered to my server as I want it to be.

    HOWEVER - when I try to access the domain without the www I receive the following error: "Bad Request (Invalid Hostname)


    **********************

    Current Zone File Entries

    domain.com. 14400 NS ns.nameserver.com.
    domain.com. 14400 NS ns2.nameserver.com
    domain.com. 14400 A xx.xx.166.60
    localhost.domain.com. 14400 A xxx.0.0.1
    domain.com. 14400 MX 0 mail.domain.com.
    mail 14400 A xx.xx.55.167
    www 14400 A xx.xx.166.60
    ftp 14400 A xx.xx.166.60

    *********************

    Any help as to the missing or wrong entry would be greatly appreciated.

    Thanks!!
     
  2. FriedEgg

    FriedEgg Active Member

    Joined:
    Sep 27, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Washington, DC
    You need the "IN"s, should be:

    domain.com. 14400 IN NS ns.nameserver.com.
    domain.com. 14400 IN NS ns2.nameserver.com
    domain.com. 14400 IN A xx.xx.166.60
    localhost.domain.com. 14400 IN A xxx.0.0.1
    domain.com. 14400 IN MX 0 mail.domain.com.
    mail 14400 IN A xx.xx.55.167
    www 14400 IN A xx.xx.166.60
    ftp 14400 IN A xx.xx.166.60
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice