DNS configuration error...

Source: Internet
Author: User
DNS configuration error... -- Linux Enterprise Application-Linux server application information. For more information, see. 1 name. root file

; <> DiG 9.6.0-P1 <>
; Global options: + cmd
; Got answer:
;-> HEADER <-opcode: QUERY, status: NOERROR, id: 6135
; Flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 11

; Question section:
;. INNS

; Answer section:
.4347INNSg.root-servers.net.
.4347INNSf.root-servers.net.
.4347INNSe.root-servers.net.
.4347INNSi.root-servers.net.
.4347inng.root-servers.net.
.4347INNSc.root-servers.net.
.4347INNSh.root-servers.net.
.4347INNSj.root-servers.net.
.4347INNSb.root-servers.net.
.4347INNSl.root-servers.net.
.4347INNSk.root-servers.net.
.4347INNSd.root-servers.net.
.4347INNSm.root-servers.net.

; Additional section:
G.root-servers.net. 4336INA192. 112.36.4.
F.root-servers.net. 4336INA192. 5.5.241.
E.root-servers.net. 4336INA192. 203.230.10
I .root-servers.net. 4336INA192. 36.148.17.
C.root-servers.net. 4336INA192. 33.4.12.
H.root-servers.net. 4336INA128. 63.2.53.
J.root-servers.net. 4347INA192. 58.128.30
B .root-servers.net. 4336INA192. 228.79.201
K.root-servers.net. 4336INA193. 0.14.129.
D.root-servers.net. 4336INA128. 8.10.90
M.root-servers.net. 61343INA202. 12.27.33

; Query time: 4 msec
; SERVER: 131.230.9.10 #53 (131.230.9.10)
; WHEN: Sat Mar 21 16:16:29 2009
; Msg size rcvd: 417


2 named. conf
Key "rndc-key "{
Algorithm hmac-md5;
Secret "Rem58mC95uZjTAem2YVacQ = ";
};

Controls {
Inet 127.0.0.1 port 953
Allow {127.0.0.1;} keys {"rndc-key ";};
};
Options {
Query-source port 53;
Query-source-v6 port 53;
Directory "/var/named ";
Pid-file "named. pid ";
};
Controls {
Inet 127.0.0.1 allow {localhost;} keys {rndckey ;};
};
Zone "." IN {
Type hint;
File "named. root ";
};

Zone "localhost" IN {
Type master;
File "localhost. zone ";
Allow-update {none ;};
};

Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
Allow-update {none ;};
};

Zone "test.edu" IN {
Type master;
File "test.edu. zone ";
Allow-update {none ;};
};
Zone "1.168.192.in-addr. arpa" IN {
Type master;
File "test.edu. local ";
Allow-update {none ;};
};

3 named. local

$ TTL 86400
@ In soa localhost. root. localhost .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns localhost.

1 in ptr localhost.

4 localhost. zone
$ TTL 86400
$ ORIGIN localhost.
@ 1D in soa @ root (
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum

1D in ns @
1D in a 127.0.0.1

5 test.edu. zone
$ TTL 86400
@ In soa ns.test.edu. root.test.edu (
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
@ In ns ns.test.edu.
Ns in a 192.168.1.10
Www in a 192.168.1.10

6 test.edu. local
$ TTL 86400
@ In soa ns.test.edu. root.test.edu .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
@ In ns ns.test.edu.
10 in ptr ns.test.edu.
10 in ptr www.test.edu.

7. Enter the command/usr/local/named/sbin/named-c/usr/local/named/etc/named. conf &
Root @ jeff-laptop :~ #/Usr/local/named/sbin/named-c/usr/local/named/etc/named. conf &
[1] 6759
Root @ jeff-laptop :~ # Host 192.168.1.10
Host 10.1.168.192.in-addr. arpa. not found: 3 (NXDOMAIN)
Root @ jeff-laptop :~ # Ping www.test.edu
PING www.test.edu (216.24.138.136) 56 (84) bytes of data.
Why?
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.