Do I have to modify the reverse resolution file for wildcard domain name resolution?

Source: Internet
Author: User
Tags nslookup
Do I have to modify the reverse resolution file for wildcard domain name resolution? -- Linux Enterprise Application-Linux server application information. For details, refer to the following section. For example, the environment is as follows:

I set up lamp on linux. Then, we installed bbs and blog respectively. And implements
Www.yangjun.cn ---- Homepage
Bbs.yangjun.cn ---- Forum
Blog.yangjun.cn ---- blog

Everything is normal. What I need now is that any prefix (* .yangjun.cn) in the address bar can be parsed to the blog (blog.yangjun.cn.

I modified three files:

1./var/named/yangjun.cn (Forward parsing file)


CODE: [Copy to clipboard] @ 1D in soa yangjun.cn. root.yangjun.cn .(
42; serial
3 H; refresh
15 M; retry
1 W; expiry
1D); Minimum
In ns blog.yangjun.cn.
In a 192.168.1.85
Www in a 192.168.1.85
Bbs in cname www
Blog in cname www
Zhuzhan in cname www
Boke in cname www
Luntan in cname www
* In a 192.168.1.85
2./var/named/yangjun. rev (reverse parsing file)


CODE: [Copy to clipboard] $ TTL 86400
@ In soa yangjun.cn. root.yangjun.cn .(
2007051700; serial
28800; refresh
14400; retry
3600000; expire
86400); Minimum
In ns blog.yangjun.cn.

85 in ptr www.yangjun.cn.
85 in ptr blog.yangjun.cn.
85 in ptr bbs.yangjun.cn.
85 in ptr zhuzhan.yangjun.cn.
85 in ptr boke.yangjun.cn.
85 in ptr luntan.yangjun.cn.
3./usr/local/apache/conf/extra/httpd-vhosts


CODE: [Copy to clipboard]
ServerAdmin yangjun@qq.com
DocumentRoot/var/web/blog
ServerName blog.yangjun.cn
ServerAlias boke.yangjun.cn
ServerAlias * .yangjun.cn
ErrorLog logs/dummy-host.example.com-error_log
CustomLog logs/dummy-host.example.com-access_log common

As mentioned above, everything is OK.

But I am a little surprised, why is/var/named/yangjun. rev modified?
I cannot join

85 in ptr * .yangjun.cn.

This line does not work if you join this line.

> Nslookup 192.168.1.85

An error occurs.

[Root @ YangJun named] # nslookup 192.168.1.85
Server: 192.168.1.85
Address: 192.168.1.85 #53

** Server can't find 85.1.168.192.in-addr. arpa: SERVFAIL

Why is it that the file for reverse resolution does not need to be modified for wildcard domain name resolution?
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.