Go Back   Forums @ The Digital Fix > Gadgets and Gizmos > Computing Forum

Reply
 
Thread Tools Display Modes
Old 19-02-2021, 15:26   #1
AdamBrunt
Trusted User
 
Join Date: Sep 2000
Location: UK
Posts: 26,299
Thanks: 196
Thanked 375 Times in 261 Posts
Self hosting certain web services when you have a dynamic IP address ?

Hi all,

Thought I'd create a new thread rather than derailing the "Passwords..." one.

So my ISP is BT with a dynamic IP address [ technically fixed if I could guarantee not losing the connection ] and I have a domain name, mydomain.co.uk. registered and hosted at a2.

Should it be possible to set it up so that:
  1. Any requests on port 80, 443, x get sent to my dynamic IP address but the rest (in particular SMTP) is still hosted by them ?
  2. And, subsequently, be able to regularly - and automatically - check for changes to my dynamic IP address and update the setting at a2 ?

I'm sure there is a technical term, for at least (1), above, but can't remember what it is exactly and don't want to tell a2 the wrong thing.

TIA for any help.
AdamBrunt is offline   Reply With Quote
Old 19-02-2021, 15:43   #2
scoobyood
Tony Danza
 
scoobyood's Avatar
 
Join Date: Aug 2004
Location: Zagreb
Posts: 9,849
Thanks: 1,112
Thanked 1,658 Times in 867 Posts
Not done it myself, but you can run a script which checks your IP regularly and then use the Go Daddy API to update the DNS Record.

e.g https://www.instructables.com/Quick-...Using-GoDaddy/

No idea whether that is possible with your host.
scoobyood is offline   Reply With Quote
Old 19-02-2021, 16:05   #3
Kryten
Administrator
 
Kryten's Avatar
 
Join Date: Jun 2001
Location: In my own little world
Posts: 29,889
Thanks: 71
Thanked 228 Times in 195 Posts
mx records (used for routing email) are separate from other DNS records (e.g. A records). You cannot do this by port, but my record type.

Then you would need a dynamic DNS provider that can update your IP to DNS record. I use Google Domains and this works fine for me.

EDIT: You may also want to check with ISP as several are known to block certain ports from being sent to home users (e.g. 80.443 etc) to prevent people running websites at home.
__________________
Forum Administrator: Mail Me
The Digital Fix
Kryten is offline   Reply With Quote
Old 19-02-2021, 16:19   #4
AdamBrunt
Trusted User
 
Join Date: Sep 2000
Location: UK
Posts: 26,299
Thanks: 196
Thanked 375 Times in 261 Posts
Quote:
Originally Posted by scoobyood View Post
Not done it myself, but you can run a script which checks your IP regularly and then use the Go Daddy API to update the DNS Record.

e.g https://www.instructables.com/Quick-...Using-GoDaddy/

No idea whether that is possible with your host.
Thanks - not sure a2 is that clever

Quote:
Originally Posted by Kryten View Post
mx records (used for routing email) are separate from other DNS records (e.g. A records). You cannot do this by port, but my record type.

Then you would need a dynamic DNS provider that can update your IP to DNS record. I use Google Domains and this works fine for me.

EDIT: You may also want to check with ISP as several are known to block certain ports from being sent to home users (e.g. 80.443 etc) to prevent people running websites at home.
So, in theory either a2 would need to allow me to (a) change the A record to point to my external NAT IP and (b) update the A record programmatically ... or ... I just change the A record to point to Google Domains and then programmatically update that ?

Also, it looks my TP-link router supports DDNS so that means I just need to set that up and create an A record, at a2, to point to my DDNS domain name. Yes ?

And either way - to all extents, and purposes, my domain name will still appear as mydomain.co.uk ?

Last edited by AdamBrunt; 19-02-2021 at 16:28.
AdamBrunt is offline   Reply With Quote
Old 20-02-2021, 10:38   #5
AdamBrunt
Trusted User
 
Join Date: Sep 2000
Location: UK
Posts: 26,299
Thanks: 196
Thanked 375 Times in 261 Posts
Thought about this again overnight .... as this is just for, say, a self hosted Bitwarden, Pinhole, nextcloud then it doesn't need to be running under my normal domain - a diddy free domain name will work.
AdamBrunt is offline   Reply With Quote
Old 20-02-2021, 12:19   #6
Kryten
Administrator
 
Kryten's Avatar
 
Join Date: Jun 2001
Location: In my own little world
Posts: 29,889
Thanks: 71
Thanked 228 Times in 195 Posts
So Google Domains is my DNS provider for all my personal domains, they offer Dynamic DNS updates from most standard equipment/clients (I use my UniFi USG to perform the updates).

There are many Dynamic DNS providers out there and some could just use not your domain but still a fixed name and you can have a client running to update DNS as needed.

https://www.noip.com/free

That is a top google hit. I have heard of them but not used them myself. Do your own due diligence but there are ones out there if you do not need it to be your domain name that you own.
__________________
Forum Administrator: Mail Me
The Digital Fix
Kryten is offline   Reply With Quote
Old 20-02-2021, 12:41   #7
AdamBrunt
Trusted User
 
Join Date: Sep 2000
Location: UK
Posts: 26,299
Thanks: 196
Thanked 375 Times in 261 Posts
Noip are the ones I am currently trying as my TPLink router has a setting where it can connect to them out of the box allegedly.
AdamBrunt is offline   Reply With Quote
Old 21-02-2021, 14:18   #8
AdamBrunt
Trusted User
 
Join Date: Sep 2000
Location: UK
Posts: 26,299
Thanks: 196
Thanked 375 Times in 261 Posts
Safe to safe that self hosting much on a Raspberry Pi Model B is big no-no

Last edited by AdamBrunt; 22-02-2021 at 12:02.
AdamBrunt is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access my Pc via my phone via Dynamic ip address Herbal Computing Forum 5 14-07-2010 19:04
Anyone use any of the free Subversion hosting services? Guest 19474 Computing Forum 1 30-03-2010 07:52
How to acccess as dynamic IP address remotely from my phone? JamesK Computing Forum 2 02-02-2010 12:53
Any decent free php/mySQL hosting services available? JimDriver2 Computing Forum 1 21-05-2008 13:49
Reliable web hosting services Guest 33558 Computing Forum 9 18-12-2007 19:48

All times are GMT. The time now is 13:18.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2021, vBulletin Solutions, Inc.qq
Copyright ©2000 - 2021 Network N Ltd.