Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #1393

Re: bind server problem

From Joe Pfeiffer <pfeiffer@cs.nmsu.edu>
Newsgroups comp.os.linux.networking
Subject Re: bind server problem
Date 2012-05-23 11:21 -0600
Organization A noiseless patient Spider
Message-ID <1blikig6dz.fsf@pfeifferfamily.net> (permalink)
References <jpgljt$pr1$1@speranza.aioe.org> <slrnjrnvgo.s0.catwheezel@ID-107770.user.individual.net> <jpisrs$k36$1@speranza.aioe.org>

Show all headers | View raw


Julien Mills <julienfmills@yahoo.com> writes:

> On Tue, 22 May 2012 20:58:40 +0000, Whiskers wrote:
>
>> On 2012-05-22, Julien Mills <julienfmills@yahoo.com> wrote:
>>> Hey all,
>>>
>>> I have a caching bind dns (and dhcpd) server running on a Slackware
>>> box. It works great, almost.
>>>
>>> My website is hosted off-site.
>>>
>>> In a browser when I type: www.example.com it works, I get to my
>>> website. If I type example.com (without the www) it does not work.
>>>
>>> Does anyone know how I can set up the dns to make this work?
>>>
>>> Thanks
>> 
>> Have you got an entry specifically for www.example.com but not for the
>> general example.com?
>
> There's an entry for www and an entry for example.com.
>
> www                A       100.10.11.12
> example.com        A       100.10.11.12
>
> I believe that bind automatically put them in there, is that possible? 
>
> Just did a little testing, from a Windows machine here on our network 
> www.example.com works, example.com does not.  This makes no sense to me.
>
> I want both to work, mainly because Google is returning example.com so I 
> want that to work.

Unless you've got a good reason to use bind I highly recommend switching
to dnsmasq.  It's roughly an order of magnitude easier to configure.

As to your particular problem, it's hard to guess what's going on from
two lines plucked from your config file.  But, if those two lines are
really next to each other, I'm guessing they're inside a zone defined
for example.com.  If I'm right in that guess, you've defined resource
records for www.example.com. and example.com.example.com.  If you
replace the second line with

@        A 100.10.11.12

it should work (the @ says 'use the root of the domain').

Also, if you'd used

example.com.         A       100.10.11.12

(note the period after the hostname) is would have worked.

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

bind server problem Julien Mills <julienfmills@yahoo.com> - 2012-05-22 18:23 +0000
  Re: bind server problem Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-05-22 20:46 +0000
    Re: bind server problem Julien Mills <julienfmills@yahoo.com> - 2012-05-23 14:11 +0000
      Re: bind server problem Jorgen Grahn <grahn+nntp@snipabacken.se> - 2012-05-23 15:36 +0000
  Re: bind server problem Whiskers <catwheezel@operamail.com> - 2012-05-22 20:58 +0000
    Re: bind server problem Julien Mills <julienfmills@yahoo.com> - 2012-05-23 14:39 +0000
      Re: bind server problem Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-05-23 11:21 -0600
        Re: bind server problem Julien Mills <julienfmills@yahoo.com> - 2012-05-24 19:07 +0000
          Re: bind server problem Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2012-05-25 00:10 -0600
  Re: bind server problem Chris Davies <chris-usenet@roaima.co.uk> - 2012-05-24 15:49 +0100
    Re: bind server problem Julien Mills <julienfmills@yahoo.com> - 2012-05-24 19:36 +0000
      Re: bind server problem Chris Davies <chris-usenet@roaima.co.uk> - 2012-05-24 23:58 +0100

csiph-web