前提・実現したいこと
LAMPの最初の段階でDNSサーバーを構築しているのですが、名前解決がうまくいかず困っています。
環境 VirtualBox CentOS8
発生している問題・エラーメッセージ
[root@srv1 named]# systemctl status named -l ● named.service - Berkeley Internet Name Domain (DNS) Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled) Active: active (running) since Tue 2020-11-17 09:59:34 JST; 6h ago Main PID: 3689 (named) Tasks: 4 (limit: 26213) Memory: 103.7M CGroup: /system.slice/named.service └─3689 /usr/sbin/named -u named -c /etc/named.conf 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/AAAA/IN': 2001:dc3::35#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/A/IN': 2001:7fe::53#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/AAAA/IN': 2001:7fe::53#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/A/IN': 2001:500:9f::42#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/AAAA/IN': 2001:500:9f::42#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/A/IN': 2001:500:a8::e#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/AAAA/IN': 2001:500:a8::e#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/A/IN': 2001:500:1::53#53 11月 17 16:53:56 srv1 named[3689]: network unreachable resolving '2.centos.pool.ntp.org/AAAA/IN': 2001:500:1::53#53 11月 17 16:54:01 srv1 named[3689]: resolver priming query complete
試したこと
[root@srv1 named]# nslookup srv1 Server: 192.168.30.105 Address: 192.168.30.105#53 Name: srv1.users.net Address: 192.168.30.105
[root@srv1 named]# nslookup srv1.users.net Server: 192.168.30.105 Address: 192.168.30.105#53 Name: srv1.users.net Address: 192.168.30.105
[root@srv1 named]# nslookup 192.168.30.105 ** server can't find 105.30.168.192.in-addr.arpa: NXDOMAIN
nslookupコマンドでipを入力するとエラーが出ます。
以下、認識している関連ファイルです。
/etc/resolv.conf # Generated by NetworkManager nameserver 192.168.30.105 domain users.net
/etc/named.conf options { listen-on port 53 { 127.0.0.1; 192.168.30.105; }; listen-on-v6 port 53 { ::1; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstatistics-file "/var/named/data/named_mem_stats.txt"; secroots-file "/var/named/data/named.secroots"; recursing-file "/var/named/data/named.recursing"; allow-query { any; }; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; zone "users.net" IN { type master; file "zone.users.net"; };
/var/named/zone.users.net $TTL 86400 @ IN SOA srv1.users.net. root.users.net. ( 2020111601 ;Serial 3600 ;Refresh 1800 ;Retry 604800 ;Expire 86400 ;Minimum TTL ) IN NS srv1.users.net srv1.users.net IN A 192.168.30.105 IN A 192.168.30.105 IN MX 10 srv1.users.net ns IN A 192.168.30.105 srv1 IN A 192.168.30.105 www IN A 192.168.30.105
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。