Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Last active January 6, 2016 17:05
Show Gist options
  • Select an option

  • Save diegopacheco/260940e6a4f0fde1ae65 to your computer and use it in GitHub Desktop.

Select an option

Save diegopacheco/260940e6a4f0fde1ae65 to your computer and use it in GitHub Desktop.

Revisions

  1. diegopacheco revised this gist Nov 17, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion aws-dns-route53-dig.md
    Original file line number Diff line number Diff line change
    @@ -42,4 +42,5 @@ cli53 rrcreate "DNS_ZONE_ID" "NAME" TXT "1 2 3 4" --replace --ttl "60"
    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
    * https://aws.amazon.com/code/Amazon-Route-53
    * http://docs.aws.amazon.com/general/latest/gr/Welcome.html
    * https://www.coveros.com/auto-register-an-ec2-host-with-route53-dns/
    * https://www.coveros.com/auto-register-an-ec2-host-with-route53-dns/
    * http://www.highbrow.com.au/blog/migrating-dns-zoneedit-amazon-route-53
  2. diegopacheco renamed this gist Nov 17, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. diegopacheco revised this gist Nov 17, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -31,7 +31,8 @@ dig -x 209.132.183.81 +short
    ### Register DNS
    ```bash
    cli53 list
    cli53 rrcreate "DNS_ID" "NAME" CNAME "HOSTNAME.AWS_AZ.compute.amazonaws.com" --replace --ttl "60"
    cli53 rrcreate "DNS_ZONE_ID" "NAME" CNAME "HOSTNAME.AWS_AZ.compute.amazonaws.com" --replace --ttl "60"
    cli53 rrcreate "DNS_ZONE_ID" "NAME" TXT "1 2 3 4" --replace --ttl "60"
    ```

    ##### Resources
  4. diegopacheco revised this gist Nov 17, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,12 @@ sudo yum install -y bind-utils
    pip install cli53
    ```

    ### Figureout the box name?

    ```bash
    /opt/aws/bin/ec2-metadata | grep 'public-hostname:' | cut -d ' ' -f 2
    ```

    ### Commands

    ```bash
  5. diegopacheco revised this gist Nov 16, 2015. No changes.
  6. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@

    ```bash
    sudo yum install -y bind-utils
    pip install cli53
    ```

    ### Commands
  7. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,12 @@ dig redhat.com +short
    dig -x 209.132.183.81 +short
    ```

    ### Register DNS
    ```bash
    cli53 list
    cli53 rrcreate "DNS_ID" "NAME" CNAME "HOSTNAME.AWS_AZ.compute.amazonaws.com" --replace --ttl "60"
    ```

    ##### Resources

    * https://github.com/barnybug/cli53
  8. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -27,4 +27,5 @@ dig -x 209.132.183.81 +short
    * http://amix.dk/blog/post/19712
    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
    * https://aws.amazon.com/code/Amazon-Route-53
    * http://docs.aws.amazon.com/general/latest/gr/Welcome.html
    * http://docs.aws.amazon.com/general/latest/gr/Welcome.html
    * https://www.coveros.com/auto-register-an-ec2-host-with-route53-dns/
  9. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,8 @@ dig -x 209.132.183.81 +short

    ##### Resources

    * https://github.com/barnybug/cli53
    * http://amix.dk/blog/post/19712
    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
    * https://aws.amazon.com/code/Amazon-Route-53
    * http://docs.aws.amazon.com/general/latest/gr/Welcome.html
  10. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -23,4 +23,6 @@ dig -x 209.132.183.81 +short

    ##### Resources

    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
    * https://aws.amazon.com/code/Amazon-Route-53
    * http://docs.aws.amazon.com/general/latest/gr/Welcome.html
  11. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -18,6 +18,7 @@ dig redhat.com +noall +answer
    dig redhat.com NS +noall +answer
    dig -t NS redhat.com +noall +answer
    dig redhat.com +short
    dig -x 209.132.183.81 +short
    ```

    ##### Resources
  12. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -17,6 +17,7 @@ dig redhat.com +noall +answer
    ```bash
    dig redhat.com NS +noall +answer
    dig -t NS redhat.com +noall +answer
    dig redhat.com +short
    ```

    ##### Resources
  13. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -16,4 +16,9 @@ dig redhat.com +noall +answer

    ```bash
    dig redhat.com NS +noall +answer
    ```
    dig -t NS redhat.com +noall +answer
    ```

    ##### Resources

    * http://www.thegeekstuff.com/2012/02/dig-command-examples/
  14. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,10 @@ sudo yum install -y bind-utils
    dig redhat.com
    dig redhat.com +nocomments +noquestion +noauthority +noadditional +nostats
    dig redhat.com +noall +answer
    ```

    ##### Queries

    ```bash
    dig redhat.com NS +noall +answer
    ```
  15. diegopacheco revised this gist Nov 16, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,5 @@ sudo yum install -y bind-utils
    ```bash
    dig redhat.com
    dig redhat.com +nocomments +noquestion +noauthority +noadditional +nostats
    dig redhat.com +noall +answer
    ```
  16. diegopacheco created this gist Nov 16, 2015.
    12 changes: 12 additions & 0 deletions dns-dig.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    ### How to Install on CentOs?

    ```bash
    sudo yum install -y bind-utils
    ```

    ### Commands

    ```bash
    dig redhat.com
    dig redhat.com +nocomments +noquestion +noauthority +noadditional +nostats
    ```