Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Unhappy Able to acces by IP but not by name.

    Hi friends,

    I am having a Linix server installed with ububtu in my office. And it is connected to thy company network. The name of the server is "encoresourceforge".

    I am not able to connect to the server using its name but i am able to connect it through its Ip address, like

    root@adge-desktop:~# ssh root@encoresourceforge
    ssh: encoresourceforge: Name or service not known
    root@adge-desktop:~# ssh root@
    root@'s password:
    Last login: Wed Jan 24 11:07:11 2007 from
    Linux encoresourceforge 2.6.17-10-generic #2 SMP Fri Oct 13 18:45:35 UTC 2006 i686

    The programs included with the Ubuntu system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.

    Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
    applicable law.
    I am sure that an DNS entry is made for this IP.

    But it also dispays some other system name when i do a networking restart,
    root@encoresourceforge:/etc# sh /etc/init.d/networking restart
    * Reconfiguring network interfaces...
    root@encoresourceforge:/etc# sh /etc/init.d/networking stop
    * Deconfiguring network interfaces... [ ok ]
    root@encoresourceforge:/etc# sh /etc/init.d/networking start
    * Configuring network interfaces... There is already a pid file /var/run/ with pid 5910
    killed old client process, removed PID file
    Internet Systems Consortium DHCP Client V3.0.4
    Copyright 2004-2006 Internet Systems Consortium.
    All rights reserved.
    For info, please visit

    Listening on LPF/eth0/00:13:72:73:9a:1b
    Sending on LPF/eth0/00:13:72:73:9a:1b
    Sending on Socket/fallback
    DHCPREQUEST on eth0 to port 67
    DHCPACK from
    Updating databases ...
    Reading configuration from /etc/mail/sendmail.conf.
    Validating configuration.
    Creating /etc/mail/databases...
    Updating Makefile ...
    Reading configuration from /etc/mail/sendmail.conf.
    Validating configuration.
    Creating /etc/mail/Makefile...
    Updating ...
    Creating /etc/mail/relay-domains
    # Optional file...
    The following file(s) have changed:
    ** ** You should issue `/etc/init.d/sendmail reload` ** **
    bound to -- renewal in 6915 seconds.
    Updating ...
    Creating /etc/mail/relay-domains
    # Optional file...
    The following file(s) have changed:
    ** ** You should issue `/etc/init.d/sendmail reload` ** **
    Mail Transport Agent: sendmail is not running
    Pls tell me how to solve this.

  2. #2

    name =

    Pls look in the second quote for the line


    The name "" is not hte name of the server.

  3. #3
    Linux User cyberinstru's Avatar
    Join Date
    Jan 2007
    Add the hostname and its IP in the /etc/hosts file and try it out.

    Note: When you try to connect/reach a system with its name, it tries to resolve the name.

  4. $spacer_open

Posting Permissions

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