Donate Share

Xymon systems- and network-monitor

Subscribe

Using --dns=ip and still resolve 0.0.0.0

  1. 2009-11-10 19:46:43 UTC

    The majority of my systems are hard coded IPs so my default setting is --dns=ip in hobbitlaunch.cfg for bbtest-net to cut down on actual DNS traffic. There is still the occasion to need to use 0.0.0.0 when testing connectivity and other settings via CNAMED hosts.

    Requires a simple code change of bbtest-net.c

    Line 788 (or there abouts, depending on what version you are using) is this line.

                        if (!h->testip && (dnsmethod != IP_ONLY)) add_host_to_dns_queue(h->hostname);
    

    change it to this

                        if ((!h->testip && (dnsmethod != IP_ONLY)) || (strcmp(h->ip, "0.0.0.0") == 0)) add_host_to_dns_queue(h->hostname);
    

    and you will still be able to do --dns=ip and still do DNS searches on those systems that require a DNS lookup.

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.