DNS/BIND9: www.foo.com resolves but foo.com does not

Discussion in 'OT Technology' started by Mirlyn, Jan 31, 2004.

  1. Mirlyn

    Mirlyn Guest

    I'm setting up a hosting situation in which the new parent company, shown here as hostserv.com, is hosting another website: foo.org. Before you ask, they are real names and IPs; the names/IPs have been changed here to protect the innocent (until things go live). ;)

    Anyhoo, so I've got BIND set up and everything seems to resolve just great with one exception. Users can surf to http://www.foo.com and see it, but http://foo.com does not resolve. Is there another entry in the forward file to denote the non-www address? I can't seem to find much of anything online about this issue.

    68.y.y.y is the hosting network, 68.x.x.x is the nameserver (just one; temporarily).
    Code:
    ; forward zone records for foo.com
    ; created 1-27-04
    ;
    ; modified 1-30-04
    $TTL	86400
    @	 IN	 SOA	 cecil.hostserv.com. admin.hostserv.com. (
    						15	 ; serial
    						8H	 ; refresh, seconds
    						2H	 ; retry, seconds
    						1W	 ; expire, seconds
    						1D )	; minimum, seconds
     
    				IN	 NS	 cecil.hostserv.com.
     
    foo.com.	 IN	 MX 10 mail.foo.com.
     
    cecil		 86400 A	 68.x.x.x
     
    ns			 86400 A	 68.x.x.x
     
    marvin		 86400 A	 68.y.y.y
     
    www			 86400 CNAME marvin.foo.com.
     
    ftp			 86400 A	 68.y.y.y
     
    mail			86400 A	 68.y.y.y
    
    Any suggestions? Good info sites on Bind9? Anything is appreciated. :)
     
  2. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    are you sure both zones are delegated to you?
     
    Last edited: Jan 31, 2004
  3. Mirlyn

    Mirlyn Guest

    Both zones as in hostserv.com and foo.com? Yes.

    Foo.com resolves, but only if you have the www on it. I would like it to resolve even if you didn't put the www on it. Is there an entry in the zone file I'm missing to do this?
     
  4. col_panic

    col_panic calm like a bomb Moderator

    Joined:
    Sep 19, 2003
    Messages:
    188,160
    Likes Received:
    0
    Location:
    winter haven, fl
    i'm trying to wrap my head around this, but bind is complicated. you might get a quicker answer in comp.protocols.dns.bind

    edit:

    maybe this post will help :dunno:

    http://groups.google.com/groups?hl=...fe=off&[email protected]&rnum=4

     
    Last edited: Jan 31, 2004

Share This Page