<div dir="ltr"><div><div><div><div>Hello Mantas,<br><br></div>Thank you very much for your help, and showing a way to solve the problem.<br><br></div>I used `journalctl -b -u named`, and then I could get lines of the logs, and found errors.<br><br></div>I will list the the first beginning of errors below.<br><br>-- Logs begin at Sat 2016-01-16 14:05:45 JST, end at Wed 2016-01-27 17:30:01 JST. --<br>Jan 16 14:06:19 localhost.localdomain systemd[1]: Unit named.service cannot be reloaded because it is inactive.<br>Jan 20 17:58:23 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...<br>Jan 20 17:58:23 localhost.localdomain bash[20675]: /etc/named.conf:70: open: /etc/named.individualmoto.ddns.net.zone: file not found<br>Jan 20 17:58:23 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1<br>Jan 20 17:58:23 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).<br>Jan 20 17:58:23 localhost.localdomain systemd[1]: Unit named.service entered failed state.<br>Jan 23 11:26:22 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...<br>Jan 23 11:26:22 localhost.localdomain bash[29589]: /etc/named.conf:66: unknown option 'sype'<br>Jan 23 11:26:22 localhost.localdomain bash[29589]: /etc/named.conf:74: missing ';' before '}'<br>Jan 23 11:26:22 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1<br>Jan 23 11:26:22 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).<br>Jan 23 11:26:22 localhost.localdomain systemd[1]: Unit named.service entered failed state.<br>Jan 23 11:29:01 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone <a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: loaded serial 2016012023<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2016012301<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone localhost.localdomain/IN: loaded serial 0<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone localhost/IN: loaded serial 0<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: 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<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone 0.in-addr.arpa/IN: loaded serial 0<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone <a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: loading from master file Individualmoto.ddns.net.wan failed: file not found<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone <a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: not loaded due to errors.<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: external/<a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: file not found<br>Jan 23 11:29:01 localhost.localdomain bash[29657]: zone 120.217.194.125.in-addr.arpa/IN: loaded serial 2016012301<br>Jan 23 11:29:01 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1<br>Jan 23 11:29:01 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).<br>Jan 23 11:29:01 localhost.localdomain systemd[1]: Unit named.service entered failed state.<br>Jan 23 11:30:37 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone <a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: loaded serial 2016012023<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone 1.168.192.in-addr.arpa/IN: loaded serial 2016012301<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone localhost.localdomain/IN: loaded serial 0<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone localhost/IN: loaded serial 0<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: 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<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0<br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone 0.in-addr.arpa/IN: loaded serial 0<br><br>Jan 23 11:30:37 localhost.localdomain bash[29758]: zone 120.217.194.125.in-addr.arpa/IN: loaded serial 2016012301<br>Jan 23 11:30:37 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1<br>Jan 23 11:30:37 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).<br>Jan 23 11:30:37 localhost.localdomain systemd[1]: Unit named.service entered failed state.<br>Jan 23 11:37:35 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...<br><br><br><br><br></div>For the errors on the list, I checked the location in the actual file.<br><div><div><br><div>/etc/named.conf:70: open: /etc/named.individualmoto.ddns.net.zone: file not found<br> Jan 23 11:26:22 localhost.localdomain bash[29589]: /etc/named.conf:66: unknown option 'sype'<br>Jan 23 11:26:22 localhost.localdomain bash[29589]: /etc/named.conf:74: missing ';' before '}'<br> <br></div><div>This is the inside file of "/etc/named.conf" with number on the left side.<br></div><div><br></div><div> 63 <br> 64 include "/etc/named.rfc1912.zones";<br> 65 include "/etc/named.root.key";<br> 66 <br> 67 <br> 68 zone "<a href="http://individualmoto.ddns.net">individualmoto.ddns.net</a>" {<br> 69 type master;<br> 70 file "individualmoto.ddns.net.lan";<br> 71 allow-update { none; };<br> 72 };<br> 73 <br> 74 zone "1.168.192.in-addr.arpa" {<br> 75 type master;<br> 76 file "1.168.192.db";<br> 77 allow-update { none; };<br> 78 };<br> 79 };<br><br></div><div>These errors happened a while ago, and fixed them. I don't have these mistakes in the file at all now.<br></div><div><br><br>For another error here, I checked the file.<br>dns_rdata_fromtext:
individualmoto.ddns.net.wan:7: near 'IN': extra input text<br>zone
<a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: loading from master file
individualmoto.ddns.net.wan failed: extra input text<br>zone <a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: not loaded due to errors.<br>external/<a href="http://individualmoto.ddns.net/IN">individualmoto.ddns.net/IN</a>: extra input text<br><br><br> 1 $TTL 86400<br> 2 @ IN SOA <a href="http://individualmoto.ddns.net">individualmoto.ddns.net</a>. <a href="http://xxxxxxxxx.xmail.com">xxxxxxxxx.xmail.com</a>. (<br> 3 2016012700 ; serial<br> 4 3600 ; refresh (1 hour)<br> 5 900 ; retry (15 minutes)<br> 6 604800 ; expire (1 week)<br> 7 86400 ; negative (1 day)<br> 8 )<br><br>I don't think any error related to line 7 is there, as the error message says.<br><br></div><div>I don't know anything, but it seems old files I saved is remained?<br><br><br></div><div>Could you please help me how to fix this?<br><br></div><div>Kind regards,<br><br></div><div>Many thanks.<br><br><br></div><div><br></div><div><br> <br></div><div><br></div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-27 17:20 GMT+09:00 Mantas Mikulėnas <span dir="ltr"><<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="h5">On Wed, Jan 27, 2016 at 10:00 AM, Motokazu Nakai <span dir="ltr"><<a href="mailto:sagittariusg@gmail.com" target="_blank">sagittariusg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi<br><br></div><div></div>I am trying to set up DNS server. but I encountered error, and enable to set up DNS server unfortunately. <br></div><br>I have done creating these files below. I checked inside files are collect. I don't know what is wrong.<br></div><div>I put the error message here. <br>Could you please provide me some ways to solve this problem?<br></div><div><br></div><div><Files I created><br></div><div>"vi /etc/named.conf"<br>"vi /var/named/individualmoto.ddns.net.lan"<br>"vi /var/named/1.168.192.in-addr.arpa.db"<br>"vi /var/named/individualmoto.ddns.net.wan"<br>"vi /var/named/217.194.125.in-addr.arpa.db"<br><br>And I hit "systemctl start named.service"<br><br></div><div>Then I received this message below.<br>"Job for named.service failed. See 'systemctl status named.service' and 'journalctl -xn' for details."<br><br></div><div>To find what is wrong I hit 'systemctl status named.service' and 'journalctl -xn'<br><br></div><div>The result for 'systemctl status named.service' was this.<br><br>systemctl status named.service<br>named.service - Berkeley Internet Name Domain (DNS)<br> Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)<br> Active: failed (Result: exit-code) since Wed 2016-01-27 16:10:11 JST; 41min ago<br> Process: 8356 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=1/FAILURE)<br> Process: 17751 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)<br> Process: 9723 ExecStart=/usr/sbin/named -u named $OPTIONS (code=exited, status=0/SUCCESS)<br> Process: 9206 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)<br> Main PID: 9445 (code=exited, status=0/SUCCESS)<br> CGroup: /system.slice/named.service<br><br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone localhost.localdomain/IN: loaded serial 0<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone localhost/IN: loaded serial 0<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: 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<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone 0.in-addr.arpa/IN: loaded serial 0<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone <a href="http://individualmoto.ddns.net/IN" target="_blank">individualmoto.ddns.net/IN</a>: loaded serial 2016012700<br>Jan 27 16:10:11 localhost.localdomain bash[9206]: zone 217.194.125.in-addr.arpa/IN: loaded serial 2016012700<br>Jan 27 16:10:11 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=1<br>Jan 27 16:10:11 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).<br>Jan 27 16:10:11 localhost.localdomain systemd[1]: Unit named.service entered failed state.<br></div></div></blockquote><div><br></div></div></div><div>The "Process: 9206" line shows that named.service tries to verify your configuration using `named-checkconf`, and that this check failed. Use `systemctl status named -n 100` or `journalctl -b -u named` to get more lines from the logs; they will show the actual errors. (Or, run `named-checkzone -z` manually.) The rest isn't a systemd problem.</div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</font></span></div></div>
</blockquote></div><br></div></div>