Re: configuration of a linux router
On Mon, Mar 17, 2008 at 11:20:24AM -0700, email@example.com wrote:
> dt> if you don't own peasthope.yi.org, then I wouldn't use it even locally.
> But I do own the machine and the name.
I, personally, for the 127.0.0.1 would only use localhost and
> yi.org is a dynamic dns service. Not
> already being allocated is a precondition
> to assigning "peasthope.yi.org" to my computer.
If this means that there is some possibility at any given time that you
will not own that domain, then I would not use it locally. I'd use
something else entirely. I suppose there would be no problem with using
"peasthope' without the .yi.org as a local domain sice without it, it
will never be routable on the internet.
> dt> It is a valid name.
> So ... I miss your drift here.
I've seen people use a made-up name on their local network then have
trouble, if they don't get their DNS setup just right, with packets
getting routed to the real "example.com" whatever. I thought that you
had just made up the name.
If you owned the name outright, then there would be no problem using it
> dt> e.g.
> dt> 172.23.4.1 [thisbox].[yourlocaldoamin] [thisbox]
> Is [yourlocaldoamin] a domain name used
> only on my private LAN?
Yes. One that cannot be routed to the internet, unless you own the
> I understand why computers have names.
> "ftp curie" is better than "ftp 172.23.4.2".
> But what is the benefit of a domain name
> for my LAN?
Well, any time you need to lump your network together in, e.g.
hosts.allow or in an MTA setup (e.g. host for which you will relay mail),
its a lot easier to say " *.hooton" than to individually list all the
hosts. Especially if you later add a host, you don't have to go around
adding its name everywhere. I also is fundamental if you use anything
other than "files" for resolving.
> The revised /etc/hosts is appended. With
> any luck it is closer to what you suggested.
> .joule:~# cat /etc/hosts
> # /etc/hosts file
> 127.0.0.1 localhost.localdomain localhost
> # Private LANs at home
> 172.23.4.1 joule.shaw.ca joule
> 172.23.4.2 curie.shaw.ca curie
> 172.23.5.1 joule.shaw.ca joule
> 172.23.5.2 heaviside.shaw.ca heaviside
Now you're using shaw.ca for your home domain. Do you own that? Would
you like to e.g. relay mail for all of shaw.ca?