[COLUG] Samba weirdness
Rob Funk
rfunk at funknet.net
Thu Jan 11 17:59:49 EST 2007
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.
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.
--
==============================| "A microscope locked in on one point
Rob Funk <rfunk at funknet.net> |Never sees what kind of room that it's in"
http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"
More information about the colug432
mailing list