RedHat7.2dns configuration

xiaoxiao2021-03-06  118

When the previous time is a Sendmail mail server, the DNS is configured to configure the DNS, and the information found on the Internet is the configuration of the 6.x version, followed by NSLOOKUP, always Server CAN Find No way, the company's leadership is tight, I have to pay with Samba (as long as the Samba's Linux server and the Windows client are in the same group). Later, after N times, I finally found a way to get DNS, now the following (welcome everyone to make an opinion):

(1) First enter the / etc directory, vi named.conf, where it is joined in it:

ZONE "X.x" in {

TYPE MASTER;

File "X.x";

}

Zone "0.168.192.in-addr.Arpa" in {

TYPE MASTER;

File "192.168.0";

}

(2), in entering the / var / named directory, create a forward resolution file and reverse resolution file, the file is too complicated, is it not created, it doesn't matter, this is a stupid method I found, LS is there a Localhost .zone's file is her, cp localhost.zone XX, this is not there, Vi XX has the following interface:

$ TTL 86400

$ ORIGIN LOCALHOST.

@ 1D in SOA @ root

42; Serial (d. Adams)

Refresh

15m; Retry

1W; Expiry

1D); Minimum

1D in ns @

1D I 127.0.0.1

Change this file to:

$ TTL 86400

$ ORIGIN X.x.

@ 1D in SOA @ root

42; Serial (d. Adams)

Refresh

15m; Retry

1W; Expiry

1D); Minimum

1D in ns @

1D in a xxxx.xxxx.xxxx.xxxx

Yes. Then in /etc/init.d/named restart, there is, it is parsing, do not believe, try again with nslookup. Reverse parsing with the Named.local file CP is one, not more, try a few times, Nslookup is certainly successful.

转载请注明原文地址:https://www.9cbs.com/read-99272.html

New Post(0)