Aix dns Server Configuration

Source: Internet
Author: User
Tags nslookup

Lab environment:

AIX: OS Version: AIX 5L for POWER V5.1

IP address: 192.168.0.5

Assume Domain Name: king.com

Host Name: pp.king.com

As a Domain Name Server, a complete server is required to have the positive and reverse functions. Currently, many DNS servers, especially win, do not have the reverse function.


Start now

To set up a complete DNS server, you must set up six files:

Named. conf # main configuration file

Named. ca #

Native positive solution file

Local decompressed File

Forward file of domain name

Reverse file of domain name

After an AIX V5.1 instance is installed, the DNS software bind has been installed and started.

You can use this command to view:

# Lssrc-s named

Subsystem Group PID Status

Named tcpip 15666 active

Bind4 and bind8 are installed by default. Of course, bind9 is available in the latest version, but we can use bind8.

The system uses bind4 by default at the beginning, so we can run the following command to start using bind8:

# Rm/usr/sbin/named-xfer

Ln-s/usr/sbin/named8/usr/sbin/named

Ln-s/usr/sbin/named8-xfer/usr/sbin/named-xfer

Check:

# Named-v

Named 8.2.2-P5 + Fix_for_CERT_till_01_30_01 Sun Apr 8 08:05:23 CDT 2001

Build@builder07.austin.ibm.com :/... /Austin.ibm.com/fs/proj/p1/aix/aix510

/Com4/CMVC/obj/power/tcpip/usr/sbin/named8


Now let's write the configuration file. The configuration method is the same as that of Solaris)

1. First, it is the most important setting file. Other files are defined by it to take effect.

/Etc/named. confbind4: named. boot)

You can run the touch/etc/named. conf command to generate a file and then add the content.

Options {

Directory "/etc"; # sets the working directory, where bind searches for the required files.

};

Zone "."{

Type hint;

File "named. ca"; # root server

};

Zone "0.0.127.in-addr. arpa "{

Type master;

File "0.0.127.in-addr. arpa. zone"; # decompress the local file. The file name can be customized.

};

Zone "localhost "{

Type master;

File "localhost. zone"; # file of the Forward Solution on the local end

};

Zone "king.com "{

Type master;

File "king.com. zone"; # file of the Forward Solution of domain name

};

Zone "0.168.192.in-addr. arpa "{

Type master;

File "0.168.192.in-addr. arpa. zone"; # reverse file of domain name

};


2./etc/named. ca

If our DNS server is connected to the internet, then named. ca contains our superior server. When a domain name cannot be found on the local machine, it will go to named. check the servers in the ca. Sometimes these servers change, so we can download this file.

Bytes.


3./etc/0.0.127.in-addr. arpa. zone

$ TTL 86400 @ in soa localhost. root. localhost.

2; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

@ In ns localhost.

1 in ptr localhost.

1 in ptr pp.


4./etc/localhost. zone

$ TTL 86400 @ in soa @ root. localhost

1; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

In ns localhost.

@ In a 127.0.0.1


5./etc/king.com. zone

$ TTL 86400 @ in soa pp.king.com. root. localhost

3; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

In ns pp.king.com.

Www in a 192.168.0.5

Pp in a 192.168.0.5

Mail in cname www


6./etc/0.168.192.in-addr. arpa. zone

$ TTL 86400 @ in soa pp.king.com. root.pp.king.com.

4; serial

28800; refresh

7200; retry

604800; expire

86400; ttl

)

@ In ns pp.king.com.

5 in ptr pp.king.com.

After six files are completed, let's create a file/etc/resolv. conf: indicates that the Domain Name Service of the local machine is provided by/etc/hosts. If it exists and is empty, it indicates that the local machine is a domain name server. If it exists and is not empty, indicates that the local machine is a client that provides domain name resolution by the Domain Name Server.

Use this command to create this file:

Touch/etc/resolv. conf

Finally, let's start it.

You can use the smit stnamed expressway to start up.

You can also use startsrc-s named to start.

If it has been started, you can use stopsrc-s named to close it.

You can use the lssrc-s named to check its status. If the status is active, we can test it.


Test

The simplest method is nslookup.

For example, in this example:

# Nslookup

Default Server: pp.king.com

Address: 0.0.0.0

>; Www.king.com # Positive Solution

Server: pp.king.com

Address: 0.0.0.0

Non-authoritative answer:

Name: www.king.com

Address: 192.168.0.5

>; Pp.king.com # Positive Solution

Server: pp.king.com

Address: 0.0.0.0

Non-authoritative answer:

Name: pp.king.com

Address: 192.168.0.5

>; Mail.king.com # Positive Solution

Server: pp.king.com

Address: 0.0.0.0

Non-authoritative answer:

Name: www.king.com

Address: 192.168.0.5

Aliases: mail.king.com

>; 192.168.0.5 # Reverse Solution

Server: pp.king.com

Address: 0.0.0.0

Name: pp.king.com

Address: 192.168.0.5

Then add the server IP192.168.0.5 to the DNS address of the client.


Retest

C: \>; ping www.king.com

Pinging www.king.com [192.168.0.5] with 32 bytes of data:

Reply from 192.168.0.5: bytes = 32 time <1 ms TTL = 255

Reply from 192.168.0.5: bytes = 32 time <1 ms TTL = 255

Reply from 192.168.0.5: bytes = 32 time <1 ms TTL = 255

Reply from 192.168.0.5: bytes = 32 time <1 ms TTL = 255

Ping statistics for 192.168.0.5:

Packets: Sent = 4, stored ED = 4, Lost = 0 0% loss ),

Approximate round trip times in milli-seconds:

Minimum = 0 ms, Maximum = 0 ms, Average = 0 ms


Oracle video tutorial follow: http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html


Related Article

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.