Results 1 to 4 of 4

Thread: [SOLVED] Weird name or service not known problem when using ssh

Threaded View

  1. #1
    Join Date
    Nov 2007
    Beans
    11
    Distro
    Ubuntu 8.10 Intrepid Ibex

    [SOLVED] Weird name or service not known problem when using ssh

    I'm running Ubuntu 8.10 and I'm getting a host not found exception when I try to ssh to my svn repository server. But when I do nslookup / host / dig then the repository resolves just fine:

    Code:
    wessel@delgurth:~$ host svn.client.local
    svn.client.local has address 172.16.0.81
    
    wessel@delgurth:~$ ssh svn.client.local
    ssh: Could not resolve hostname svn.client.local: Name or service not known
    When I add client.local to the search domains in my /etc/resolv.conf and try "ssh svn" (without the client.local) it works just fine:

    Code:
    wessel@delgurth:~$ cat /etc/resolv.conf 
    # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
    #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
    nameserver 10.90.152.200
    nameserver 10.90.150.16
    search management.local, client.local
    
    wessel@delgurth:~$ ssh svn
    
    <snip>security message etc</snip>
    
    wessel@svn:/export/home/wessel>

    I hope someone here has an idea what can be causing this. I'm not running my own name server nor using dnsmasq, so that can't be the problem. And svn nor svn.client.local are in my /etc/hosts:

    Code:
    wessel@delgurth:~$ cat /etc/hosts
    127.0.0.1 localhost
    127.0.1.1 delgurth
    
    # The following lines are desirable for IPv6 capable hosts
    ::1 ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    ff02::3 ip6-allhosts
    I hope someone here knows what I should do to fix this.
    Last edited by delgurth; November 12th, 2008 at 10:37 AM.

Tags for this Thread

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
  •