I have a raspberry pi that i use as a web server. I have an Apache server and I use my router’s public address to access to my website.
Can i pay for a domain name and “link” it to my router’s public IP ? Or will i always have to type the IP to go to my website ?
EDIT : thanks to the answers, i managed to do it. on ionos, you have to go on the dns settings of your domaine name and add your router ip for the ‘A’ type record for both ‘@’ and ‘www’. you will also have to add a domain name in your apache or nginx server to avoid the ip to appear in the user’s web browser.
2
Answers
Yes to point your domain name to an IP address you can create an
A Record
.You can see screenshots here
Sure, Your computer is treated the same as any server, a few things you should do to make it work.