Question

Another DNS Not Resolving Issue

Hi DO Community, I’ve got a droplet setup at 67.205.185.20 and my dns for clients.nevilleco.com is setup and forwarding to this IP. I can ping the subdomain and get the IP address and DNSchecker.org does return the IP as well, but I’m getting a ‘site can’t be reached’ error trying to hit clients.nevilleco.com from the browser.

I believe the information above shows that DNS has propagated (although I only made this change this morning) and I want to get started on finding why it’s not resolving. My apache configuration is below

Last login: Mon Jun 15 09:10:19 on ttys000
You have new mail.

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
Andrews-MBP:~ andrewsepic$ cd theme-dev
Andrews-MBP:theme-dev andrewsepic$ ls
IdenFord		netop			unionstmedia		vtafterschool
Naada			nomadcoffee		usmblogs		yoga-mala-foundation
howardcenter		nomadcoffeePUlled	usmms
naada-yoga-family	scoutdigital		vnrc
Andrews-MBP:theme-dev andrewsepic$ mkdir triple8
Andrews-MBP:theme-dev andrewsepic$ pbcopy < ~/.ssh/soutwpe.pub
-bash: /Users/andrewsepic/.ssh/soutwpe.pub: No such file or directory
Andrews-MBP:theme-dev andrewsepic$ cd..
-bash: cd..: command not found
Andrews-MBP:theme-dev andrewsepic$ cd 
Andrews-MBP:~ andrewsepic$ pbcopy < ~/.ssh/scoutwpe.pub
Andrews-MBP:~ andrewsepic$ cd theme-dev
Andrews-MBP:theme-dev andrewsepic$ ls
IdenFord		netop			triple8			vnrc
Naada			nomadcoffee		unionstmedia		vtafterschool
howardcenter		nomadcoffeePUlled	usmblogs		yoga-mala-foundation
naada-yoga-family	scoutdigital		usmms
Andrews-MBP:theme-dev andrewsepic$ cd triple8
Andrews-MBP:triple8 andrewsepic$ git remote -v
fatal: not a git repository (or any of the parent directories): .git
Andrews-MBP:triple8 andrewsepic$ git init
Initialized empty Git repository in /Users/andrewsepic/theme-dev/triple8/.git/
Andrews-MBP:triple8 andrewsepic$ git remote add production git@git.wpengine.com:production/triple8nyc.git
Andrews-MBP:triple8 andrewsepic$ git pull production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
FATAL: R any production/triple8nyc AndrewS-mbp DENIED by fallthru
(or you mis-spelled the reponame)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Andrews-MBP:triple8 andrewsepic$ git remote -v
production	git@git.wpengine.com:production/triple8nyc.git (fetch)
production	git@git.wpengine.com:production/triple8nyc.git (push)
Andrews-MBP:triple8 andrewsepic$ ssh git@git.wpengine.com info
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
hello AndrewS-mbp
 R W	production/champlainfarms
 R W	production/gngstaging
 R W	production/hlmdev
 R W	production/naada
 R W	production/netop
 R W	production/olympiamoving
 R W	production/pranatheme
 R W	production/scoutdgtl
 R W	production/scoutstage
 R W	production/triple8nyc
 R W	production/usmblogs
 R W	production/usmms
 R W	production/usmre2018
 R W	staging/champlainfarms
 R W	staging/gngstaging
 R W	staging/hlmdev
 R W	staging/naada
 R W	staging/netop
 R W	staging/olympiamoving
 R W	staging/pranatheme
 R W	staging/scoutdgtl
 R W	staging/scoutstage
 R W	staging/triple8nyc
 R W	staging/usmblogs
 R W	staging/usmms
 R W	staging/usmre2018

