<div dir="ltr"><div>I don't have netcat available under that name. I do have nc however. Below is the output.</div><div><br></div><div>I did some additional testing too. Fedora 23 works fine with the same config. There was talk about making some DNS changes to Fedora 24 but from what I could tell this has not been enabled at least for the server spins. The odd part is that DNS works fine after boot and NUT is the only service that seems to get stuck unable to resolve names.</div><div><br></div><div>I also tried adding an entry to /etc/hosts after the system boots and NUT fails. The moment that is done NUT is able to resolve the name and connects correctly. I don't have to touch the nut-monitor service in any way for this.</div><div><br></div><div>Any way here is the output:</div><div><br></div><div>$ echo "GET VAR ups01 battery.charge" | nc ups.server.lan 3493</div><div>VAR ups01 battery.charge "100"</div><div>$ echo "GET VAR ups01 battery.charge" | nc 11.22.33.44 3493</div><div>VAR ups01 battery.charge "100"</div><div>$ upsc ups01.server.lan</div><div>#brings complete UPS output.</div><div><br></div><div><div>$ dig ups.server.lan</div><div><br></div><div>; <<>> DiG 9.10.4-P2-RedHat-9.10.4-1.P2.fc24 <<>> ups.server.lan</div><div>;; global options: +cmd</div><div>;; Got answer:</div><div>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 395</div><div>;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1</div><div><br></div><div>;; OPT PSEUDOSECTION:</div><div>; EDNS: version: 0, flags:; udp: 4096</div><div>;; QUESTION SECTION:</div><div>;ups.server.lan.<span style="white-space:pre-wrap"> </span>IN<span style="white-space:pre-wrap"> </span>A</div><div><br></div><div>;; ANSWER SECTION:</div><div>ups.server.lan.<span style="white-space:pre-wrap"> </span>3600<span style="white-space:pre-wrap"> </span>IN<span style="white-space:pre-wrap"> </span>A<span style="white-space:pre-wrap"> </span>11.22.33.44</div><div><br></div><div>;; Query time: 0 msec</div><div>;; SERVER: 11.22.33.45#53(11.22.33.45)</div><div>;; WHEN: Sat Sep 17 15:19:32 CDT 2016</div><div>;; MSG SIZE rcvd: 60</div></div><div dir="ltr"><div><br></div><div>I will do some more digging in Fedora 24 to see if I can find anything. I am not completely sure if this is a NUT issue at this point but I don't understand why it can't resolve names after DNS becomes properly available.</div><div><br></div><div>Any additional suggestions are welcome. Thank you again.</div><br><div class="gmail_quote"><div dir="ltr">On Sat, Sep 17, 2016 at 7:20 AM Roger Price <<a href="mailto:roger@rogerprice.org" target="_blank">roger@rogerprice.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Sat, 17 Sep 2016, Yevgeniy Kuksenko wrote:<br>
<br>
> Hello all, I have been having a problem with upsmon on Fedora 24 on boot. NUT is configured as a netclient to a Raspbian NUT server. After boot up upsmon<br>
> repeatedly says "connect failed: No such host". It is not able to connect at all until the service is bounced. This seems to indicate a name resolution<br>
> problem but shouldn't this auto correct once name resolution is working properly regardless? upsmon on the Raspbian NUT server works fine and is attached<br>
> to localhost:3493.<br>
><br>
> If I use an ip instead of a DNS name this config works correctly on boot.<br>
<br>
Do commands on the client such as:<br>
<br>
echo "GET VAR ups01 battery.charge" | netcat ups.server.lan 3493<br>
echo "GET VAR ups01 battery.charge" | netcat 11.22.33.44 3493<br>
<br>
reproduce the problem? If so, the problem may be with the DNS rather than<br>
NUT. What does command dig ups.server.lan on the client report?<br>
<br>
Roger<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org" target="_blank">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" rel="noreferrer" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</blockquote></div></div></div>