[COLUG] Local DNS configuration
Bill Baker
bill_chris at earthlink.net
Thu Jan 11 20:39:01 EST 2007
On Thu, 2007-01-11 at 17:59 -0500, Rob Funk wrote:
> Bill Baker wrote:
> > On Thu, 2007-01-11 at 15:38 -0500, Rob Funk wrote:
> > > Yes you do. Your system is treating ".localdomain" as your local DNS
> > > domain. Check /etc/resolv.conf and /etc/hosts. I believe that's
> > > long been a Red Hat (and therefore Fedora) default.
> > >
> > > What you want ideally is for the query of OpenDNS to fail because
> > > your domain doesn't exist there. (Or better, to use a domain that
> > > you are the recognized owner of.) With mainstream DNS that's easy
> > > because the existing top-level domains are well-defined and
> > > well-known (though somewhat less so since the advent of .museum and
> > > its ilk). With alternate DNS it's harder to know what top-level
> > > domains already exist.
> >
> > So what are you saying I should do, then?
>
> Pick a local domain name that you're pretty sure is unlikely to exist.
> It's best if it's at least two levels deep. e.g. ".local.bakerlocal".
> (Even better if it's a subdomain of a domain you actually own.)
> See if it exists in DNS by looking for a SOA record:
> host -t soa local.bakerlocal.
> If you don't get a "does not exist" error, pick a different one.
Okay, for "local.bakerlocal" I got:
Host local.bakerlocal not found: 3(NXDOMAIN)
Is that what you mean, or should I be looking for a different result?
Because I got the same result from localhost.localdomain and just plain
localdomain.
> Then edit /etc/resolv.conf and /etc/hosts (and possibly other places; it's
> been a while since I used something based on Red Hat). Change all
> instances of "localdomain" to your chosen domain name.
>
> Once you do that, a lookup of your local machines in DNS won't give you a
> bogus IP address.
>
More information about the colug432
mailing list