Filled Fastmail DNS

Discussion in 'Plugin Requests' started by Rift_Blade, Sep 23, 2018.

Thread Status:
Not open for further replies.
  1. Offline

    Rift_Blade

    I use fastmail for my email and the nameservers of my domain.
    I home host and have a dynamic IP.
    I know a little about programing, so I already tried to make it myself but I realized that this is above my level.

    Plugin category:
    Admin tools

    Minecraft version: 1.13.1

    Suggested name: Fastmail dns

    What I want: To automaticly update my dns onEnable

    Config:
    Code:
    login:
      email:
      password:
    domain:
    Getting ip (When i tried making it myself I made this code for getting ip):
    Code:
        private String getIP(){
            try (InputStreamReader ir = new InputStreamReader(new URL("http://checkip.amazonaws.com").openStream());
                 BufferedReader br = new BufferedReader(ir)
            ){
                return br.readLine();
            } catch (IOException io){
                getServer().getLogger().warning(io.getMessage());
                getServer().getPluginManager().disablePlugin(this);
                return "";
            }
        }
    I also found code for interacting with fastmail, but this code is Python: https://github.com/ZachAnders/ddfastmail

    Ideas for commands: No commands needed for this plugin.

    When I'd like it by: Asap
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Rift_Blade Why not get a host, a static IP or a dedicated tool?
    Or let the run.bat invoke the python script.
     
    Last edited: Sep 24, 2018
  3. Offline

    Rift_Blade

    That's a very good idea. I will use the run.bat idea
     
Thread Status:
Not open for further replies.

Share This Page