LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Set Up Domain - Dedicated Server (https://www.linuxquestions.org/questions/linux-newbie-8/set-up-domain-dedicated-server-4175473225/)

Ra'Jiska 08-13-2013 06:12 AM

Set Up Domain - Dedicated Server
 
Hello,

I would like to know how to set up a domain name on my dedicated server. My domain hoster is the same as my dedicated hoster (OVH).

My domain name does not answer to ping request from my PC, but it does from the server itself (and also from other servers), when I do a ping from a server hosted in OVH, it sends back my server IP, but from my personal computer, it does not answer.

So I suppose I did the OVH side correctly and now I need to allow my dedicated to get this domain, how can I do that ?

Thanks for your help.

acid_kewpie 08-13-2013 06:30 AM

what doesn't answer about it? does the name resolve to an IP address? Have you fully registered the name in a public DNS service?

Ra'Jiska 08-13-2013 06:57 AM

Quote:

Originally Posted by acid_kewpie (Post 5008469)
what doesn't answer about it? does the name resolve to an IP address? Have you fully registered the name in a public DNS service?

The ping request does not answer from my PC.
Yes, I think I registred it perfectly, here it is:

Ping from my server hosted from OVH:
Code:

$ ping myDomain
PING $myDomain (127.0.0.1) 56(84) bytes of data.
64 bytes from pf-official.eu (127.0.0.1): icmp_req=1 ttl=64 time=0.038 ms

Ping from another OVH Server:

Code:

$ ping myDomain
ping: unknown host $myDomain

And the ping from my PC does not work either.
I think it comes from the server that needs to be configured, no ?

lleb 08-13-2013 07:13 AM

that is telling you the DNS is not being provided to anything other then the server. what is your DNS provider? do you have a local DNS server? if not you will need to set one up for local DNS. is this a public URL that is up and running as well as being broadcast to at least 2 public DNS servers?

Ra'Jiska 08-13-2013 07:22 AM

Quote:

Originally Posted by lleb (Post 5008483)
that is telling you the DNS is not being provided to anything other then the server. what is your DNS provider? do you have a local DNS server? if not you will need to set one up for local DNS. is this a public URL that is up and running as well as being broadcast to at least 2 public DNS servers?

Yes, my DNS Provider is OVH. I don't know for local DNS, but my DNS Servers are:

Primary: nsxxxxxx.ovh.net
Secondary: sdns2.ovh.net

Thanks for your help.

lleb 08-13-2013 08:10 AM

Quote:

Originally Posted by Ra'Jiska (Post 5008489)
Yes, my DNS Provider is OVH. I don't know for local DNS, but my DNS Servers are:

Primary: nsxxxxxx.ovh.net
Secondary: sdns2.ovh.net

Thanks for your help.

ok, and have your published your URL to 2 distinct PUBLIC DNS servers? you need an A and a B at the very least. then it will take anywhere from 5min - 48 hr to fully populate around the world before you can use outside DNS servers to locate your external IP.

note i said EXTERNAL IP as that is what will be registered. so if your firewall blocks external pings well then there ya go.

again if you are running systems by fully qualified domain names internally you should be running an internal DNS server with that information. this is in combination with your local DHCP server as well and your DHCP server should be getting 100% of its DNS information from your INTERNAL DNS server, not from an EXTERNAL or Public DNS server like you are now.

acid_kewpie 08-13-2013 08:11 AM

your name needs to be registered with a public DNS service. I presume OVH will do this for you is you refer you your control panel type thing I presume they provide you. If you can't see that, get in touch with them and they'll be able to fill you in on it i expect

lleb 08-13-2013 08:11 AM

let me see if i can clear this up a little more.

1. you are using external DNS servers (from your ISP i am guessing)
2. you are unable to ping your local internal server via FQDN. (fully qualified domain name)

is that correct?

Ra'Jiska 08-13-2013 08:12 AM

Yes, bu the strange thing is I can access the domain from local, it leads me to the right place.
So I suppose it's correclty set, I just need to bind it, no ? But how ?

lleb 08-13-2013 08:14 AM

is this your ISP?

Code:

    Domain name:
        ovh.co.uk

    Registrant:
        OVH Limited

    Registrant type:
        UK Limited Company, (Company number: 5519821)

    Registrant's address:
        C/O CHAMBRE DE COMMERCE FRANCAISE DE GRANDE BRETAGNE
        LINCOLN HOUSE 300 HIGH HOLBORN
        London
        WC1V 7JH
        United Kingdom

    Registrar:
        OVH [Tag = OVH-FR]
        URL: http://www.ovh.com

    Relevant dates:
        Registered on: 09-Sep-1999
        Expiry date:  09-Sep-2015
        Last updated:  11-Mar-2013

    Registration status:
        Registered until expiry date.

    Name servers:
        dns.ovh.net
        dns10.ovh.net
        ns.ovh.net
        ns10.ovh.net



---------- Post added 08-13-13 at 09:15 AM ----------

Quote:

Originally Posted by Ra'Jiska (Post 5008526)
Yes, bu the strange thing is I can access the domain from local, it leads me to the right place.
So I suppose it's correclty set, I just need to bind it, no ? But how ?

you need to be much more clear. yes to what, no to what, how to what?

Ra'Jiska 08-13-2013 08:37 AM

No, this isn't my ISP.
My ISP is ovh.net.

The problem is I can only connect to my domain through the local area only.
And I was wondering how to put it public.

Ra'Jiska 08-13-2013 08:56 AM

But I hard that I had to install my own DNS servers ?
I've set the DNS the ISP gave me.

lleb 08-13-2013 08:57 AM

ok so you are only able to ping your server internally and not externally. can you ping the server internally from ALL workstations?

in that case you need to contact them to get your URL registered, then you need to configure your firewall to do port forwarding of port 80 for web pages as an example to your internal IP of your server.

note when people ping your URL they will be pinging your external IP not your LAN side private IP.

it is also a good idea to put your web server on a different LAN subnet and keep it separate from the rest of your LAN for security.

dt64 08-15-2013 09:37 AM

Quote:

Originally Posted by Ra'Jiska (Post 5008476)
The ping request does not answer from my PC.
Yes, I think I registred it perfectly, here it is:

Ping from my server hosted from OVH:
Code:

$ ping myDomain
PING $myDomain (127.0.0.1) 56(84) bytes of data.
64 bytes from pf-official.eu (127.0.0.1): icmp_req=1 ttl=64 time=0.038 ms

Ping from another OVH Server:

Code:

$ ping myDomain
ping: unknown host $myDomain

And the ping from my PC does not work either.
I think it comes from the server that needs to be configured, no ?

Quote:

Originally Posted by Ra'Jiska (Post 5008476)
Yes, my DNS Provider is OVH. I don't know for local DNS, but my DNS Servers are:

Primary: nsxxxxxx.ovh.net
Secondary: sdns2.ovh.net

Thanks for your help.

That's are what your server can see.
127.2.2.1 is your local loop IP address. You need to find a way to tell the world-wide DNS system which public IP address your domain and your server are assigned to.
I don't know OVH.net, but usually hosting companies provide some kind of interface to set up the DNS settings for the assiciated domains. This works usually only in the case, that you registered your domain with your hosting company housing your server. if you have your domain somewhere else you need to use the domain registrar's DNS interface.
As son as you have done this, every PC in the world having an internet connection should be able to resolve your domain's ip address and connect to your server.


All times are GMT -5. The time now is 03:28 PM.