Setting a Static IP

,

Is it possible to set a static IP address for Yunohost while using DHCP on my router? Unfortunately my router is provided by my ISP and I don’t have control over settings, but I’d like to manually set a static IP for Yunohost so that the IP doesn’t change.

I only set this up a few days ago and it’s working great so far, but today suddenly changed IP address which messed up a few devices which I had manually set to use the local IP address for DNS resolution (using pi-hole).

I checked the documentation and couldn’t find an answer to this.

Thank you!

My YunoHost server

Hardware: Raspberry Pi 4 2gb
YunoHost version: Latest version
I have access to my server : Through the web admin panel and SSH
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Check this: https://techgenix.com/static-ip-address-for-linux/.

2 Likes

Here’s another resource, the key is the /etc/network/interfaces. It’s a bit finicky, and for others reading this: setting it by router/MAC address is much easier simpler.

https://linuxconfig.org/how-to-setup-a-static-ip-address-on-debian-linux

1 Like

It seems that this worked but somehow caused a problem with dns where the server is accessible via IP address but the nohost.me domain doesn’t seem to work.

I’ll keep working at it. Thanks for the links!

Maybe some DynDNS to update ?

There is a cron running that, but you can do it manually using command line (and perhaps webmin).

You can try a nslookup too in order to see if the domain is correctly linked to the IP.

Here is an example :

C:\Users\kit>nslookup yunohost.org
Serveur :   UnKnown
Address:  192.168.1.105

Réponse ne faisant pas autorité :
Nom :    yunohost.org
Addresses:  2001:910:1410::1
          80.67.172.144
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.