Showing posts with label dns. Show all posts
Showing posts with label dns. Show all posts

Tuesday, November 09, 2021

Setting up Dynamic DNS with PFSense and GreenGeeks Web Hosting

One of the things I have been struggling to setup in the last few years was a reliable way of setting up my Domain DNS with my home internet connection.  My ISP (Telus) assigns dynamic IP address, which is typical for many home internet connections.  I was using ddns to handle my vpn url, however reciently I missed the renewal email and I hadn't bothered to set something new up.  I have a greengeeks webhosting account, and use PFSense as my home firewall/router so I decided to have a look at the settings and see what I can setup with the two of these.

The first thing you will want to do is setup the DNS on your GreenGeeks account.

1. Go to Dynamic DNS when you enter the CPANEL


2. Create a new entry


3. Fill Out all the relevant information.  So a good example for this might be vpnconnect.yourdomain.ca where vpnconnect is the subdomain and yourdomain.ca is the domain selected.  You can manually enter in your ip from your firewall here I left mine blank and will be propagated once the URL is put into the PFSense Firewall.


Once Created.  Copy the Dynamic DNS URL, we will need to put it into our PFSense Firewall.


Login to PFSense go to Services -> Dynamic DNS

1. Setup Dynamic DNS


2. Press the + Add Button


3. Select the Service Type to "Custom" and both interfaces should be set to "WAN"


4. Enter in your username and password for your cpanel account.


5. Enter in the URL for updating your Dynamic DNS.  We copied the URL from our Dynamic DNS Settings in the CPANEL


Once you hit SAVE, the firewall should update and your IP will display in the webhost CPANEL and on your PFSense Firewall.  If the IP is green then everything is good, if it is red, then it is not working properly.




Friday, November 06, 2020

Migrating a website to shopify, while keeping your email working

Recently a site I was hosting on my shared host decided to move their online presence off Joomla to the shopify platform.  The website was originally on a shared host; which is fine but when the site was moved to shopify, I was asked to update the A and cname records for the domain to the shopify ip and url.

My host on CPANEL when you setup a domain, puts in a bunch of default settings for the domain, as they should.  Here is a sample of a default setup.


This client is forwarding domain emails to a gmail account, they don't have google apps or anything like that and it isn't required for them.  So when I updated one mx record pointing to my main a record and when I updated the A record to point to the new IP and change the cnames to point to shops.myshopify.com, my client being unaware that shopify doesn't provided email service email just stopped working because the mx record was pointing to the main A record.  This caused all email pointing to domain.ca to stop which was being forwarded by the server to a web email service.


The solution was to make a new A record with the old ip address in this case making a name record mail.domain.ca A = sharedhost IP and putting a new cname domain.ca MX = mail.domain.ca


Now you can see here I removed the mail.domain.ca cname record I felt it was redundant but if I have problems I can always put it back in especially since the mail.domain.ca was not being used.  I do have to setup DMARC but that is something else that I'm not doing at the moment.

Thursday, November 22, 2018

Fixing Failover Cluster DNS Error 1196 DNS Failure

From time to time you might see DNS Registration Error 1196 on your DNS for your cluster nodes.  This is caused by the network binding order getting changed up, auto configured etc.  I'm not sure how or why DNS binding orders get changed when they are manually configured but it is a pretty trivial fix.  You can do one of 2 things, manually set the DNS for networks where you don't want the host to have DNS (just blank it) or you can change the binding order.  In this post we are going to change the binding order for the DNS on the cluster nodes.

You will see dns errors much like what is shown below in your Failover cluster manager.



To change your binding Order on Server 2012R2 is pretty simple.  First make sure you have show menus turned on in your folder options.




Then go to your "Network and Sharing Center"

Select "Change adapter Settings" once you see your list of network adpaters select from the menu Advanced -> Advanced Settings


You will see a window popup with your network adapters.  Change the order so that the network you want to be accessed first is at the top of your list.



