diff --git a/README.md b/README.md index e5680f4e..528508d0 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket. For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud). -_909 TILs and counting..._ +_908 TILs and counting..._ --- @@ -122,11 +122,10 @@ _909 TILs and counting..._ - [Check The Status of All Services](devops/check-the-status-of-all-services.md) - [Check The Syntax Of nginx Files](devops/check-the-syntax-of-nginx-files.md) - [Connect To An RDS PostgreSQL Database](devops/connect-to-an-rds-postgresql-database.md) -- [Determine The IP Address Of A Domain](devops/determine-the-ip-address-of-a-domain.md) +- [Resolve The IP Address Of A Domain](devops/resolve-the-ip-address-of-a-domain.md) - [Path Of The Packets](devops/path-of-the-packets.md) - [Push Non-master Branch To Heroku](devops/push-non-master-branch-to-heroku.md) - [Reload The nginx Configuration](devops/reload-the-nginx-configuration.md) -- [Resolve The Public IP Of A URL](devops/resolve-the-public-ip-of-a-url.md) - [Running Out Of inode Space](devops/running-out-of-inode-space.md) - [SSL Certificates Can Cover Multiple Domains](devops/ssl-certificates-can-cover-multiple-domains.md) - [Wipe A Heroku Postgres Database](devops/wipe-a-heroku-postgres-database.md) diff --git a/devops/determine-the-ip-address-of-a-domain.md b/devops/determine-the-ip-address-of-a-domain.md deleted file mode 100644 index abbb816b..00000000 --- a/devops/determine-the-ip-address-of-a-domain.md +++ /dev/null @@ -1,31 +0,0 @@ -# Determine The IP Address Of A Domain - -The `dig` (domain information grouper) command can be used to get more -information about a domain name. To discover the IP address for a given -domain, invoke `dig` with the domain as an argument. - -```bash -$ dig joshbranchaud.com - -; <<>> DiG 9.8.3-P1 <<>> joshbranchaud.com -;; global options: +cmd -;; Got answer: -;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 26589 -;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 - -;; QUESTION SECTION: -;joshbranchaud.com. IN A - -;; ANSWER SECTION: -joshbranchaud.com. 86400 IN A 198.74.60.157 - -;; Query time: 118 msec -;; SERVER: 75.75.75.75#53(75.75.75.75) -;; WHEN: Sun Jan 17 22:32:18 2016 -;; MSG SIZE rcvd: 51 -``` - -The *answer section* tells me that the IP address for `joshbranchaud.com` is -`198.74.60.157`. - -See `man dig` for more details. diff --git a/devops/resolve-the-public-ip-of-a-url.md b/devops/resolve-the-ip-address-of-a-domain.md similarity index 68% rename from devops/resolve-the-public-ip-of-a-url.md rename to devops/resolve-the-ip-address-of-a-domain.md index 4e413a6e..fad2ce11 100644 --- a/devops/resolve-the-public-ip-of-a-url.md +++ b/devops/resolve-the-ip-address-of-a-domain.md @@ -1,7 +1,8 @@ -# Resolve The Public IP Of A URL +# Resolve The IP Address Of A Domain -The `dig` command is a utility for doing DNS lookups. You can run it with a -URL argument to lookup the public IP for that domain. +The `dig` (domain information grouper) command can be used to get more +information about a domain name. To discover the IP address for a given +domain, invoke `dig` with the domain as an argument. ```bash $ dig joshbranchaud.com @@ -24,8 +25,8 @@ joshbranchaud.com. 1800 IN A 159.203.106.229 ;; MSG SIZE rcvd: 51 ``` -The output is a bit noisy, but if you parse down to the _ANSWER SECTION_, -you'll see the IP address that it resolves to. +The *answer section* tells me that the IP address for `joshbranchaud.com` is +`198.74.60.157`. Alternatively, you can skip the noise and get right to the IP address by including the `+short` flag.