Forums

How do I get the IP address and nameservers of my pythonanywhere site

Hi I am trying to "point my godaddy domain to my Pythonanywhere website (third-party hosting for GoDaddy)." The GoDaddy support person said "please collect the hosting IP address and the name servers form the hosting provider, so that we can update the details in the domain DNS to point the domain to the third party hosting. the hosting IP will be available in the hosting I suggest you to please contact the hosting provider for the hosting IP address and name servers."

Thanks in advance.

I think the GoDaddy support representative you spoke to might have been confused about what you want to do. You don't need an IP address or nameservers to point a domain that is registered with them at our servers. (Also, it would be really weird to provide both a nameserver and an IP address to a domain registrar -- you only need one or the other.)

What you need to do is:

  • Use GoDaddy's nameservers
  • In their DNS administration pages, create a CNAME record that points www.yourdomain.com at the value we provide on the "Web" page (which will look something like webapp-123456.pythonanywhere.com.

A CNAME record is a way to tell the DNS system where a website is without needing to use an IP address.

BTW you might find it useful to read our DNS primer. It was written to provide the information needed when tech support people at registrars give confusing information.

I thought I was pretty clear to him in simple language. And yes, I was baffled by the absence of CNAME in the instructions from GoDaddy. Okay, I will use your instructions now and I have learned something. Thanks for your time.,

Hi i followed your instructions and this is the new CNAME record I just created:

                NAME (HOST)                                              VALUE (POINTS TO)
CNAME   webapp-657033.pythonanywhere.com    drivinginstructor.pythonanywhere.com    1 Hour

Does that look okay?

[edit by admin: formatting]

Not quite -- you should have:

  • Name: www
  • Value: webapp-657033.pythonanywhere.com

The TTL could also be usefully reduced -- about five minutes (300 seconds) works well.

Just to clarify what all of these settings mean -- what you're doing here is setting up a mapping so that www.yourdomain.com points to a server with the hostname webapp-657033.pythonanywhere.com. The "NAME (HOST)" is the first of those (with the .yourdomain.com implicit) and the "VALUE (POINTS TO)" is the second. So your original setup created a record that made the host webapp-657033.pythonanywhere.com.yourdomain.com point to drivinginstructor.pythonanywhere.com.

BTW I see that your website is currently still called drivinginstructor.pythonanywhere.com on the "Web" page -- you'll need to rename it to be www.yourdomain.com using the pencil icon to make it work once the DNS settings have been applied.

I thought something was not right. I will make the correction and follow through on the instructions.

"what you're doing here is setting up a mapping so that www.yourdomain.com points to a server with the hostname webapp-657033.pythonanywhere.com. The "NAME (HOST)" is the first of those (with the .yourdomain.com implicit) and the "VALUE (POINTS TO)" is the second. So your original setup created a record that made the host webapp-657033.pythonanywhere.com.yourdomain.com point to drivinginstructor.pythonanywhere.com."

It so much clearer to me. Thanks. I should go through that DNS tutorial you pointed me to.

No problem, glad to help! And yes, I really do recommend the DNS tutorial -- though I guess there's less incentive to read it once you've got it all set up ;-)

my website is not working without adding a www prefix before the website name and the site from which i purchased the domain says you need to get the IP Address of the hosting website, So what should i do to make it work without adding a www thing.

hi there, have you seen this?

I'm having a similar problem, but with HostGator. They say: "However, you want to point the domain engineermyworld.com to PythonAnywhere, so we need a SiteIP so that we can create A record to point to them.... (obtain the) A record from the PythonAnywhere server, then we will guide you further." I'm following the above guidance and will update with info when I get some kind of answer.

The support at some of the DNS providers do not always know what they are doing. That is why we provide the extensive documentation that we do - so you can understand what is required and how to achieve it without having to rely on their support.

hello

Hello, how can we help?

Thanks, I already solved it

hi @Taladropolis When i access my without www, it redirects to my dns provider website..... its wroking fine when we access it through www.mydomain.com

which records i need to add in my domain provider

Hi @lazycoderonline, I configured my hosting to redirect everything that reached mydomain.com to go to www.mydomain.com

This help page has some further hints and tips on how to do that, including links to the appropriate help pages for some common domain registrars. I'd also recommend checking out NakedSSL -- there's a link to them on the same help page.