Setting up a DNS server - problem encountered

Issues related to configuring your network
Post Reply
northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Setting up a DNS server - problem encountered

Post by northpoint » 2016/06/10 19:33:08

Hello,

I have setup a temporary computer to learn some networking - specifically DNS and MSexchange/linux with icewarp. Everything is going fine except for setting up the DNS service.

coffee1-pc.athome.net
icewarp.athome.net - handles DNS and related services to IceWarp to act as a exchange server.

I have the firewall and selinux turned off because this setup is only on the local lan - 10.0.1.0

When I first setup the DNS service I used a domain name of athome. However, In looking at the examples I decided to change it to athome.net to match my hosts FQDN's.

I am getting the following error now when trying to start named:

[root@icewarp etc]# systemctl start named
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.


[root@icewarp etc]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-06-10 14:59:53 EDT; 22min ago
Process: 12946 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)


[root@icewarp etc]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-06-10 14:59:53 EDT; 22min ago
Process: 12946 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Jun 10 14:59:53 icewarp.athome.net bash[12946]: /etc/named/zones/db.athome.net:1: no TTL specified; using SOA MINTTL instead
Jun 10 14:59:53 icewarp.athome.net bash[12946]: zone athome.net/IN: NS 'icewarp.athome.net' has no address records (A or AAAA)
Jun 10 14:59:53 icewarp.athome.net bash[12946]: zone athome.net/IN: not loaded due to errors.
Jun 10 14:59:53 icewarp.athome.net bash[12946]: _default/athome.net/IN: bad zone
Jun 10 14:59:53 icewarp.athome.net bash[12946]: /etc/named/zones/db.1.0.10:1: no TTL specified; using SOA MINTTL instead
Jun 10 14:59:53 icewarp.athome.net bash[12946]: zone 1.0.10.in-addr.arpa/IN: loaded serial 3
Jun 10 14:59:53 icewarp.athome.net systemd[1]: named.service: control process exited, code=exited status=1
Jun 10 14:59:53 icewarp.athome.net systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Jun 10 14:59:53 icewarp.athome.net systemd[1]: Unit named.service entered failed state.




[root@icewarp etc]# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit named.service has finished shutting down.
Jun 10 15:25:21 icewarp.athome.net polkitd[600]: Unregistered Authentication Agent for unix-process:13866:296286 (system bus name :1.91, object path /org/freedesktop/
Jun 10 15:25:27 icewarp.athome.net polkitd[600]: Registered Authentication Agent for unix-process:14019:296987 (system bus name :1.92 [/usr/bin/pkttyagent --notify-fd
Jun 10 15:25:27 icewarp.athome.net systemd[1]: Starting Generate rndc key for BIND (DNS)...
-- Subject: Unit named-setup-rndc.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit named-setup-rndc.service has begun starting up.
Jun 10 15:25:27 icewarp.athome.net systemd[1]: Started Generate rndc key for BIND (DNS).
-- Subject: Unit named-setup-rndc.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit named-setup-rndc.service has finished starting up.
--
-- The start-up result is done.
Jun 10 15:25:27 icewarp.athome.net systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
-- Subject: Unit named.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit named.service has begun starting up.
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone localhost.localdomain/IN: loaded serial 0
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone localhost/IN: loaded serial 0
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone 0.in-addr.arpa/IN: loaded serial 0
Jun 10 15:25:27 icewarp.athome.net bash[14028]: /etc/named/zones/db.athome.net:1: no TTL specified; using SOA MINTTL instead
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone athome.net/IN: NS 'icewarp.athome.net' has no address records (A or AAAA)
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone athome.net/IN: not loaded due to errors.
Jun 10 15:25:27 icewarp.athome.net bash[14028]: _default/athome.net/IN: bad zone
Jun 10 15:25:27 icewarp.athome.net bash[14028]: /etc/named/zones/db.1.0.10:1: no TTL specified; using SOA MINTTL instead
Jun 10 15:25:27 icewarp.athome.net bash[14028]: zone 1.0.10.in-addr.arpa/IN: loaded serial 3
Jun 10 15:25:27 icewarp.athome.net systemd[1]: named.service: control process exited, code=exited status=1
Jun 10 15:25:27 icewarp.athome.net systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/li ... temd-devel
--
-- Unit named.service has failed.
--
-- The result is failed.
Jun 10 15:25:27 icewarp.athome.net systemd[1]: Unit named.service entered failed state.
Jun 10 15:25:27 icewarp.athome.net systemd[1]: named.service failed.
Jun 10 15:25:28 icewarp.athome.net polkitd[600]: Unregistered Authentication Agent for unix-process:14019:296987 (system bus name :1.92, object path /org/freedesktop/

Jun 10 14:59:53 icewarp.athome.net systemd[1]: named.service failed.



Here are the contents of my zones files:

[root@icewarp zones]# cat db.1.0.10
@ IN SOA icewarp.athome.net. admin.icewarp.athome.net. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

; name servers - NS records
IN NS icewarp.athome.net.
; PTR Records
40.1 IN PTR icewarp.athome.net. ; 10.0.1.40
65.1 IN PTR coffee1-pc.athome.net. ; 10.0.1.65

[root@icewarp zones]#


[root@icewarp zones]# cat db.athome.net
@ IN SOA icewarp.athome.net. admin.athome.net. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL

; name servers - NS records
IN NS icewarp.athome.net.

; name servers - A records
icewarp.athome.net IN A 10.0.1.40

; 10.0.1.0/24 - A records
coffee1-pc.athome.net IN A 10.0.1.65

[root@icewarp zones]#


named of course refuses to start now. I wanted to just get DNS working and then add in the MX record for icewarp.athome.net . I figure I would do it one step at a time.

I would also like to add that I normally do not run right off and post my problems in forums. However, This issue is taking abnormally long to figure out. I am sure its a config problem of some sort on my end because the domain name I used before that (athome) worked basically. But I am under the impression that I should use the FQDN in the config files?

So, Where did I go wrong?

Thank you,
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Re: Setting up a DNS server - problem encountered

Post by northpoint » 2016/06/10 19:43:30

I am very sorry.

Why is it that as soon as you give up you post about your problem and then find the stupid answer?

Configuration error in my reverse zone file. I forgot some periods in the A record.

Well there we go.

Northpoint
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Post Reply