How to set up FQDN with Dynamic IP?

524

Solution 1

Use a DNS hosting service that provides dynamic DNS services, and follow their instructions to configure your server. You'll likely be instructed to install a program like ddclient.

Recommendations for DNS hosting services are beyond the scope of Ask Ubuntu.

Solution 2

Adding to other answers:

I'd recommend using a static IP since dynamic DNS inherently brings potential problems related to caching: Even after the IP is updated, it can take tens of minutes before it propagates to most of the Internet. And in some places it can be even worse since sadly not all local DNS servers / clients respect TTLs properly.

Combined with how often IP changes and the costs for DDNS itself and costs of downtime, actually paying for the static IP might come cheaper.

Solution 3

By the contents, this has more to do with your DNS provider then Ubuntu. If your server works using the IP, then the only thing that you need is a DNS provider that offers Dynamic DNS services (like DynDNS in your tags, or OpenDNS, etc....). You will need to pay both, the domain name (1 time pay) and the DNS to maintain it. Then configure Apache to resolve correctly the FQND and you are set.

Solution 4

I use a dynamic dns provider such as dyndns* and then alias the fqdn to the name that is provided by the dynamic dns service. For example dyndns provides a hostname such as myhouse.dyndns.org and then a simple cname alias is created pointing www.example.com to myhouse.dyndns.org and voila!

  • this is not an endorsement for dyndns service, I am not associated with their service nor do I recommend it, but it is an example of how this can be done.
Share:
524

Related videos on Youtube

Austin Turner
Author by

Austin Turner

Updated on September 18, 2022

Comments

  • Austin Turner
    Austin Turner almost 2 years

    I accidentally deleted all of the directories in /usr/lib on windows subsystem for linux on Windows 10 when I meant to delete just one of the sub-folders (node_modules). Because the shell always runs in sudo mode, there was no access denied restriction. Now I am having major issues and want to re-install the base platform packages and start fresh, but have not been able to find any resources on doing so.

    I mainly do javascript development, and nothing with npm will work (after I uninstalled and re-installed node multiple times)

    Example:

    root@WIN-05ANKLGA0J3:~# npm install -g gulp
    fs.js:634
    return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                   ^
    
    Error: Unknown system error -25: Unknown system error -25, open '/usr/local/lib/node_modules/npm/bin/npm-cli.js'
        at Error (native)
        at Object.fs.openSync (fs.js:634:18)
        at Object.fs.readFileSync (fs.js:502:33)
        at Object.Module._extensions..js (module.js:549:20)
        at Module.load (module.js:456:32)
        at tryModuleLoad (module.js:415:12)
        at Function.Module._load (module.js:407:3)
        at Function.Module.runMain (module.js:575:10)
        at startup (node.js:159:18)
        at node.js:444:3
    

    Any help is much appreciated.

    • Alexey Ce
      Alexey Ce about 10 years
      no-ip.com is the only free provider for a FQDN now. There used to be a few, but they don't do it anymore AFAIK.
    • magicandre1981
      magicandre1981 about 8 years
      this question belongs to superuser.com and was already answered there: superuser.com/a/1065579
  • user212469
    user212469 over 10 years
    Well unfortunally getting a static ip adress is not possible with this isp so i have to make do
  • user212469
    user212469 over 10 years
    acctually its more on ubuntu since i need to know what my options are in relation to what i have for isp and os
  • user212469
    user212469 over 10 years
    Thanks for the reply seems i have no go that road, was kinda hoping some software could do the trick localy nowdays.
  • Alois Mahdal
    Alois Mahdal over 10 years
    @user212469 Strange, when looking for VPS provider in my country (Czech) I simply chose the cheapest one and had the first static IP free (or at least it was not possible to have a VPS without static IP). So your situation kind of struck me as "what an injustice!"... :) Maybe situation with non-VPS hosting is different though. Or the prophecy was right: we really are getting low on IPs! :D
  • Braiam
    Braiam over 10 years
    @user212469 if you type your IP and the thing works, then nothing has to be done in Ubuntu except installing maybe a tool that will update your IP's. Also, when accepting answers, do not comment others unless they are not clear or not covered by other answers.