<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">That's a great idea but I run into the
      same issue.  The /etc/hosts file wants an IP too.  It doesn't seem
      to want to just link a short name to a fqdn.  I've looked into
      possibly using the resolv.conf to do what I want but haven't seen
      any examples of it actually working.  Oh well.  It's not that
      important.<br>
      <div class="moz-signature">
        <title>Signature - Kris</title>
        <meta content="text/html; charset=UTF-8"
          http-equiv="content-type">
        <style type="text/css">@import url('<a class="moz-txt-link-freetext" href="https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA">https://themes.googleusercontent.com/fonts/css?kit=wAPX1HepqA24RkYW1AuHYA</a>');ol{margin:0;padding:0}.c0{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri";font-weight:bold}.c5{color:#990000;font-size:8pt;background-color:#ffffff;font-family:"Calibri"}.c1{color:#990000;font-size:10pt;background-color:#ffffff;font-family:"Calibri"}.c2{max-width:468pt;background-color:#ffffff;padding:72pt 72pt 72pt 72pt}.c4{text-decoration:underline}.c3{direction:ltr}.title{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:21pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}.subtitle{widows:2;padding-top:0pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:13pt;font-family:"Trebuchet MS";padding-bottom:10pt;page-break-afte
r:avoid}li{color:#000000;font-size:11pt;font-family:"Arial"}p{color:#000000;font-size:11pt;margin:0;font-family:"Arial"}h1{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:16pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h2{widows:2;padding-top:10pt;line-height:1.15;orphans:2;text-align:left;color:#000000;font-size:13pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h3{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:12pt;font-family:"Trebuchet MS";font-weight:bold;padding-bottom:0pt;page-break-after:avoid}h4{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;text-decoration:underline;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}h5{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-size:11pt;font-family:"Trebuchet MS";padding-botto
m:0pt;page-break-after:avoid}h6{widows:2;padding-top:8pt;line-height:1.15;orphans:2;text-align:left;color:#666666;font-style:italic;font-size:11pt;font-family:"Trebuchet MS";padding-bottom:0pt;page-break-after:avoid}</style>
        <br>
        <p class="c3"><span class="c1">Thank you.</span></p>
        <p class="c3"><span class="c1">------------------------------------------------</span></p>
        <p class="c3"><span class="c0">Kris Springer<br>
          </span></p>
        <p class="c3"><span class="c0"><br>
          </span></p>
        <p class="c3"><span class="c0"><br>
            <br>
          </span>
        </p>
      </div>
      On 9/16/2014 2:44 PM, Mark Felder wrote:<br>
    </div>
    <blockquote
cite="mid:1410903851.3821282.168311653.2D9627A3@webmail.messagingengine.com"
      type="cite">
      <pre wrap="">

On Tue, Sep 16, 2014, at 14:54, Kris Springer wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Anyone know how to test ssh using a domain name instead of an IP? I'm 
using the rclient and monitoring NAS devices that are remote and behind 
port forwarded DHCP home routers that have DDNS names so I have 0.0.0.0 
for the host IP's in the hosts.cfg file.  I just want to test ssh to the 
DDNS name, not the IP.  The NAS host line in my hosts.cfg is not using a 
FQDN as the hostname because that gets checked as a separate host.  
Here's a sample of what I have in my hosts.cfg file.

0.0.0.0         myrouter.myddns.net     # trace
0.0.0.0         NAS                 # noconn ssh "RCLIENT:cmd(ssh -T -i 
/home/xymon/.ssh/xymon-rclient <a class="moz-txt-link-abbreviated" href="mailto:root@myrouter.myddns.net">root@myrouter.myddns.net</a>),ostype(linux)"

</pre>
      </blockquote>
      <pre wrap="">
If the server can resolve the hostname it will use that for the tests.
If you put NAS in your /etc/hosts file I believe it should work.
_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>