Re: Is there any point to full host names in /etc/hosts ?
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: Sat, 03 Nov 2007 18:30:35 GMT
Send <Send@xxxxxxxxxx> writes:
Rikishi 42 wrote:
This is the situation: a friend and I both use a broadband router with a few
machines behind them, at our respective homes. We each picked a name for our
'domain'. His is fictional. Mine also exists on the net, but with only the
www and ftp of rikishi42.net defined in the DNS, not my home machines.
stealing - Using some one elses domain name is unethical. Bottom line
"IT'S NOT YOURS"
Uh, stealing? Why not call it treason? Or terrorism? That is just as irrelevant
and just as big a misuse of legal term, but more liable to get him into trouble.
I agree that using a domain name that is someone elses is stupid, but it is
also self limiting, since the net dns servers know only one legitimate
address for the name, and will always use that, which will mean that any
attempt to contact the miscreant will fail. Ie, this is one crime, which
comes with its own punishment.
Now if he uses someone elses IP address and he happens to be the on the same
subnet, then that is problematic but likely to be severely dealt with by
whoever is responsible for that subnet.
He's added 2 of my PC's in the /etc/hosts of his laptop, for use when he
visits and connects it to my LAN.
This would be a sample from that file:
# Home net
192.168.108.101 desktop.myDomain desktop
192.168.108.124 laptop.myDomain laptop
192.168.108.101 server.myDomain server
#Rikishi's net
192.168.8.142 gramps.rikishi42.net gramps
192.168.8.181 pigmy.rikishi42.net pigmy
192.168.xxx.xxx addresses are private network addresses and usually not
forwarded upstream by a router. Can you imagine what would happen if
everyone using the same addresses allowed all their network traffic to
reach the www. They would be mass collisions Not to mention that your
private network is no longer "private".
Be forewarned of the security implications
We've allways used this, works just fine.
When connectiong to my machines, he's allways used the short (host only)
name. Last time, he accidentally tried with the full name. It failed.
My guess is that, upon finding that rikishi42.net exists, there is an
attempt to get the address from the DNS, skipping hosts all together.
But do I presume correctly, or is there more to it?
Why bother with all this ? Do it right. Just use the name & IP address
that has been assigned to you by your ISP. If you are assigned a
dynamic (IP address changes from time to time) which they normally are
then use a FREE service like DynDns and have your own "REAL" domain ...
"YOU".dyndns.org
they have several domain you can pick from other than dyndns.org. There
are programs you can run that will update the Dyndns listing
automatically when your ISP changes your IP address.
Dns lookup Work ... Other friends anyware can reach your machine and you.
will NOT be blocked by upstream routers.
- References:
- Is there any point to full host names in /etc/hosts ?
- From: Rikishi 42
- Re: Is there any point to full host names in /etc/hosts ?
- From: Send
- Is there any point to full host names in /etc/hosts ?
- Prev by Date: Re: Is there any point to full host names in /etc/hosts ?
- Next by Date: Local DNS Propagation Question
- Previous by thread: Re: Is there any point to full host names in /etc/hosts ?
- Next by thread: Re: Is there any point to full host names in /etc/hosts ?
- Index(es):
Relevant Pages
|