I
I
Ivperivm102016-01-31 00:57:38
Domain Name System
Ivperivm10, 2016-01-31 00:57:38

How to arrange DNS directing all URLs to one IP?

Hello, administration gurus and masters of raising servers from their knees!
You need your own "dns server" that will respond to all requests to a given address (for example, 127.0.0.1)
Is it possible to do this?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
A
Alexey S., 2016-01-31
@Ivperivm10

Here:
https://github.com/jimmykane/Roque-Dns-Server
just change a couple of lines and remove the extra

E
Ergil Osin, 2016-01-31
@Ernillew

The Domain Name System is not responsible for the Uniform Resource Locator, only for domain name resolution. Therefore, there is only one answer to the question posed: not to organize in any way.
Reframe the question.

A
Andrew, 2016-01-31
@caa888

see the book - https://yadi.sk/i/-KWEiyeoo4FuD , p. 2.17 Mapping Any Domain Name in a Zone
to a Single IP Address.
And so the point is to add a line like:
*.foo.example in the zone description file. IN CNAME foo.example.

V
Vladimir Martyanov, 2016-01-31
@vilgeforce

Such crap is done on twisted, for example, in 20 lines of code. Name-server 127.0.0.1 is written on the machine and the script with twisted is launched. And everything will resolve anywhere.

R
res2001, 2016-01-31
@res2001

You need a CNAME record - it's an alias.
Create one A record for any domain, preferably the main one.
Make CNAME records for other domain names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question