-
Notifications
You must be signed in to change notification settings - Fork 0
BashPlus for Dyn
Summary:
- Activating the Bash+ DynDNS extension
- Listing/Searching/Creating domains
- Creating records
- Listing/filtering domain records
- Deleting domains/records
- Updating existing records
- Custom API requests
- Appendix A. Notes for scripters
You start by sourcing files with bash+ functions
Once you have the functions in your shell and you run the first DynDNS command (any command), you will be prompted for credentials. These are saved as variables inside your shell until you leave the current session
You can list all domains in your account with the command dyn ls
Now lets create a new domain. Notice the use of grep to filter domains. Bash+ is still bash. You are working with DynDNS in shell
Next, we populate the newly created domain with some records.
Creating a naked A record
Creating a cname
Created a naked text record and listing that record by its id to see all its values
You can also update existing records, using the same command dyn record mk
Updating naked records is more tricky. You should incorporate the record id in your command. You do it using a special /@ notation
You can use / notation to update normal records too. This would make your commands run faster when updating existing records
You have four ways to list records:
-
dyn ls <domain>
lists records but without values. Fast -
dyn ls <domain> all
lists all records with their values. Takes time. -
dyn ls <domain> naked
lists all naked records with values dyn ls <domain> id1 id2 id3