[TriLUG] Revisiting local dnsmasq DNS resolution

Seva Adari oddissyus at gmail.com
Thu Nov 1 12:12:53 EDT 2012


> +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.

You are right! I misread +short to be @short. Your dig is resolving
using the name servers listed in /etc/resolv.conf

> 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.

So, 'blueman' resolution is happening within the scope of the
listed search domain, but ssh is not able to resolve!

Did you check to see if you can resolve 'blueman' from other
programs, may be starting with ping.

Is blueman part of your lan or is part of the search domain?

> 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
>
>
> --
> 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