Introduction to DNS server configuration in LinuxIPv6

Source: Internet
Author: User
Article Title: Introduction to DNS server configuration in LinuxIPv6 Environment. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

In Linux, Bind is the preferred software for building DNS Server. It has different versions. Windows DNS is from Bind 4. in addition, Bind8.x and Bind9.x have made many improvements in terms of security and scalability. To support IPv6DNS, Bind v9 is used. bind9.x provides IPv6 socket DNS queries, support for IPv6 resource records? For details about Bind9.x, we recommend that you check the Bind Web site. The latest Bind version can be downloaded at www.isc.org/products/BIND?

# Wget http://ftp.isc.org/isc/bind9/9.3.2/bind-9.3.2.tar.gz
# Tar-xzf bind-9.2.1.tar.gz
# Cd bind-9.2.1
#./Configure-enable-ipv6-with-openssl
# Make & make install

After the Bind software is installed, how many inherent files will be generated? One is the configuration file under the/etc directory, and the other is the DNS record file under the/var/named directory? Add other related files to set the DNS server together? Named. conf is the default primary configuration file (which must be manually created). It sets the general named parameter and points to the source of the domain database information used by the server, can this type of source be a local disk file or a remote server?

Named. ca: pointing to the Root Domain Name Server
Named. 1 ocal: Used to locally convert the return address
Named. hosts: map the host name to an IP address

The following uses the domain name secv6.your. domain of the pure IPv6 lab network established in the experiment as an example to describe how to configure an IPv6 domain Name Server that supports AAAA and A6 records.

File List 1/etc/named. conf

Options ...{
Directory "/var/named ";

// A caching only nameserver config
Zone "." IN ...{
Type hint;
File "named. ca ";
};

// This defines the loopback name lookup
Zone "localhost" IN ...{
Type master;
File "master/localhost. zone ";
Allow-update... {none ;};
};

// This defines the loopback reverse name lookup
Zone "0.0.127.in-addr. arpa" IN ...{
Type master;
File "master/localhost. rev ";
Allow-update... {none ;};
};

// This defines the secv6 domain name lookup
// Secure (signed) zone file is
// Secv6.your. domain. signed
// Regular zone file is secv6.your. domain
Zone "secv6.your. domain" IN ...{
Type master;
File "master/secv6.your. domain. signed ";
// File "master/secv6.your. domain ";
};

// This defines the secv6 domain reverse
// Name lookup (AAAA)
Zone "secv6.int" IN ...{
Type master;
File "master/secv6.int ";
};

// This defines the secv6 domain reverse
// Name lookup (A6)
Zone "secv6.arpa" IN ...{
Type master;
File "master/secv6.rev ";
};

// Secret key truncated to fit
Key "key "...{
Algorithm hmac-md5;
Secret "hxbmanso0quvxcxbdjmamjrmhgduvfcfncfmh ";
};

File List 2/var/named/master/secv6.your. domain

$ TTL 86400
$ ORIGIN secv6.your. domain.
@ In soa secv6.your. domain. hostmaster. your. domain .(
2002011442; Serial number (yyyymmdd-num)
3 H; Refresh
15 M; Retry
1 W; Expire
1D); Minimum
In mx 10 noah. your. domain.
In ns ns. secv6.your. domain.
$ ORIGIN secv6.your. domain.
Ns 1D in aaaa fec0: 1: 250: b7ff: fe14: 35d0
1D IN A6 0 fec0: 1: 250: b7ff: fe14: 35d0
Secv6.your. domain. 1D in aaaa fec0: 1: 250: b7ff: fe14: 35d0 1D IN A6 0
Fec0: 1: 250: b7ff: fe14: 35d0
Pc2 1D in aaaa fec0: 1: 250: b7ff: fe14: 35d0 1D IN A6 0
Fec0: 1: 250: b7ff: fe14: 35d0
Pc3 1D IN A6 0 fec0: 1: 250: b9ff: fe00: 131 1D IN AAAA
Fec0: 1: 250: b9ff: fe00: 131
Pc6 1D IN A6 0 fec0: 1: 250: b7ff: fe14: 3617 1D IN AAAA
Fec0: 1: 250: b7ff: fe14: 3617
Pc4 1D IN A6 0 fec0: 1: 250: b7ff: fe14: 35c4 1D IN AAAA
Fec0: 1: 250: b7ff: fe14: 35c4
Pc5 1D IN A6 0 fec0: 1: 250: b7ff: fe14: 361b 1D IN AAAA
Fec0: 1: 250: b7ff: fe14: 361b
Pc7 1D IN A6 0 fec0: 1: 250: b7ff: fe14: 365a 1D IN AAAA
Fec0: 1: 250: b7ff: fe14: 365a
Pc1 1D IN A6 0 fec0: 1: 250: b9ff: fe00: 12e 1D IN AAAA
Fec0: 1: 250: b9ff: fe00: 12e
Pc1 1D IN A6 0 fec0: 0: 0: 1: 1 1D in aaaa fec0: 0: 0: 1: 1
$ INCLUDE "/var/named/master/Ksecv6.your. domain. + 003 + 27034.key"

[1] [2] [3] Next page

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.