E
E
Erbol2013-11-24 01:51:24
Domain name market
Erbol, 2013-11-24 01:51:24

How to organize an intranet with a domain at home?

It is necessary to organize a local network with a domain name .dom.
As a Lenovo q180 nettop server, Ubuntu Server 13.04 without GUI.
The Internet receives from the TP-LINK TL-WR741N router via Wi-Fi.
Now I connect to the resources on the server like this :
192.168.137.142/redmine
192.168.137.142/phpmyadmin
192.168.137.142/dev_project
192.168.137.142/rc_project , manuals or a big picture for organizing such. Or prompt a direction where to dig. I'm new to Linux :) Thank you for your help!




Answer the question

In order to leave comments, you need to log in

10 answer(s)
S
svd71_1, 2013-11-24
Kuandykov @Erreke

the simplest and cheapest option is to set up a hosts file on each machine.
On windows it is usually located in %windir%\system32\drivers\hosts , on Linux /etc/hosts .
in the file, write in one line
Then you need to create multisite configurations in Apache for each type, indicating DOCUMENT_ROOT for each desired folder. it's all in /etc/apache2/site-available/default . You just copy the structure lying there several times and change your parameters each time.
or, alternatively, copy this site with a different name, change the parameters in it and start registering the config:
<b>$>a2ensite newfilename</b>.
After restarting Apache it should work. If it doesn't work, look at the Apache logs and correct the requirements.

S
Stepan, 2013-11-24
@L3n1n

Raise your dns on the router and register the domain in it with the desired IP.
If the router does not allow, raise it on the server, but then configure the router to work through your DNS.

W
Webdesus, 2013-11-24
@Webdesus

To do this, you need to register alias for dns . But where, this is a question for you. If you have other systems and they use a router to connect to the Internet, and indeed to get into the network. That needs to be registered on the router. But if they use your laptop (which I doubt), then, accordingly, this matter must be registered in it.

N
Nikolai Turnaviotov, 2013-11-24
@foxmuldercp

how it is usually done:
a dhcp server is made, on a router or home server, which distributes a gray grid, for example 192.0/16, the domain name is blabla.local (there are several names reserved for internal use, you need to google them)
well, then the whole machine you will have both host.local, host1.local or whatever you call them there.
set up a dns server, in which you register either hosts with your hands, or take them from a dhcp database.
well, and their static records on mysql.local, ftp.local, etc.
well, you set up nat from the outside, nat doesn't care about the domain, nat needs to map ip:port (incoming) to ip:port of the internal network.

S
Sergey78, 2013-11-24
@Sergey78

You set up a DNS server on your server, for ubuntu, for example, BIND. Lots of setup articles. You configure the server as a master server for the .dom zone, and as a forward to the provider's dns for everyone else.
Distribute the address of your DNS server to all clients on the DHCP server.
I think you can handle the virtual domain setup on Apache.
But in general, the .dom zone idea may not be entirely correct in terms of standards. It will certainly work, but it is better to use the dom.local zone

I
Ilya Evseev, 2013-11-24
@IlyaEvseev

On the server, in /etc/hosts, add the line:
192.168.137.142 phpmyadmin redmine dev rc
Specify the domain in /etc/resolv.conf and use external DNS as the parent instead of the router's DNS to avoid looping:
domain dom
nameserver 8.8.4.4 # google
nameserver 4.2.2.5 # level3
nameserver 77.88.8.8 # yandex
After that, install the DNS service:
apt-get install dnsmasq
You don't need to configure it, /etc/hosts and resolv.conf are enough for it.
Everything. Now, on the router, specify 192.168.137.142 as the parent DNS instead of the provider's DNS and the rest of the computers will see the *.dom zone

D
Dmitry, 2013-11-24
@deemytch

http://maradns.samiam.org/
working config
# cat /etc/maradns/db.home
home. SOA h. me.post.ru. /serial 7200 3600 604800 1800 ~
mail.home. CNAME main.home. ~
samba.home. CNAME main.home. ~
smtp.home. CNAME main.home. ~
time.home. CNAME main.home. ~
pop.home. CNAME main.home. ~
www.home. CNAME main.home. ~
redmine.home. CNAME main.home. ~
chive.home. CNAME main.home. ~
pma.home. CNAME main.home. ~
video.home. CNAME main.home. ~
router.home. FQDN4 192.168.11.1 ~
main.home. FQDN4 192.168.11.254 ~
nz.home. FQDN4 192.168.11.251 ~
fs.home. FQDN4 192.168.11.250 ~
pantus.home. FQDN4 192.168.11.149 ~
truba.home. FQDN4 192.168.11.151 ~
dlink.home. FQDN4 192.168.11.2 ~
w7.home. FQDN4 192.168.37.5 ~
some hosts are virtual machines, some are real devices

A
Artem, 2014-12-08
@I7uoHep

Can you do it like this

overflow: auto;
height:200px;

jsfiddle.net/cvj8uujk

N
Nikolai Antal, 2014-12-08
@hermit931

I think the most correct solution will be through the use of a table, or the display property with the values ​​table-row, table-cell (fortunately, these properties are already adequately processed in all recent browsers). Through scripts it will be somewhat "harder" for the browser

S
Stanislav Cherenkov, 2014-12-08
@stcherenkov

For example, like this: jsfiddle.net/stcherenkov/7yhgyfzn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question