Once you have the networks in the order you want close the window by hitting ok.  As you can see by the powershell window below, we had issues finding a server node on our cluster and after the changes we were able to get a full listing.


In server 2016, to change the binding order is in the IPV4 metric Properties.  The lower the number the high the binding order.  So for example if you have 3 networks,

  • Intranet - Metric 1
  • Web App - Metric 10
  • Internet - Metric 20
The network Intranet gets priority over Web App and Internet, so if you have a DNS server on your network the client checks Intranet for any DNS lookup first before trying the other 2 networks if a DNS server is supplied.  Intranet also gets all network priority over the other adapters.


Interesting Reference Information.

Thursday, May 18, 2017

Troubleshooting Microsoft Failover Cluster Communication Errors Part 1

Hyper-V high availability clusters are great they allow you to better manage your downtime, updates and improve your productivity dramatically, not to mention the benefits of having systems on VHD/VHDX disks that are faster to backup and recover back to.  However it is important to have good infrastructure setup to accommodate the resources required by the Cluster.

The 6 node Hyper-V cluster I had setup starting acting buggy this is after it had been running rock solid for about 2 years.  I keep this cluster pretty up-to-date with current system patches, and I also use Control Up to monitor the real time status of the cluster and a Standalone Hyper-V Server.  (On a side note Control Up helped me diagnose an I/O issue with my Standalone server.  Read Post)


The symptoms were:

  • slow access to the cluster manager
  • cluster node timeouts/drops
  • DNS Errors
  • iSCSI Target Timeouts/Delayed writes
  • Control Up alerts on NIC Packet Errors/Drops
  • Validating Cluster Test -> Network Failure
  • Cluster Update Errors
After having a quick look at the problem and a reboot of a down node where the only issue seemed to be a generic communication/TCP error a reboot of the node in question seemed to resolve the issue; however the issue seemed to be resolved for the work day but would show up again the next morning with communication errors between the nodes.  All the Server managers, Cluster Manager had logs reporting communication failures, migration failures but nothing really more than that so we just kept rebooting the systems in the morning to keep things going until I could come back and troubleshoot the system more thoroughly, but I had suspected that it was the switch the cluster was plugged into.

Cluster Errors Log


After the switch was rebooted everything was performing much better, all the nodes appeared to be happy everything was running fast I was able to move servers onto different nodes.  However there was one issue that came up after the fact it appeared that one of the nodes had been removed from DNS in Active Directory which was causing an issue with the other nodes being able to communicate.  The only place I seen the issue was on a single node that had gotten it's DNS updated and showed the node missing all IP addresses and Microsoft highlights it in red which is very handy.



After re-adding the missing node to the DNS in AD, everything appears to be resolved.  So if you are getting this kind of error make sure you using a switch that can handle the traffic, and double check your Active Directory controllers for DNS and if your DHCP Server to make sure all nodes are getting the address their suppose to be getting and are available on the network.

Another issue that popped up where the cluster was throwing out this error.  "Cluster network name resource 'cluster name' failed registration of one or more associated dns name(s) for the following reason: DNS Server Failure"


I did doing 2 things to repair this issue and this is all done in the Failover Cluster Manager.



1)  a repair of the cluster

  • Right click on the server name and take it offline.
  • Right click on the server name -> More Actions -> Repair


2)  Move the server to another node with more resources
  • Click on the cluster in the Cluster Core Resources
  • In the Action Panel click on "more Actions" -> Move Core Cluster Resources -> Select Node or Best Possible Node


When you right click on the Cluster Name in the Cluster Core Resources and right click on Properties you will see the window above.  This is what a healthy Cluster should look like.

Go to Part 2 >>




Updating your godaddy certs during the G2 intermediate hierarchy to the TLS Root CA - R1 hierarchy

  If you use GoDaddy TLS certificates you should be aware of some changes during the transition from the G2 Intermediate certificates to the...