Results 1 to 3 of 3

Thread: Lan dns

  1. #1
    Join Date
    Dec 2006
    Location
    Hampshire, England
    Beans
    67
    Distro
    Ubuntu 12.04 Precise Pangolin

    Question [SOLVED] Lan dns

    Hi,

    Having just scanned loads of other posts, I can't find one that addresses this name resolution issue of mine.

    I have a NAS server running Debian with Dnsmasq (local DNS and DHCP service). This is working well, including fetching upstream requests from my ISP's DNS service and caching them locally.

    I have another PC not running Ubuntu which happily resolves DNS and non-DNS names. E.g.
    Code:
    ping hagrid.
    ping hagrid
    both work.

    However, this is not the case on my Ubuntu PC. It is only able to resolve DNS names, not non-DNS names.
    Code:
    ping hagrid.
    works but
    Code:
    ping hagrid
    does not.

    I have the standard nsswitch.conf and host.conf.

    Can anyone help me put right my client PC problem?
    TIA,
    Rick
    Last edited by rickbeton; February 14th, 2010 at 11:04 PM. Reason: problem solved

  2. #2
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Lan dns

    The Ubuntu machine uses the same DNS? I seem to recall having similar problems with my dnsmasq server. I don't remember if it was the domain-needed option, or the expand-hosts option that finally made it work - probably the latter.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad] [Sub-forum]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  3. #3
    Join Date
    Dec 2006
    Location
    Hampshire, England
    Beans
    67
    Distro
    Ubuntu 12.04 Precise Pangolin

    Smile Re: Lan dns

    You're spot on with expand-hosts.

    I enabled the expand-hosts option in the dnsmasq.conf file and restarted the dnsmasq service. Now it works fine.

    Thanks for the tip!

    Rick

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •