T
T
tooozox2017-03-04 11:04:20
Domain Name System
tooozox, 2017-03-04 11:04:20

How to setup dnsmasq for local .local domain?

Hello!
What is available:
Based machine: Ubuntu 16.10
Virtual machine: ubuntu server, which is visible on the network through ip 192.168.1.200. It runs nginx, a configured test.local server that serves static files (done just to test dns).
You need to configure dnsmasq so that when you type in the browser, for example, test.local, it will type into the virtual machine, and then the request is processed by nginx.
When you enter the ip address of the virtual machine, a standard nginx stub is displayed, which means that nginx is working fine (I didn’t configure it for something else).
Editing /etc/hosts (192.168.1.200 test.local) gives the expected result, but this method is not suitable for a number of reasons.
What I tried:
Edited /etc/dnsmasq.conf.
address=/local/192.168.1.200
listen-address=127.0.0.1
Result: no expected result, when you enter test.local in the browser, it says that dns did not find such a file (with or without listen-address enabled).
Edited /etc/dnsmasq.conf according to this instruction, does not work.
PS in /etc/resolv.conf 'nameserver 127.0.0.1' is registered.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
T
tooozox, 2017-03-04
@toozox

In general, he did. Created a file /etc/dnsmasq.d/dev.conf with the following content

listen-address=127.0.0.1
address=/.dev/192.168.1.200

What is surprising, if instead of .dev there is .local, then it does not work.

B
Boris Korobkov, 2017-11-25
@GhostFantik

contact the server and see the schedule

Enough PHP
Web sockets on node.js
It's easier to use MySQL or PostgreSQL. Don't touch NoSQL yet, because
Green newbie on the web

M
McBernar, 2017-11-25
@McBernar

Mongo can be used. Node is great. It's an object-oriented database, like all JS. I am sure that you will not make any transactions, so yes - take it.

A
Alexander, 2017-11-25
Madzhugin @Suntechnic

For this project - any. Generally there are no requirements. PHP can handle saving to files, not to mention the database. NoSQL is not needed if your school has less than a million students.
If the project were not for the competition, but for work, I would suggest Bitrix, oddly enough - the Start edition is enough for the eyes, but the main advantage is the ability to quickly and easily create applications for all mobile platforms simply from the web version. True, you will have to pay for the assembly under 50tyr, but this is the same for all platforms.

O
oh, 2017-12-08
well @AnneSmith

of course node & mongo
take any tutorial and make your project

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question