Gentoo Archives: gentoo-user

From: David Haller <gentoo@×××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Choice of TLD for internal network
Date: Mon, 18 Dec 2017 19:19:52
Message-Id: 20171218191914.3hx34fmyntouflp6@grusum.endjinn.de
In Reply to: Re: [gentoo-user] Choice of TLD for internal network by Peter Humphrey
1 Hello,
2
3 On Mon, 18 Dec 2017, Peter Humphrey wrote:
4 >Come to think of it, I have a .me.uk domain registered. I wonder if I can
5 >use that...
6
7 Of course you can. Just add a third/fourth level subdomain and put
8 your stuff under this. E.g. I have a domain example.de registered to
9 me, resolving from-da-induhned. With hosts such as
10 {www,mail}.example.de and example.de redirected to www.
11
12 Now then, internally, I chose hostnames. And then use those, not
13 resolvable via DNS, via /etc/hosts and dnsmasq. From my /etc/hosts:
14
15 127.0.0.1 ${hostname}.example.de ${hostname} localhost
16 127.0.0.1 news.${hostname}.example.de news
17 127.0.0.2 docs.${hostname}.example.de docs docs.example.de
18 127.0.0.3 www.${hostname}.example.de www
19 127.0.0.1 irc.${hostname}.example.de irc
20 127.0.0.1 ftp.${hostname}.example.de ftp
21
22 So, just replace example.de by ${yourprefix}.me.uk and have fun, and
23 use ${hostname}.${yourprefix}.me.uk, www.${hostname}.${yourprefix}.me.uk.
24
25 HTH,
26 -dnh
27
28 --
29 "Ford had his own code of ethics. It wasn't much of one, but it was
30 his and he stuck by it, more or less. One rule he made was never to
31 buy his own drinks. He wasn't sure if that counted as an ethic, but
32 you have to go with what you've got. "