Bind9 DNS server configuration in Debian

Source: Internet
Author: User

1 installing bind

 

Apt-Get installBind

2 configure bind

Edit BIND configuration named. conf;

VI/etc/bind/named. conf

 

Add a "zone" area;

Zone "sip.com "{
Type master;
File "named.sip.com ";
};

 

Note the directory in options. Put all zone files here.

;

Directory "/etc/bind ";

3 configure zone File

Here we add named.sip.com

 

 

VI/etc/bind/named.sip.com

 

; Bind dB file for sip.com

 

$ TTL 86400

 

@ In SOA primary.sip.com. admin.sip.com .(

2008090301; serial number yymmddnn

28800; refresh

7200; retry

864000; expire

86400; min TTL

)

 

NS primary.sip.com.

NS secondary.sip.com.

 

MX 10 mail.sip.com.

MX 20 mail-spool.sip.com.

_ Sip. _ udp srv 0 1 9 primary.sip.com.; SRV record

SRV 0 3 9 secondary.sip.com.

Primary in 10.30.32 . 30

Secondary in 10.30.32 . 31

Mail in 10.30.32 . 32

Mail-spool in 10.30.32 . 34

 

$ Origin sip.com.

 

4 Test

 

Echo "nameserver 127.0.0.1">/etc/resolv. conf

/Etc/init. d/Bind start

 

Dig primary.sip.com

Dig-t srv _ sip. _ udp.sip.com

 

 

Note:

You can use this PHP http://pgl.yoyo.org/adservers/bind-zone-file-creator.php to generate the required zone file, modify it yourself!

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.