Question

  • Creator
    Topic
  • #4041479

    hosting a website on a raspberry pi 4 but dns is not working

    by alex.walkeruk ·

    hi there i was wondering i anybody knows how to fix the problem where my website dose not work when i try to connect to it using a dns but when i use the ip it works. i have tried using a different ip in the dns settings and that worked. I have tried using a different dns provider and that still dose not work Currently i am using noip.
    Thanks

You are posting a reply to: hosting a website on a raspberry pi 4 but dns is not working

The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our Community FAQs for details. All submitted content is subject to our Terms of Use.

All Answers

  • Author
    Replies
    • #4041502
      Avatar photo

      Too little detail.

      by rproffitt ·

      In reply to hosting a website on a raspberry pi 4 but dns is not working

      Often I find folk try to plug their server into a router and expect this to work from the Internet. Nope, not supposed to work without a lot of caveats.

      1. I see you mention NOIP so I take it you followed their instructions and won’t rehash that here.
      2. I see no mention that this server is behind a router and how you configured said router to answer requests from the Internet.
      3. No mention of any IP addresses such as 192.168.x.x or 10.x.x.x for the server so again, can’t tell you if that applies.

    • #4047382

      hosting a website on a raspberry pi 4 but dns is not working

      by muhammadhaseeb18051998 ·

      In reply to hosting a website on a raspberry pi 4 but dns is not working

      Make sure that the DNS settings for your domain name are correct. Double-check that you have entered the correct IP address for your website in your DNS provider’s control panel.

      Check that the DNS records have propagated properly. Sometimes it can take up to 24 hours for DNS changes to propagate across the internet.

      Check that your web server is configured to respond to requests from your domain name. You may need to add a virtual host configuration to your web server’s configuration file.

      Make sure that your firewall is not blocking traffic to your web server. You may need to open up port 80 (HTTP) or port 443 (HTTPS) to allow incoming traffic to your web server.

      Verify that your DNS provider is resolving your domain name correctly. You can use the dig command to check the DNS resolution of your domain name.

    • #4056360

      Reply To: hosting a website on a raspberry pi 4 but dns is not working

      by anawilliam850 ·

      In reply to hosting a website on a raspberry pi 4 but dns is not working

      Hi there! There are a few things that could be causing the issue you’re experiencing with your website not working when you try to connect to it using a DNS.

      Firstly, it’s possible that there’s an issue with the DNS settings themselves. Double-check that you’ve set up the DNS correctly by following the instructions provided by your DNS provider, in this case, noip. Ensure that the correct IP address is linked to your domain name and that the DNS is correctly propagated.

      Secondly, it’s possible that there’s an issue with the DNS cache on your local device or network. This could be causing your device to continue to use an old IP address, even after you’ve updated the DNS settings. You can try clearing your DNS cache by flushing the DNS cache on your device or network. Instructions for this will vary depending on the operating system and device you’re using.

    • #4057211

      Reply To: hosting a website on a raspberry pi 4 but dns is not working

      by oliver.david2027 ·

      In reply to hosting a website on a raspberry pi 4 but dns is not working

      If you are hosting a website on a Raspberry Pi 4 and the DNS is not working, there are a few things you can try to troubleshoot the issue:

      Check your DNS settings: Make sure your DNS settings are correct and match the DNS settings provided by your ISP or DNS provider. You can check your DNS settings on your Raspberry Pi by running the command “cat /etc/resolv.conf”.

      Restart networking services: Restarting the networking services on your Raspberry Pi may help resolve any DNS-related issues. You can do this by running the command “sudo systemctl restart networking”.

      Check for network connectivity issues: Ensure that your Raspberry Pi has an active internet connection and that it is properly connected to your network.

      Test DNS resolution: Test DNS resolution on your Raspberry Pi by using the “nslookup” command followed by a domain name, such as “nslookup google.com”. This will tell you if your DNS is working properly.

      Use a different DNS server: If all else fails, you can try using a different DNS server such as Google DNS or Cloudflare DNS.

      If you continue to experience issues with DNS not working, you may want to seek further assistance from a technical support specialist or online forum.

Viewing 3 reply threads