Build a server based on FedoraCoreNFS

Source: Internet
Author: User
Tags nslookup
Article Title: Build a server based on FedoraCoreNFS. 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.

Domain Name Server construction mainly involves the following files:

(1)/etc/named. conf. This file is generally a soft link;
(2)/etc/hosts (not required)
(3)/etc/host. conf (generally, order hosts and bind are not required)
(4)/var/named /*

This document is only a preliminary NFS construction project, that is, the level of operation, there is no advanced settings, the purpose is to get started quickly.

Of course, you must first check whether the system has installed the DNS software tool (BIND). If not, you only need to re-install it on the CD or download the source code package for compilation and installation on the official website, the BIND provided by the system is used here;

Next, configure the relevant files;

The related configuration files are in the/var/named directory. The main configuration is/var/named/chroot/etc/named. conf, where the domain parsing file is stored in the/var/named/chroot/var/named directory;

This is to build a simple DNS server and set the Host Name of the DNS server;

The procedure is as follows:

1. Configure the named. conf file

/Var/named/chroot/etc/named. conf:

Zone "osservers.com" IN {

Type master;

File "osserver.com. zone ";

Allow-update {none ;};

};

Zone "67.20.172.in-addr. arpa" IN {

Type master;

File "zone.osserver.com ";

Allow-update {none ;};

};

2. Configure the corresponding parsing File

The two parsing files are as follows: (/var/named/chroot/var/named)

/Var/named/chroot/var/named/osserver.com. zone file:

$ TTL 86400

@ In soa dns.osservers.com. root.osservers.com .(

42; serial (d. adams)

3 H; refresh

15 M; retry

1 W; expiry

1D); minimum

In ns dns.osservers.com.

In ns 172.20.67.203

Dns.osservers.com. in a 172.20.67.203

Www in a 172.20.67.203

/Var/named/chroot/var/named/zone.osserver.com file:

$ TTL 86400

@ In soa dns.osservers.com. root.osservers.com .(

1997022700; Serial

28800; Refresh

14400; Retry

3600000; Expire

86400); Minimum

In ns dns.osservers.com.

203 in ptr www.osservers.com.

3. Restart the service

/Etc/init. d/named restart

4. Test part

(1) set the domain name file/etc/resolve. conf and add nameserver 172.20.67.203;

(2) nslookup/host/test:

[Root @ samba named] # nslookup

> 172.20.67.203

Server: 172.20.67.203

Address: 172.20.67.203 #53

203.67.20.172.in-addr. arpa name = www.osservers.com.

> Www.osservers.com

Server: 172.20.67.203

Address: 172.20.67.203 #53

Name: www.osservers.com

Address: 172.20.67.203

>

[Root @ samba named] # host www.osservers.com

Www.osservers.com has address 172.20.67.203

[Root @ samba named] # host 172.20.67.203

203.67.20.172.in-addr. arpa domain name pointer www.osservers.com.

[Root @ samba named] #

[Root @ samba named] # dig www.osservers.com

; <> DiG 9.3.2 <> www.osservers.com

; Global options: printcmd

; Got answer:

;-> HEADER <-opcode: QUERY, status: NOERROR, id: 3294

; Flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

; Question section:

Www.osservers.com. IN

; Answer section:

Www.osservers.com. 86400 in a 172.20.67.203

; Authority section:

Osservers.com. 86400 in ns 172.20.67.203.

Osservers.com. 86400 in ns dns.osservers.com.

; Additional section:

Dns.osservers.com. 86400 in a 172.20.67.203

; Query time: 1 msec

; SERVER: 172.20.67.203 #53 (172.20.67.203)

; WHEN: Wed Apr 25 13:39:31 2007

; Msg size rcvd: 112

OK!

The simple DNS server is complete.

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.