Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure DNS service under SUSE Enterprise 10

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to configure DNS services under SUSE Enterprise 10. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

First, create a simple website

1. After installing apache, the default web page directory is stored under / srv/www/htdocs, or you can modify the web page root directory through / etc/apache2/default-server.conf. Create a web page file directly under the matching directory: echo "Thisishomepage" > / srv/www/htdocs/index.html

2. After installing apache, the service has been started by default. We can directly enter http://IP under the browser (recommended for web caching in FireFox,IE) to access the website. If not, you should check LINUX's firewall!

3. Apache is not enabled by default, and boot is set by command chkconfig-sapache235.

II. Creation of private web pages

What is a private web page? There is a linux account on the server. We can directly enter http://IP/~sun to access the web page of the sun account. This makes it convenient for designers to have their own accounts to design their own websites! But this time we ask to use http://sun.home.com to visit the website to ask people. How to set it up?

1. This feature is not enabled by default. We need to modify the system setting vi/etc/apache2/default-server.conf. There is an option in the file: optionnone. After changing it to followsymlinks, restart the apache service-rcapache2restart.

2, create a web folder, mkdir/home/sun/web, under the / home/sun directory. Write the index.html file under the web folder, and then soft link this folder to / srv/www/htdocs/sun:ln-s/home/sun/web//srv/ww/htdocs/sun. Make sure the folder has read permission, otherwise you won't be able to access private web pages.

3, try it! Http://home.com/sunloading.....ok!

Why http://home.com/sun instead of http://sun.home.com?? Don't worry, it's just a test to see if you can access a private web page. To achieve this function, we also need to modify the main area of the DNS service.

4. Modify the main area of the DNS service: vi/var/lib/named/master/suse.com.zone adds a cname record to the file!

QUOTE:

Suse:/#cat/var/lib/named/master/home.com.zone

$TTL1d

@ INSOA@root (200801052d4h7w1w)

INNSsuse.home.com

SuseINA192.168.1.10

Ps3INA192.168.1.88

EnglishINA192.168.1.200

GatewayINA192.168.1.1

SunINCNAMEsuse

Then reload the main area area configuration rcnamedreload

5. Create a virtual host

There are two kinds of virtual hosts, IP-based virtual hosts and name-based virtual hosts. The following is a name-based virtual host.

Modify the / etc/apache2/default-server.conf file. Add the following text in * *:

Class=codetop > CODE:class=codemain > namevirtualhost192.168.1.10

Servernamesuse.home.com

Documentroot/srv/www/htdocs

Servernamesun.home.com

Documentroot/srv/www/htdocs/sun

Servernamehello.home.com

Documentroot/srv/www/htdocs/hello

Then use http://sun.home.com to enter, and you can access the web page you need!

This is the end of the article on "how to configure DNS Services under SUSE Enterprise 10". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report