find server with IP, but not with name.

Discussion in 'HOWTO-Related Questions' started by alis5, Sep 3, 2010.

  1. alis5

    alis5 New Member

    Hello,

    I'm a newbie to Linux and haven't worked that much with networks either. Just some main things.

    But now I want to learn more about linux and servers, so I followed the perfect server guide (with Ubuntu 10.04).
    But can't reach the server through a client using the name.

    By typing 192.168.0.100 I can reach it. But if I type in the name that I set, (http://myserver.bbb.com) then it will not find anything.
    But I can ping both the name and IP from the server.

    Is there something in my router that I need to config so clients can reach the server (without having to type the IP-no)?
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Did you create a DNS record that points to your router's public IP? Also, does your router forward all needed ports (e.g. 80 for http) to your server?
     
  3. alis5

    alis5 New Member

    Thanks for the help Falko!

    But unfortunately I can still not ping my http://myserver.bbb.com, (only from my server).

    In my router (Dlink DGL4300) I have set up the virtual server to point at the servers IP and port 80. I can't find anything else in my router that would fix this problem for me.

    What do you mean by "Did you create a DNS record that points to your router's public IP?" Where should I do this (on the server?) and how do I do it?
    I have only followed "The perfect server...".

    When I try to ping http://myserver.bbb.com from my cmd in XP I get the answer that it couldn't find the hostname for http://myserver.bbb.com.

    What to do? I'm totally lost! :(
     
  4. falko

    falko Super Moderator Howtoforge Staff

    You must create an A or CNAME record for myserver.bbb.com on the authoritative name servers for bbb.com. You can find out the authoritative name servers by running
    Code:
    dig ns bbb.com
     
  5. alis5

    alis5 New Member

    Thanks again for the help Falko.

    But still no success from my side.

    I get nothing when I run dig ns bbb.com, it times out after a while (I also tried dig www.howtoforge.com, but same result here).

    You are also talking about authoritative name servers for my bbb.com. I don’t fully understand that either, is that my router you are talking about? Bbb.com is only my “internal” LAN-network (or atleast that’s my intention). So why do I need to “go out” to my ISPs authoritative name servers?

    In my router I put “Local Domain Name” to bbb.com. But that didn’t help either.

    The way I see it, my XP-machine is sending a ping to myserver.bbb.com, the router should then look it up and send it to my server. But what I don’t understand here is how the router will know if it should send it to my server or to the ISP server (DNS).
    In my router I can set primary DNS server and secondary DNS server. I have here tried to put my servers IP in primary, but then only one computer (of the 2+server) could reach the internet. And I could still not ping myserver.bbb.com.

    What to do?
     
  6. falko

    falko Super Moderator Howtoforge Staff

    No, that's not the router. I suggest you read this guide first: http://www.howtoforge.com/traditional_dns_howto

    So this is not a registered domain?
     

Share This Page