Please see http://git.wpengine.com for more help
Andrews-MBP:triple8 andrewsepic$ git remote -v
production	git@git.wpengine.com:production/triple8nyc.git (fetch)
production	git@git.wpengine.com:production/triple8nyc.git (push)
Andrews-MBP:triple8 andrewsepic$ git log
fatal: your current branch 'master' does not have any commits yet
Andrews-MBP:triple8 andrewsepic$ git pull production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
remote: Counting objects: 12502, done.
remote: Compressing objects: 100% (7192/7192), done.
remote: Total 12502 (delta 4879), reused 12502 (delta 4879)
Receiving objects: 100% (12502/12502), 32.03 MiB | 42.00 KiB/s, done.
Resolving deltas: 100% (4879/4879), done.
From git.wpengine.com:production/triple8nyc
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> production/master
Updating files: 100% (7247/7247), done.
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	wp-content/themes/triple8/page-template-dealerportal.php

nothing added to commit but untracked files present (use "git add" to track)
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git commit -m 'added dealerportal template'
[master 2791d44] added dealerportal template
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 51 insertions(+)
 create mode 100644 wp-content/themes/triple8/page-template-dealerportal.php
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 1.16 KiB | 1.16 MiB/s, done.
Total 6 (delta 3), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in 2791d44 ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates ........................ done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ...... done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   e2590a7..2791d44  master -> master
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   wp-content/themes/triple8/page-template-dealerportal.php

Andrews-MBP:triple8 andrewsepic$ git commit -m 'added header info to dealerportal'
[master eac8a0b] added header info to dealerportal
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 51 insertions(+), 1 deletion(-)
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 1.22 KiB | 1.22 MiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in eac8a0b ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates .............................. done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ............ done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   2791d44..eac8a0b  master -> master
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   wp-content/themes/triple8/style.css

no changes added to commit (use "git add" and/or "git commit -a")
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git commit -m 'styles for dealer portal'
[master c51d3fb] styles for dealer portal
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 24 insertions(+), 7 deletions(-)
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 655 bytes | 655.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in c51d3fb ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates .................. done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ...... done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   eac8a0b..c51d3fb  master -> master
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   wp-content/themes/triple8/style.css

no changes added to commit (use "git add" and/or "git commit -a")
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git commit -m 'adjusted styles'
[master d49130b] adjusted styles
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 12 insertions(+), 13 deletions(-)
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 604 bytes | 604.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in d49130b ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates .................. done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ............ done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   c51d3fb..d49130b  master -> master
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   wp-content/themes/triple8/page-template-dealerportal.php
	modified:   wp-content/themes/triple8/style.css

no changes added to commit (use "git add" and/or "git commit -a")
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git commit -m 'dealer locator styles and disabling logo/homelink'
[master 400da43] dealer locator styles and disabling logo/homelink
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 2 files changed, 4 insertions(+), 4 deletions(-)
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 12 threads
Compressing objects: 100% (6/6), done.
Writing objects: 100% (7/7), 585 bytes | 585.00 KiB/s, done.
Total 7 (delta 5), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in 400da43 ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates .................. done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ...... done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   d49130b..400da43  master -> master
Andrews-MBP:triple8 andrewsepic$ git add .
Andrews-MBP:triple8 andrewsepic$ git status
On branch master
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
	modified:   wp-content/themes/triple8/style.css

Andrews-MBP:triple8 andrewsepic$ git commit -m 'style changes for dealer portal'
[master 5481936] style changes for dealer portal
 Committer: Andrew Sepic <andrewsepic@Andrews-MBP.Waitsfield.gateway>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:

    git config --global --edit

After doing this, you may fix the identity used for this commit with:

    git commit --amend --reset-author

 1 file changed, 5 insertions(+), 1 deletion(-)
Andrews-MBP:triple8 andrewsepic$ git push production master
Enter passphrase for key '/Users/andrewsepic/.ssh/scoutwpe': 
Enumerating objects: 11, done.
Counting objects: 100% (11/11), done.
Delta compression using up to 12 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (6/6), 540 bytes | 540.00 KiB/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote:   git.wpengine.com: validating
remote:   - warning: changes will be deployed to production application ...
remote:   - info: validating files in 5481936 ...
remote:   - info: found application servers ...
remote:   - success: validation complete!
remote:   git.wpengine.com: deploying
remote:   - info: preparing application updates .................. done.
remote:   - info: checking submodules ...... done.
remote:   - info: ensuring permissions ...... done.
remote:   - info: deploying to production environment ...... done.
remote:   - info: purging caches ............ done.
remote:   - info: cleanup ...... done.
remote:   git.wpengine.com: complete!
To git.wpengine.com:production/triple8nyc.git
   400da43..5481936  master -> master
