LoginSignup
0
0

More than 3 years have passed since last update.

webarenaでubuntu その48

Last updated at Posted at 2019-09-14

概要

webarenaでubuntu18.04やってみた。
練習問題やってみた。

練習問題

新規にdomainを公開せよ。

レジストラで、domainを買う。

プライマリーDNSの設定。

Bindでzoneファイル作る。

$TTL    86400
@   IN  SOA foge.com. root (
    2019081301
    10800
    3600
    604800
    86400
)
@   IN NS ns.foge.com.
@   IN MX 10 mail.foge.com.
ns  IN A 100.100.100.100
www IN A 100.100.100.100
mail    IN A 100.100.100.100

セカンダリーDNSの設定。

maihama-net.comを使う。

レジストラにDNS設定

Primary: ns.foge.com
Secondary: ns1.maihama-net.com
Secondary: ns3.maihama-net.com

dns伝播を待つ

一週間待つ。

adduserする。

sudo adduser hoge

ftpする。

public_htmlに、index.html

WWWの設定。

000-default.conf

<VirtualHost *:80>
    ServerName hoge.com
    ServerAdmin webmaster@localhost
    DocumentRoot /home/hoge/public_html/
    <Directory /home/hoge/public_html>
        AllowOverride None
        Require all granted
    </Directory>
</VirtualHost>

MAILの設定。

main.cf

virtual_alias_domains = hoge.com

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0