L
L
Lexxtor2014-04-21 13:51:27
Domain Name System
Lexxtor, 2014-04-21 13:51:27

How to configure Bind in Debian so that it gives one IP address for all requests?

This is necessary so that users connect their domains to my service by specifying my NS servers.
I looked at how it was done in a similar project: some time after specifying the domain on the site, this domain appears in the response to the DNS request.
And I want to make it simpler: so that for all requests there is one answer, prepared in advance.
I did not find convenient documentation on Bind :(

Answer the question

In order to leave comments, you need to log in

3 answer(s)
L
Lexxtor, 2014-04-22
@Lexxtor

The config looks like this.
/etc/bind/named.conf.default-zones

zone "." {
    type master;
    file "/etc/bind/db.all";
};

/etc/bind/db.all
$TTL 3600
@ IN SOA ns1.megalanding.com. admin.megalanding.com. (
        2014042101 ; Serial
        21600 ; Refresh
        3600 ; Retry
        604800 ; Expire
        86400 ) ; Negative Cache TTL
    IN NS ns1.megalanding.com.
    IN NS ns2.megalanding.com.
*   IN A 109.120.177.239

A
Alexey Dunaev, 2014-04-21
@keir-ru

Unfortunately, I can't give a definitive answer - I don't currently have a bind-a on which I can check and give a 100% correct answer, but you need to dig from here - en.wikipedia.org/wiki/Wildcard_DNS_record

V
Vlad Zhivotnev, 2014-04-21
@inkvizitor68sl

bind so, most likely, is not able.
Able to dnsmasq, with option --address=/#/1.2.3.4
Or in config /etc/dnsmasq.conf :
address=/#/1.2.3.4

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question