[TriLUG] Revisiting local dnsmasq DNS resolution

Brian lugmail at cheetah.dynip.com
Thu Nov 1 11:36:37 EDT 2012


Seva,

+short is an option to dig which tells it to output the IP address and 
nothing else, not a host name that it's resolving.

My search domain is set by my outside adapter's DHCP (the machine is 
also my gateway), but I could certainly override that to see what happens.

Thanks,
~B

On 11/1/2012 11:15 AM, Seva Adari wrote:
> Looks like 'short' is resolved but not 'blueman'.
> Do you know how 'short' is resolved? Via /etc/hosts or your dns?
>
> Try to use a fully qualified hostname and see if you are able
> to resolve your host, if you do then it may be related to your
> search domain.
> What do you have for "search" entry listed in /etc/resolv.conf?
>
> On Thu, Nov 1, 2012 at 10:28 AM, Brian Henning <bhenning at pineinst.com> wrote:
>> Hi List,
>>
>> Not too long ago I started a short thread about the apparent failure of
>> dnsmasq to resolve local hostnames (things it knows about from its own
>> leases file) on the machine where it's actually running.  The main theme of
>> responses seemed to be "make sure localhost is first in /etc/resolv.conf".
>>
>> I made that change, but it still seems not to work completely as expected.
>> dig and host will resolve names, but whatever mechanism is used internally
>> by programs won't.  What I'm trying to say is this:
>>
>> $ ssh blueman
>> ssh: blueman: name or service not known
>>
>> $ ssh `dig +short blueman`
>> brian at 192.168.0.124's password:
>>
>> Why would that be?  What do I need to change to make "ssh blueman" work?  Do
>> I just need to restart something?
>>
>> Many thanks for the advice and hand-holding.  I don't know why this is
>> escaping me.
>>
>> Cheers,
>> ~Brian
>>
>> ------------------------------------------------------
>>            Brian Henning, Software Engineer
>>
>>      /\    Pine Research Instrumentation
>>     //\\   2741 Campus Walk Ave, Bldg 100
>>    ///\\\  Durham, NC 27705
>>   ////\\\\ USA
>>      ||
>>      ||    phone: 919.782.8320
>>            fax:   919.782.8323
>>            email: bhenning at pineinst.com
>> ------------------------------------------------------
>>
>>
>>
>> --
>> This message was sent to: oddissyus at gmail.com <oddissyus at gmail.com>
>> To unsubscribe, send a blank message to trilug-leave at trilug.org from that address.
>> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
>> Unsubscribe or edit options on the web  : http://www.trilug.org/mailman/options/trilug/oddissyus%40gmail.com
>> TriLUG FAQ          : http://www.trilug.org/wiki/Frequently_Asked_Questions




More information about the TriLUG mailing list