Domain Name System on OpenSolaris/OpenIndiana DNS

Square

Я хотел обратить свои внимание создание новых сервисов совсем отличается от учения например FreeBSD в этой системе строгая иерархия расположения каталогов каждый католог созданный с обходами прав с помощью понижения изменения каталога. Стоит неверно не руководсвтвуюясь, как этого неделал за диск системы уже с нерабочей системой из-за неправильного выстроения каталога которых моих изменений внесли ошибку неработоспособности и загрузки. Иерархия права она не произвольно на рабочей системе создается новых каталогов и имен только для сервисов и служб.
Итак создаем сервис DNS:
zfs create rpool/export/named
Создайте в директории конфигурационный файл /export/named/named.conf
в нем прописаны настрйки сервера имен который преобразует адреса сети в доменные имена:
options {
directory «/export/named»;
};
zone «example.com» {
type master;
file «example»;
};
zone «1.168.192.in-addr.arpa» {
type master;
file «192.168.1»;
};
Вот пример файла зоны для домена example.com:
$TTL 86400
@ IN SOA ns.example.com. sam.example.com. (
2008062001 ; serial
10800 ; refresh
3600 ; retry
3600000 ; expire
86400 ) ; minimum
@ NS ns.example.com.
ns A 192.168.1.1
www A 192.168.1.2
mail A 192.168.1.3
sleepy A 192.168.1.4
stuffy A 192.168.1.5
Вот пример файла зоны для 1.168.192.in-addr.arpa:
$TTL 86400
@ IN SOA ns.example.com. sam.example.com. (
2008062001 ; serial
10800 ; refresh
3600 ; retry
3600000 ; expire
86400 ) ; minimum
@ NS ns.example.com.
1 PTR ns.example.com.
2 PTR www.example.com.
3 PTR mail.example.com.
4 PTR sleepy.example.com.
5 PTR stuffy.example.com.
Вы можете убедиться, что ваши файлы зону правильны, прежде чем приступить использованием name-checkzone
Команда: Вот пример файла зоны для 1.168.192.in-addr.arpa:
# named-checkzone example.com /export/named/example
zone example.com/IN: loaded serial 2008062001
OK
# named-checkzone 1.168.192.in-addr.arpa /export/named/192.168.1
zone 1.168.192.in-addr.arpa/IN: loaded serial 2008062001
OK
Далее, необходимо настроить DNS / сервер службы в SMF использовать файлы конфигурации в export/named
# svccfg -s dns/server:default
svc:/network/dns/server:default> setprop options/configuration_file
=/export/named/named.conf
svc:/network/dns/server:default> exit
# svcadm refresh dns/server
# svcadm enable dns/server

Теперь, когда сервер был запущен, вы можете использовать DIG, чтобы убедиться, что он работает.
# dig @localhost stuffy.example.com
; < <>> DiG 9.3.4-P1 < <>> @localhost stuffy.example.com
; (2 servers found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER< <- opcode: QUERY, status: NOERROR, id: 1988 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1 ;; QUESTION SECTION: ;stuffy.example.com. IN A ;; ANSWER SECTION: stuffy.example.com. 86400 IN A 192.168.1.5 ;; AUTHORITY SECTION: example.com. 86400 IN NS ns.example.com. ;; ADDITIONAL SECTION: ns.example.com. 86400 IN A 192.168.1.1 ;; Query time: 27 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Fri Jun 20 16:21:25 2008 ;; MSG SIZE rcvd: 85

Comment

6 Replies to “Domain Name System on OpenSolaris/OpenIndiana DNS”

  1. Thank you for your entire labor on this web site. My mom take interest in participating in investigations and it is obvious why. My partner and i learn all regarding the lively tactic you produce simple thoughts through your web site and in addition invigorate response from the others on the subject then our favorite princess is truly studying a whole lot. Take advantage of the rest of the year. You have been doing a superb job.

  2. I enjoy you because of all of the effort on this blog. Debby delights in conducting internet research and it’s easy to see why. A number of us hear all about the compelling form you create both useful and interesting guides by means of the blog and boost contribution from other ones about this area of interest and my child has been becoming educated a great deal. Enjoy the remaining portion of the new year. You’re carrying out a fabulous job.

  3. I am also commenting to let you know of the helpful encounter my friend’s daughter found reading through your web page. She figured out numerous issues, not to mention what it’s like to have an amazing giving mood to have most people really easily know selected impossible subject areas. You really exceeded our own expectations. Many thanks for imparting the invaluable, safe, explanatory and even easy thoughts on the topic to Janet.

  4. I’m also commenting to let you be aware of of the beneficial discovery my child encountered checking the blog. She came to understand a lot of details, including how it is like to have a marvelous coaching character to get certain people completely comprehend a variety of complex issues. You actually did more than her desires. I appreciate you for coming up with such essential, dependable, edifying and cool guidance on that topic to Ethel.

  5. I simply needed to thank you so much once again. I am not sure the things that I would’ve implemented without the type of recommendations provided by you on such a question. It previously was a very frightful dilemma in my opinion, however , noticing the very specialised mode you processed that made me to leap over gladness. I am just happy for this information and in addition hope that you know what a great job you are always getting into teaching people thru your web blog. More than likely you have never got to know any of us.

  6. I’m also commenting to let you be aware of of the cool discovery my child encountered checking your blog. She came to understand a wide variety of details, most notably how it is like to have a marvelous coaching heart to get folks easily fully grasp a variety of complicated matters. You actually did more than my desires. I appreciate you for delivering such good, dependable, edifying and also cool guidance on that topic to Evelyn.

Добавить комментарий

Ваш e-mail не будет опубликован. Обязательные поля помечены *