Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
そのため、ローカル開発環境に dnsmasq を使用しています。複数のドメインを使用するように設定する必要があります。(.dev、.test、.somethingelse) どうすればこれを行うことができますか?
現在、.devのみで動作しています
これは私のdnsmasq.confがどのように見えるかです
address=/dev/127.0.0.1 listen-address=127.0.0.1
ローカルにサーバーを配置する (サブ) ドメインごとに、次のエントリを dnsmasq.conf に追加します。
address=/.domain/127.0.0.1
ここで、このドメインへのリクエストをローカルの dnsmasq ネームサーバーにリダイレクトすることを OS に知らせます。これを行うには、「/etc/resolvers」にファイル「domain」を作成します。
/etc/resolvers/domain には次の内容があります。
nameserver 127.0.0.1
リゾルバーに関する詳細情報。