[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--dns=ip and still require the occasional roaming IP check
- To: hobbit (at) hswn.dk
- Subject: --dns=ip and still require the occasional roaming IP check
- From: Odinn <odinn_asgaard (at) yahoo.com>
- Date: Wed, 11 Nov 2009 07:20:54 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1257952854; bh=zpuOr0TXZRCwEcP038PZqUljxHgTwolVRFcHOW2+M2I=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=JWOz2wPhwAd8inPnqr4n/NnIAQT//NFaEl9Hw2A1jbhilm8UeD2eJ2dsYOr8OGj67ncYM2QCRjO/Ek1dEITKFJuMyDfV0+oTRJ8PvO1IXOmCGz+x4qWXtzmtqBvSKASdRhHE9JuH2hav5YGXAb8hG0MnT7t76MGbBAoPSqtIYXk=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Qj2Z/jFDqTtnvGbwMsiWWD9OSTAp4e+0NkgicLuxFJGqAmd4NrECO3ehJFhWtU3FQRmxZJ85Z7QfBh0dAOfRtQerXZC3Rv5p8M1rlNuNgvcB6lCxB4cIGolExUaoaS93vrMDySdNNcbNjfY0wS+cdB52eAgnvkX9mnUk5mFlHmw=;
- References: <BAY133-W17BB567A3748DEA93E925CB4AA0 (at) phx.gbl>
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.
--
Jim Sloan
Just remember, today is the day you thought tomorrow was going to be yesterday.