DNS compilation is complete, but XNDOMAIN is prompted during nslookup.

Source: Internet
Author: User
Tags nslookup nxdomain
After DNS compilation is complete, the system prompts "XNDOMAIN -- Linux Enterprise Application-Linux server application" during nslookup. The following is a detailed description. Attaches all the compilation content, and red indicates the modified items.

The host name is linux, the DNS domain name to be configured is test.com, and the Host IP address is 10.47.32.152.
10.47.32.20.for windows PC under the same network segment

Configuration of the/etc/named. conf file
Options {
Listen-on port 53 {10.47.32.152 ;};
Listen-on-v6 port 53 {: 1 ;};
Directory "/var/named ";
Dump-file "/var/named/data/cache_dump.db ";
Statistics-file "/var/named/data/named_stats.txt ";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
Allow-query {any ;};
Recursion yes;
};

Logging {
Channel default_debug {
File "data/named. run ";
Severity dynamic;
};
};

Zone "." IN {
Type hint;
File "named. ca ";
};

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

Zone "32.47.10-in. addr. arpa" IN {
Type master;
File "10.47.32.zone ";
Allow-update {none ;};
};

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

Include "/etc/named. rfc1912.zones ";

/Var/named/test.com. zone file configuration
$ TTL 1D
@ In soa linux.test.com. root.linux.test.com .(
2008080100; serial
28800; refresh
14400; retry
3600000; expriy
86400); minimum
In ns linux.test.com.
Linux in a 10.47.32.152
Xdw in a 10.47.32.133


/Var/named/10.47.32.zone file configuration
@ In soa linux.test.com. root.linux.test.com .(
2008080100; serial
28800; refresh
14400; retry
3600000; expriy
86400); minimum

In ns linux.test.com.
152 in ptr linux.test.com.
137 in ptr xdw.test.com.

/Var/named/127.0.0.zone file configuration
@ In soa @ root. locahost. (2008080100 1 H 15 W 1 W 1D)
In ns locahost.
1 in ptr locahost.

Configuration of the/etc/resolv. conf file
Search test.com
Nameserver 10.47.32.152
Nameserver 202.100.64.68

These five files are compiled in total. After compilation, the named-checkconf check is normal. service named restart can start the named service normally, and tail/var/log/messages can also see running.
In windows, ping linux.test.com and xdw.test.com can be resolved to the correct address,
During nslookup in FC9, the following message is displayed: in windows, nslookup also has a similar prompt. Where is the configuration problem?
[Root @ linux etc] # nslookup
> Ping linux.test.com
Server: 10.47.32.152
Address: 10.47.32.152 #53

** Server can't find ping: NXDOMAIN

[Root @ linux etc] # nslookup 10.47.32.152
Server: 10.47.32.152
Address: 10.47.32.152 #53

** Server can't find 152.32.47.10.in-addr. arpa.: NXDOMAIN

[ This post was last edited by meinv911]
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.