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

38 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.

  7. I will immediately grasp your rss feed as I can’t find
    your e-mail subscription hyperlink or newsletter service. Do you’ve any?
    Kindly allow me understand in order that I may subscribe. Thanks.

  8. I will right away grasp your rss feed as I can not find your e-mail subscription hyperlink or newsletter service.
    Do you’ve any? Please allow me understand in order that I may subscribe.
    Thanks.

  9. Hi there, i read your blog from time to time and i own a
    similar one and i was just curious if you get a lot of spam
    feedback? If so how do you protect against it, any plugin or anything you can suggest?
    I get so much lately it’s driving me crazy so any
    assistance is very much appreciated.

  10. Hi would you mind stating which blog platform you’re using?
    I’m looking to start my own blog soon but I’m having a hard time selecting between BlogEngine/Wordpress/B2evolution and Drupal.
    The reason I ask is because your design and style
    seems different then most blogs and I’m looking for something completely
    unique. P.S Apologies for getting off-topic but I had to ask!

  11. Greetings from Florida! I’m bored to death at work so I decided to check
    out your site on my iphone during lunch break. I really like the knowledge you present here and
    can’t wait to take a look when I get home.
    I’m amazed at how quick your blog loaded on my mobile ..
    I’m not even using WIFI, just 3G .. Anyhow, great blog!

  12. I’ll immediately grab your rss as I can not find your email subscription link or
    e-newsletter service. Do you’ve any? Please permit me understand in order that
    I may subscribe. Thanks.

  13. It’s the best time to make a few plans for the longer term and it’s time to be
    happy. I’ve read this post and if I could I wish to counsel you few fascinating things or tips.

    Perhaps you could write next articles relating to this article.
    I desire to learn even more things approximately it!

  14. I’ve been browsing online more than 2 hours today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. In my opinion, if all web
    owners and bloggers made good content as you did, the web will be much more
    useful than ever before.

  15. Hey just wanted to give you a quick heads up. The text in your article seem
    to be running off the screen in Chrome. I’m not sure if this is a formatting
    issue or something to do with internet browser compatibility
    but I thought I’d post to let you know. The design and style look great though!
    Hope you get the problem resolved soon. Cheers

  16. Thank you a lot for giving everyone an exceptionally remarkable opportunity to read from this blog. It can be very nice plus stuffed with a lot of fun for me personally and my office co-workers to search your site particularly thrice a week to find out the fresh things you will have. And definitely, we are always pleased with the staggering secrets you give. Selected two ideas in this article are particularly the very best I’ve had.

  17. Needed to create you one little bit of note to be able to thank you over again for your personal exceptional secrets you have discussed at this time. It’s really seriously generous of people like you to make openly just what many people would have marketed for an e book to help with making some money for themselves, certainly considering the fact that you could have done it in the event you wanted. The good ideas in addition served like a easy way to know that most people have similar zeal the same as mine to know the truth whole lot more around this problem. I am sure there are many more pleasurable moments up front for those who look over your website.

  18. I’ve been surfing on-line more than three hours nowadays,
    but I never found any fascinating article like yours.
    It is beautiful value enough for me. Personally,
    if all webmasters and bloggers made good content as you probably did,
    the net will probably be a lot more helpful than ever before.

  19. I’ve been surfing online more than 4 hours
    today, yet I never found any interesting article like yours.
    It is pretty worth enough for me. In my opinion, if all website owners and bloggers made good content as you did, the web
    will be much more useful than ever before.

  20. I have been browsing online more than three hours lately,
    yet I never discovered any attention-grabbing article like yours.
    It is pretty price sufficient for me. In my view, if all site owners and bloggers made just right content material as you probably did, the internet will likely be much more helpful than ever before.

  21. Wonderful blog! Do you have any suggestions for
    aspiring writers? I’m hoping to start my own website soon but I’m a little lost on everything.

    Would you recommend starting with a free platform like WordPress or go for a paid
    option? There are so many choices out there that I’m completely confused ..

    Any recommendations? Thanks a lot!

  22. I needed to write you a bit of remark to help give thanks the moment again for all the unique solutions you’ve contributed on this site. It has been so particularly open-handed with you to offer publicly what exactly a number of people would’ve marketed for an e book to help with making some cash for themselves, most notably since you could possibly have done it in the event you wanted. These strategies likewise worked like the easy way to know that other people online have the identical keenness like my very own to grasp very much more with reference to this problem. I believe there are lots of more fun moments in the future for people who read carefully your website.

  23. Woah! I’m really loving the template/theme of this website.
    It’s simple, yet effective. A lot of times it’s very difficult to get that «perfect balance» between superb usability and visual
    appeal. I must say that you’ve done a fantastic job with this.
    Additionally, the blog loads very fast for me on Chrome.
    Superb Blog!

Добавить комментарий для Valentin Sutton Отменить ответ

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