Sanjeev Sabhlok's notes on technology, hardware, gardening

Category: Uncategorized

How to point a domain registered at Cloudflare to Siteground

[some hints:  https://community.cloudflare.com/t/how-to-point-a-domain-registered-on-cloudflare-to-siteground-domain-servers/450436/3]

Cloudflare doesn’t allow the change of the Name server (NS) but web-hosting and emails can be pointed to Siteground.

  1. Install the new domain on Siteground
  2. Install WordPress

Follow the TWO STEPS below

1) STEPS TO POINT THE WEBSITE (A record)

Point the domain’s A records to Siteground.

STEP 1: GET THE IP ADDRESS FROM SITEGROUND

Visit Siteground admin page and get the IP address of the server assigned to your domain.

Go to your Client Area
Select Websites
Choose the website you want to check
Click the kebab menu next to the website
Click Website Settings
Click the kebab menu again and select Server Details
The website’s IP address and name servers will appear in the light-box

STEP 2: UPDATE THE RELEVANT DNS ZONE AT CLOUDFLARE (for your domain)

With that IP address at hand, you can go to https://dash.cloudflare.com/?to=/:account/:zone/dns, pick your zone, and create an A record pointing to your origin server.

Go to “DNS” (DNS setup) DNS records
Go to the section “DNS management for [domain name]”
Click “Add record”
Pick A (default)
Put in the name of the domain in the “Name” box
Put the IP address (from Siteground) in the IPv4 address box
Click “save”

STEP 3: Also create another A record with Name: “www”, pointing to the same IP address.

PROBLEM! The IP address obtained by this method was WRONG. I had to raise a chat with Siteground. In the chat they provided the correct IP address. (THEY GIVE OUT THE CORRECT IP ADDRESS WHEN YOU START A CHAT, SO USE THAT !)

 

2) STEPS TO POINT THE MAIL SERVER (MX record)

Point the domain’s MX records to Siteground

These are the MX records for Siteground (see  https://www.siteground.com/kb/point-mail-service/ )

10 mx10.antispam.mailspamprotection.com
20 mx20.antispam.mailspamprotection.com
30 mx30.antispam.mailspamprotection.com

The first two digits (10, 20,30) are the PRIORITY numbers

At Clouflare go the same place where you updated the IP address (A record) and create THREE MX records, as above. You’ll need to scroll down the drop down menu to find MX. Do this ONE BY ONE -save each time. Make sure to enter the priority number.

In the end it should look like this:

 

 

Continue Reading

Entire text has disappeared in Microsoft Word, only footnotes are visible

This has happened twice. A solution below (it is pretty complicated but works).

1. What happens is that while updating the table (F9) one might accidentally press Alt-F9, and then select all text. This converts it all into a field.

2. How to undo this is impossible manually. It requires a MACRO.

3. See this first – how to install a macro in the Word document: https://www.gmayor.com/installing_macro.htm

4. Then install this macro:

Sub ExtractFieldCode()
    ' Jay Freedman
    ' https://answers.microsoft.com/en-us/msoffice/forum/all/code-field/5f5f839e-581b-4578-b446-391b635b4af3
    '
    Dim rg As range
    If ActiveDocument.Fields.Count = 0 Then
        MsgBox "This document contains no fields."
        Exit Sub
    End If
    With ActiveDocument
        .ActiveWindow.View.ShowFieldCodes = True
        .Fields(1).Code.Cut
        .range.PasteSpecial DataType:=WdPasteDataType.wdPasteHTML
        .ActiveWindow.View.ShowFieldCodes = False
    End With
End Sub

5. Now run the macro!

DONE – THE ORIGINAL TEXT WILL RETURN.

Note: it is possible that a few problems might emerge in the text that has been retrieved. I had a to manuall fix some of these problems, but it was far better than re-typing material that I had lost.

Continue Reading

Insert an image as the title page of a Word document

 

  1. Insert rectangle shape – and stretch it to the tips of the page

2. Go to shape format > Shape fill > drop down pick picture > insert the picture.

NOTE: Word will STRETCH THE IMAGE and distort it. You’ll need to figure out the correct size by trial and error, in Canva. Resize the image in canva before downloading.

A4 size paper is 210 x 297 mm

Canva default for book is 1410 x 2250

To make it fit the A4 page, resize to 1410  x 1994

 

Continue Reading