Bind9 returns a fixed IP address for any domain name query.

Source: Internet
Author: User
Tags domain name server

How to configure bind9 so that all DNS requests initiated to it return a fixed IP address? Some tips can be used.

The following is a configuration example:

First, configure named. conf in the main configuration file:

Zone "." {type master; file "/etc/named. fakeroot ";};

The above Zone "." refers to any zone that is not defined in named. conf. This zone configuration is used in this way: When the Domain Name Server cannot resolve the DNS request, it will want the Root Domain Name Server to initiate a request, Zone ".. However, we have modified this part.

Then configure the domain name in the file/etc/named. fakeroot.

@ In SOA ns.domain.com. hostmaster.domain.com. (1 3 H 1 H 1 W 1D) in NS x. y. Z. A * in a x. y. Z. B

The above @ refers to the name of the zone corresponding to the SOA record.

All a record requests sent to the Domain Name Server will return the IP address of x. y. Z. B.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.