Results 1 to 9 of 9

Thread: hostname problem after installing webserver

  1. #1
    Join Date
    May 2007
    Beans
    70

    hostname problem after installing webserver

    I've installed Lighhtpd + libtorrent + rtorrent + xmlrpc and got my wTorrent-webinterface up'n running with rtorrent..

    Now my hostname suddenly cant be found by other computers on the LAN. Everything is as it should be in /etc/hosts and /etc/hostname. (It worked just before I got the webserver up, right?) Now I need some log, or..anything to find out what happends.

    All the other computers do experience this problem..

    (been working with ubuntu/debian bout a year now.)

    Thanks for all your help guys!

  2. #2
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: hostname problem after installing webserver

    Can you reach it by IP address?

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  3. #3
    Join Date
    May 2007
    Beans
    70

    Re: hostname problem after installing webserver

    Quote Originally Posted by windependence View Post
    Can you reach it by IP address?

    -Tim
    Absolutely. Trough UNC (\\10.0.0.2) and http://10.0.0.2, but no hostname: (\\hostname, http://hostname)

    As I said, it worked just before compleeting the webserver. Is there any loging for this in /var/log etc?

  4. #4
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: hostname problem after installing webserver

    I know you said so but can you post the contents of your hosts file on the box you are tryin to access the server from? Each box must have an alias defined if you are not running your own DNS server.

    Also, can you ping it by hostname?

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  5. #5
    Join Date
    May 2007
    Beans
    70

    Re: hostname problem after installing webserver

    I mainly use Windows XP on all desktops, so there's no /etc/hosts on the boxes I'm trying to ping/connect from. Every computer and server on the network has been configured 10.0.0.138 for its DNS-nameserver and Gateway (and DHCP-server). I'm a bit unsure of how the hostnames are being handled by the pfSense-server (free-BSD) from the linux-boxes, but for now all servers and desktops have been working flawless, exept for this last server..

    I cannot ping the "tor"/"tor.lan" hostname from my previous Ubuntu server, nor any other computer. Only connection trough IP on any protocol.

    /etc/hosts on my new rtorrent server (tor)
    Code:
    127.0.0.1       localhost
    10.0.0.2        tor.lan         tor
    /etc/hosts to tore (as u see there's no difference)
    Code:
    127.0.0.1       localhost
    10.0.0.5        tore.lan        tore
    ~#hostname and ~#hostname -f gives correct outputs.

    I'm more curious to what you mean about alias on every computer


    Added:
    domain prefix (.lan or any other for that sake) has nothing to say on the M$ network. I can easily connect trough the "Run"-meny with \\hostname on a sambashare without any ".lan" at the end.
    Last edited by mogie; June 30th, 2008 at 04:47 PM.

  6. #6
    Join Date
    Feb 2007
    Beans
    160
    Distro
    Gutsy Gibbon Testing

    Re: hostname problem after installing webserver

    Windows has a hosts files also. Look in C:\Windows\system32\drivers\etc\hosts


    At my house, when I want to talk to my server (since my modem refuses to let connections leave, then reenter) I have to have an alias on my laptop. Here's what I've got:
    Code:
    127.0.0.1   localhost
    ...
    192.168.1.115    www.myserver.com
    Dell XPS M1530
    Core 2 Duo T8100 @ 2.10GHz | 4GB RAM
    320GB HDD | 256MB nVidia GeForce Go 8600M GT
    Registered Linux User: #441660 | Registered Ubuntu User: #11700

  7. #7
    Join Date
    May 2007
    Beans
    70

    Re: hostname problem after installing webserver

    Quote Originally Posted by mrpeenut24 View Post
    Windows has a hosts files also. Look in C:\Windows\system32\drivers\etc\hosts


    At my house, when I want to talk to my server (since my modem refuses to let connections leave, then reenter) I have to have an alias on my laptop. Here's what I've got:
    Code:
    127.0.0.1   localhost
    ...
    192.168.1.115    www.myserver.com
    Brilliant! Thanks. I didn't know about those files on the MS plattform

    Though, why i cannot get connection to tor like I usually do is still unanswered...

  8. #8
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: hostname problem after installing webserver

    Have you added the DNS entry to the Windows machine like mrpeenut suggested? The box cannot resolve the name if you don't do this.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

  9. #9
    Join Date
    May 2007
    Location
    Phoenix, Arizona USA
    Beans
    2,909
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: hostname problem after installing webserver

    Quote Originally Posted by mogie View Post

    I'm more curious to what you mean about alias on every computer
    Exactly what your problem is. You need an alias in every ******* system in C:\Windows\system32\drivers\etc\hosts for your servers. Then you will be able to connect via server name.

    -Tim
    www.pcchopshop.net

    Hard to find and obsolete PC and server parts. "If we can't find it, it probably doesn't exist"

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
  •