Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: ERROR: getaddrinfo: Name or service not known

  1. #1
    Join Date
    Dec 2007
    Location
    Erie, Pennsylvania
    Beans
    19
    Distro
    Ubuntu 10.04 Lucid Lynx

    ERROR: getaddrinfo: Name or service not known

    Hello,

    I have recently begun experience problems with my remote desktop connection to all Windows XP and Windows Server 2003 computers that I deal with here at work. I first ran into this problem this past Thursday (15 January 2009) and have been unable to resolve it. I keep getting an error message that states "ERROR: getaddrinfo: Name or service not known". This error message occurs regardless of what GUI rdc interface I use (e.g. grdesktop). I have had no trouble using the various Windows OS computers to connect with each other, only when going from my Ubuntu 8.10 to them. Any help will be appreciated.

    Jeff.

  2. #2
    Join Date
    Dec 2007
    Location
    Erie, Pennsylvania
    Beans
    19
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ERROR: getaddrinfo: Name or service not known

    I have discovered that if I enter the remote computers IP address, I can connect. However, for whatever reason, using their network names (e.g. bobs_computer or A-0101987) still no longer works.

  3. #3
    Join Date
    Dec 2007
    Location
    Erie, Pennsylvania
    Beans
    19
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: ERROR: getaddrinfo: Name or service not known

    bump

  4. #4
    Join Date
    Nov 2009
    Beans
    3

    Re: ERROR: getaddrinfo: Name or service not known

    Me too!

    Just got the same issue here. Cannot log in with the computer name. I'm connecting my Ubuntu9.10 laptop to a Windows Embedded machine that has no screen with a crossover cable and the only available info i've got on that WINXPe is the computer name.

    When i boot my same laptop under WINXP, i can remotely desktop without problems.

    The problem lies under Ubuntu . I would like to see a solution to that problem also .

    Best regards,
    JF

  5. #5
    Join Date
    Jan 2007
    Beans
    168

    Re: ERROR: getaddrinfo: Name or service not known

    this is your program's way of telling you that it can't find a ip for that name, even though a DNS entry does exist.

    Code:
    partearth$ dig hub.yahoo.com
    
    ; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> hub.yahoo.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 50293
    ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;hub.yahoo.com.                 IN      A
    
    ;; AUTHORITY SECTION:
    yahoo.com.              600     IN      SOA     ns1.yahoo.com. hostmaster.yahoo-inc.com. 2010052406 3600 300 1814400 600
    
    ;; Query time: 1 msec
    ;; SERVER: 66.228.178.11#53(66.228.178.11)
    ;; WHEN: Mon May 24 10:17:48 2010
    ;; MSG SIZE  rcvd: 92
    see, there's an A record, but no IP.

    partearth$ nc hub.yahoo.com 80
    nc: getaddrinfo: Name or service not known

    I'm clueless as to the internals here. but that's the cause

  6. #6
    Join Date
    May 2011
    Beans
    1

    Re: ERROR: getaddrinfo: Name or service not known

    Sorry for bumping a year+ old thread, but i found this thread by searching the error on Google. I have a bit more of an possible answer and I want to minimize the searching of others.

    There are a couple of reasons for this error. It is most likely caused by avahi. Avahi implements the zeroconf/Bonjour. Avahi is installed and turned on by default in most of the recent versions of ubuntu. Avahi uses .local by default (see http://linux.die.net/man/5/avahi-daemon.conf also http://forum.pfsense.org/index.php?topic=23255.0 ) It has also became a common practice to use .local for internal networks.

    The simplest test would be check if avahi is running and turn it off if it is, and then try and connect using the name.

    ps ax | grep avahi
    service avahi-daemon stop
    rdesktop myserver.mydomain.local

    if you can now connect you have a name conflict between your internal name, and avahi.
    if you don't need it you can turn it off, however you loose some of the cool features (automatic service discovery)

    If you want to use avahi, then things get a bit more tricky
    you can change your internal DNS domain from mydomain.local to something like mydomain.private. However if you have even a moderate size network, then the likely hood of things breaking is quite high.

    Here is avahi's page with work arounds
    http://avahi.org/wiki/AvahiAndUnicastDotLocal

    I changed the avahi.conf file to .alocal but that didn';t work so I changed /etc/nsswitch.conf. I located the hosts line and put dns in front of the mdns stuff, like so
    hosts: files dns mdns4_minimal [NOTFOUND=return]

    after that I could start avahi, and still do .local lookups

    Hope this helps.

  7. #7
    Join Date
    Nov 2005
    Beans
    50

    Re: ERROR: getaddrinfo: Name or service not known

    I am getting the same error message, so I tried your solution (stopping avahi), but doesn't work:

    $ service avahi-daemon stop
    stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=4670 comm="stop avahi-daemon ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))

  8. #8
    Join Date
    Oct 2011
    Beans
    1

    Re: ERROR: getaddrinfo: Name or service not known

    Hi guys,

    Sorry if this is already closed or anything, but I have similar problem.

    When I am connected to network with cable, I can connect to my working desktop. When I connect to network with wireless, I get the 'ERROR: getaddrinfo: Name or service not known'.

    Then I connect back to network with cable and I can still access my desktop session. This is on my workplace, there are several hundred computers on it. Windows client doesn't have wireless connection problem. If anyone can help, that would be great.

    Thanks

  9. #9
    Join Date
    Dec 2010
    Beans
    1

    Re: ERROR: getaddrinfo: Name or service not known

    Quote Originally Posted by Inder View Post
    I am getting the same error message, so I tried your solution (stopping avahi), but doesn't work:

    $ service avahi-daemon stop
    stop: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=4670 comm="stop avahi-daemon ") interface="com.ubuntu.Upstart0_6.Job" member="Stop" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init"))
    try:

    $ sudo service avahi-daemon stop

  10. #10
    Join Date
    Oct 2011
    Beans
    7

    Re: ERROR: getaddrinfo: Name or service not known

    So, I tried the suggested method of stopping avahi, but I still get the same error. The exact output is:

    Autoselected keyboard map en-us
    ERROR: getaddrinfo: Name or service not known

Page 1 of 2 12 LastLast

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
  •