In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "how to configure DNS under Solaris9", which is easy to understand and clear. I hope it can help you solve your doubts. Let me lead you to study and learn this article "how to configure DNS under Solaris9".
one。 First download the latest bind from http://www.isc.org/products/BIND/. What I downloaded is
Bind-9.3.3.tar.gz
two。 Installation configuration
# gunzip-c bind-9.3.3.tar.gz | tar xvf -; extract the bind file
# cd bind-9.3.3
# make
# make install
# cd / etc
# vi named.conf; Edit named configuration file
/
# primary server for test.com.
#
Options {
Directory "/ var/named"
Forwarders {
210.13.41.1; define transponder
203.93.18.1
}
Forward first
}
Zone ". {
Type hint
File "named.root"
}
Zone "test.com" in {
Type master
File "test.zone"
}
Zone "10.168.192.in-addr.arpa" in {
Type master
File "test.rzone"
}
Zone "0.0.127.in-addr.arpa" in {
Type master
File "localhost.rzone"
}
/ / /
# mkdir / var/named; create a named zone file directory
# cd / var/named
# dig > named.root; generate named.root file
# vi localhost.rzone; Editing the parsing file sent locally
$TTL 86400
@ IN SOA server.test.com. Root.server.test.com. (
20007011608; Serial
10800; Refresh-3 hours
3600; Retry-1 hour
432000; Expire-1 week
86400); Minimum-1 day
IN NS server.test.com.
1 IN PTR localhost.
/ / /
# vi test.zone; Editing test.com forward parsing file
$TTL 86400
@ IN SOA server.test.com. Root.server.test.com. (
2007011608; Serial
10800; Refresh-3 hours
3600; Retry-1 hour
432000; Expire-1 week
86400); Minimum-1 day
IN NS server.test.com.
; name ttl class type data
Localhost IN A 127.0.0.1
Server IN A 192.168.10.180
Test2 IN A 192.168.10.22
Test3 IN A 192.168.10.23
Test4 IN A 192.168.10.24
Test5 IN A 192.168.10.25
; Aliases
Mail IN CNAME server
Www IN CNAME server
; Domain mailing address
Test.com. IN MX 2 server.test.com.
/ / /
# vi test.rzone; Editing test.com reverse parsing file
$TTL 86400
@ IN SOA server.test.com. Root.server.test.com. (
2007011608; Serial
10800; Refresh-3 hours
3600; Retry-1 hour
432000; Expire-1 week
86400); Minimum-1 day
IN NS server.test.com.
; Machines names
180 IN PTR server.test.com.
22 IN PTR test2.test.com.
23 IN PTR test3.test.com.
24 IN PTR test4.test.com.
25 IN PTR test5.test.com.
/ / /
three。 Change related configuration fil
# vi / etc/hosts
127.0.0.1 localhost
192.168.10.180 itrus-test5 test.com loghost
# cp / etc/nsswitch.dns / etc/nsswitch.conf; make
# vi / etc/resolv.conf; DNS
Search test.com; configuration
Nameserver 192.168.10.180; effective
four。 Start deamon for DNS
# / usr/sbin/in.named &
five。 test
# nslookup
> www.test.com
Server: 192.168.10.180
Address: 192.168.10.180#53
Www.test.com canonical name = server.test.com.
Name: server.test.com
Address: 192.168.10.180
> mail.test.com
Server: 192.168.10.180
Address: 192.168.10.180#53
Mail.test.com canonical name = server.test.com.
Name: server.test.com
Address: 192.168.10.180
> 192.168.10.180
Server: 192.168.10.180
Address: 192.168.10.180#53
180.10.168.192.in-addr.arpa name = server.test.com.
> 127.0.0.1
Server: 192.168.10.180
Address: 192.168.10.180#53
1.0.0.127.in-addr.arpa name = localhost.
> localhost
Server: 192.168.10.180
Address: 192.168.10.180#53
Name: localhost.test.com
Address: 127.0.0.1
The test results show that the forward reverse local parsing is normal and the DNS configuration is successful.
Note: there is no auxiliary dns and no security settings.
The above is all the contents of the article "how to configure DNS under Solaris9". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.