LoginSignup
0

More than 3 years have passed since last update.

webarenaでubuntu その50

Last updated at Posted at 2019-09-26

概要

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

練習問題

プライマリーDNSサーバーを更新せよ。

BINDをインストール。

sudo apt-get install bind

ポートを開ける。

udp:53,53,ip4:0.0.0.0/0
tcp:53,53,ip4:0.0.0.0/0

named.confを修正。

zone "foge.com" IN {
    type master;
    file "foge.com.zone";
};

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

digでテスト。

外部から

dig @100.100.100.100 foge.com any

hostでテスト。

外部から

host -t axfr foge.com 100.100.100.100

セカンダリーDNSに登録。

maihama-net.comを使う。

レジストリに登録。

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

DNSの浸透を待つ。

一週間待つ。

以上。

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