[Xymon] Question about xymonnet --dns switch
Carl Inglis
Carl.Inglis at rakon.com
Sat Nov 19 10:32:01 CET 2011
You could do something using nsswitch.conf: http://www.cyberciti.biz/faq/howto-change-dns-search-order-in-linux/
Hope that helps.
Carl
Carl Inglis
Systems Administrator
Rakon UK Limited
Dowsett House, Sadler Road, Lincoln LN6 3RS, United Kingdom
Tel: +44 (0)1522 812630 | Fax:+44 (0) 1522 812664 | Mob: +44 (0) 7786 552915
Carl.Inglis at rakon.com | www.rakon.com
Winner of the 2010 Lincolnshire Business of the Year Award
This message together with any attachments contains confidential information and may be
subject to privilege. If you are not the intended recipient you may not distribute it in any
way, you must notify the sender immediately and delete any copies of the message along
with its attachments.
________________________________________
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] on behalf of Jon Eveland [xymon at jwenet.net]
Sent: 18 November 2011 17:19
To: xymon at xymon.com
Subject: [Xymon] Question about xymonnet --dns switch
I'm trying to figure out the best way to have xymon use the IP address
in hosts.cfg when present, and use DNS resolution otherwise. Ideally
I'd like to maintain IP addresses for things not in my DNS only in
hosts.cfg (i.e. not need to also maintain /etc/hosts). For example,
two records from hosts.cfg
192.168.1.1 router #
0.0.0.0 server1 # ftp ssh
What I'd like is for xymon to use the IP when listed (eg for the
router), but use the resolver when the IP is 0.0.0.0.
--dns=standard : fails to resolve "router", unless I tag with "testip"
--dns=only : fails to resolve "router" no matter what
--dns=ip : fails to resolve server1
Should --dns=ip be falling back to the resolver when the IP is 0.0.0.0?
Or, should there be a --dns=xymon, which uses hosts.cfg as its first
step and then falls back to the resolver? Or, am I missing something?
Thanks,
Jon
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
Rakon UK Ltd is a limited company registered in England and Wales.
Registered Office: Dowsett House, Sadler Road, Lincoln LN6 3RS
Company Registration Number: 5128090.
Please be aware that Rakon UK Limited may monitor email traffic data including the date, time, subject line, sender and recipients for the purposes of security and usage monitoring. Automated monitoring systems may also be applied to ascertain whether incoming/outgoing emails are likely to contain viruses, other destructive devices or inappropriate content.
More information about the Xymon
mailing list