Andrews-MBP:triple8 andrewsepic$ c
-bash: c: command not found
Andrews-MBP:triple8 andrewsepic$ cd
Andrews-MBP:~ andrewsepic$ dig NS clients.nevilleco.com +short
Andrews-MBP:~ andrewsepic$ ssh root@67.205.185.20
root@67.205.185.20's password: 
Welcome to Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon Jun 15 16:40:39 UTC 2020

  System load:  0.0                Processes:           104
  Usage of /:   40.9% of 24.06GB   Users logged in:     0
  Memory usage: 37%                IP address for eth0: 67.205.185.20
  Swap usage:   0%

 * Canonical Livepatch is available for installation.
   - Reduce system reboots and improve kernel security. Activate at:
     https://ubuntu.com/livepatch

70 packages can be updated.
0 updates are security updates.


*** System restart required ***
********************************************************************************

Welcome to DigitalOcean's One-Click LAMP Droplet. 
To keep this Droplet secure, the UFW firewall is enabled. 
All ports are BLOCKED except 22 (SSH), 80 (HTTP), and 443 (HTTPS).

In a web browser, you can view:
 * The LAMP One-Click Quickstart guide: http://do.co/lamp1804#start
 * Your LAMP website: http://67.205.185.20

On the server:
 * The default web root is located at /var/www/html
 * The MySQL root password is saved in /root/.digitalocean_password
 * Certbot is preinstalled. Run it to configure HTTPS. See
   http://do.co/lamp1804#enable-https for more detail.

For help and more information, visit http://do.co/lamp1804

********************************************************************************
To delete this message of the day: rm -rf /etc/update-motd.d/99-one-click
Last login: Mon Jun 15 13:33:36 2020 from 68.142.59.19
root@neville2020:~# cd ..
root@neville2020:/# ls
bin   etc         initrd.img.old  lost+found  opt   run   srv  usr      vmlinuz.old
boot  home        lib             media       proc  sbin  sys  var
dev   initrd.img  lib64           mnt         root  snap  tmp  vmlinuz
root@neville2020:/# cd etc/apache2
root@neville2020:/etc/apache2# ls
apache2.conf    conf-enabled  magic           mods-enabled  sites-available
conf-available  envvars       mods-available  ports.conf    sites-enabled
root@neville2020:/etc/apache2# nano apache2.conf

  GNU nano 2.9.3                                apache2.conf                                          

# (the actual bytes sent including headers) instead of %b (the size of the
# requested file), because the latter makes it impossible to detect partial
# requests.
#
# Note that the use of %{X-Forwarded-For}i instead of %h is not recommended.
# Use mod_remoteip instead.
#
LogFormat "%v:%p %h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf

# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
June 16, 2020
Accepted Answer

Hi there @ScoutDigital,

It looks like that your DNS is configured correctly and your webserver is also up and running, I’ve tested this with the following curl command:

  1. curl -IL clients.nevilleco.com

The output bellow shows that the domain is resolving and that Apache is listening on port 80:

HTTP/1.1 301 Moved Permanently
Date: Tue, 16 Jun 2020 15:15:38 GMT
Server: Apache/2.4.29 (Ubuntu)
Location: https://clients.nevilleco.com/
Content-Type: text/html; charset=iso-8859-1

curl: (7) Failed to connect to clients.nevilleco.com port 443: Connection refused

However, you have an http to https redirect and it looks like that you do not have an SSL certificate installed so Apache is not listening on port 443, and this is why you are seeing the Connection refused error.

To fix that you can follow the steps here on how to issue a Let’s Encrypt SSL certificate for your domain name using certbot:

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04

Hope that this helps! Regards, Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel