How to add CNAME records to Google Domain? - email

I just signed up for SendGrid and I need to add these (top image) SendGrid CNAME records to my Google domain. The issue is that it doesn't tell me what to put into the first field ("#"). If I leave it blank I get an error (see bottom image). Please help.
PS: Adding www as per the Google Domains Help page gives me a naming conflict as there is already an A record with www.

You need to add the CNAME records with the domain you are trying to authenticate removed from the host name. For example, if you are trying to authenticate the domain abc.com, SendGrid will show three CNAME records with host names: emXXXX.abc.com, s1._domainkey.abc.com and s2._domainkey.abc.com. In Google Domains you will need to add three custom resource records of type CNAME with names: emXXXX, s1._domainkey and s2._domainkey. For each of these you must add the value SendGrid provides as the data of the CNAME record. It can take a while for the information to propagate, so verification won't work straight away. Retry after a few hours.

Made this mistake myself with Google domains and realized it few days later (I was waiting for upto 48 hours for CNAME update to propagate as informed by message after you save CNAME record).
Anyway, assuming your google domain is xyz.com and you want to add a CNAME record where someprefix.xyz.com should redirect to somesite.com.
WRONG way of doing this:
----------------------------------------------------------------------
| someprefix.xyz.com | CNAME | 1 | somesite.com | ❌
----------------------------------------------------------------------
RIGHT way of doing this:
--------------------------------------------------------------
| someprefix | CNAME | 1 | somesite.com | ✅
--------------------------------------------------------------

It took me a few days to figure out the issue. It's quite misleading based on what SendGrid shows you. Anyway, the solution is simple. When you copy from SendGrid, make sure you delete the name of your domain when you paste it in Google Domains field. For example:
Your domain is ABC.COM
From SendGrid you will have:
------------------------------------------------------------------------------
| url444.ABC.COM (COPY) | u2225555.cf555.sendgrid.net (COPY) |
------------------------------------------------------------------------------
When you go to Google Domains to add a record, you will type: url444
and then you select CNAME from the dropdown menu, leave the default value for TTL to 1, and in the next field you will put whatever SendGrid provided with no deletion. So, in Google you should have:
------------------------------------------------------------------------------
| url444.ABC | CNAME | 1 | u2225555.cf555.sendgrid.net |
------------------------------------------------------------------------------

Mr.Hunt is correct. The reason for this is because when adding a CNAME record through the domains.google.com platform, it automatically appends your domain name to the end of the host name field, so if you choose the copy option from the SendGrid Domain Authentication page, it will add your domain name in twice. So in short just remove your domain name when pasting into the host name field.

Related

Snapchat API: Pull campaign stats for an add account, and must include campaign names

Looking trough Snapchat documentation, I couldn't find a way t pull the data with campaign name and only the data for last 7 days.
one of the parameters is start and end time (no way to just request last 7 days)
name is an existing field but only used to create a campaign.
if you try to use the field = name you will get an error
If somebody knows please advise.

Lookup in LibreOffice Calc to match partial string of the search criterion

I'm putting my banking information in a LibreOffice Calc spreadsheet.
I have columns as follows, that I imported from my bank account:
Date | USD | Description | Category
----------+-------+---------------------------------------------+----------
2/28/2019 | 44.00 | POS 0123 2345 123456 FRED-MEYER #02 | groceries
2/27/2019 | 2.50 | PANDA EXPRESS #123 TIGARD OR - 123546789012 | lunch
These descriptions are very unpredictable, they're whatever merchants want them to be, but they can tell me useful information about what I spent my money on. I've used this information to manually enter the categories. But I'm looking to automate this for common things.
So, I created a separate sheet with lookup values, like so:
Expression | Category
-----------+----------
FRED-MEYER | groceries
PANDA | lunch
I am looking for a formula in the "Category" column of the first sheet to automatically determine categories, based on the lookup table in the second sheet. (Obviously I don't plan for the lookup table to be exhaustive, but whatever I don't put in there, I can enter in the first sheet manually, thus overwriting the formulas.)
I had this working fine in Excel using a nifty construct of SEARCH and MATCH. (I don't even understand it anymore and I don't have Excel to check.) But since I'm now a Linux user, I'm trying to use LibreOffice, and I've not been able to make this work with formulas. I tried SEARCH, MATCH, LOOKUP, VLOOKUP, FIND, with and without regexes and with different options on/off. But no success so far.
I think this is very similar to this question, though it was only answered for Excel (I'm using Calc).

Importing a CSV and displaying data - weird CSV layout

I am trying to streamline our password reset script at work.
We have been asked to send password resets to team leads.
I am looking to get the script pull the team lead name from a CSV file.
We have an export for the team memberships (this can change across the company so we would export to a CSV once a week or so)
The problem is the format of the CSV file.
I am thinking of using the Out-Gridview with selection feature, but I dont want to display the whole CSV, just the team the member is part of.
I am looking for a way to search for Department (sales, service desk, HR, etc..), then Team, and finaly dislay just the team members email addresses, and another column indicating role if available (not all have that listed).
I have no issues with importing, dislaying in grid view, or returning the selected member info to the script - it is just narrowing what is displayed.
An example is (sorry about the text layout - didn't see a table option):
_______________________________________________________
Department |User ID |Email
_______________________________________________________
Service Desk | |
_______________________________________________________
Team 1 | |
_______________________________________________________
|Member 1 |Member 1 email
_______________________________________________________
|Member 2 |Member 2 email
_______________________________________________________
| |
_______________________________________________________
Team 2 | |
_______________________________________________________
|Member 4 |Member 4 email
_______________________________________________________
|Member 5 |Member 5 email
_______________________________________________________
The code to select a person looks like this at the moment, but you still have to search the whole index. Oh and it looks like I forgot this at the start - I am using powershell 3.0
$userList = Import-Csv 'E:\users.csv'
$TeamLead = $userlist | Out-GridView -OutputMode Single
$Teamleademail = $teamlead.email
Basically I am looking for a way to select the group of rows following the department (say everything from Service desk to HR), and then further narrow it by teams (selecting all the rows between team 1 and 2), and then displaying just that section in the grid view.
I know the filtering would be somewhere between '$TeamLead = $userlist' and 'Out-GridView -OutputMode Single', but I cant think of a way to select the rows with empty department column information.
Thanks for any assistance with this.

merging rows in postgres with matching fields

I have a table format that appears in this type of format:
email | interest | major | employed |inserttime
jake#example.com | soccer | | true | 12:00
jake#example.com | | CS | true | 12:01
Essentially, this is a survey application and users sometimes hit the back button to add new fields. I later changed the INSERT logic to UPSERT so it just updated the row where email=currentUsersEmail , however for the data inserted prior to this code change there are many duplicate entries for single users. i have tried some group by's with no luck, as it continually says the
ID column must appear in the GROUP BY clause or be used in an
aggregate function.
Certainly there will be edge cases where there may be clashing data, in this case maybe user entered true for the employed column and then in the second he/she could have enter false. For now I am not going to take this into account yet.
I simply want to merge or flatten these values into a single row, in this case it would look like:
email | interest | major | employed |inserttime
jake#example.com | soccer | CS | true | 12:01
I am guessing I would take the most recent inserttime. I have been writing the web application in scala/play, but for this task i think probably using a language like python might be easier if i cannot do it directly through psql.
You can GROUP BY and flatten using MAX():
SELECT email, MAX(interest) AS interest,
MAX(major) AS major,MAX(employed) AS employed,
MAX(inserttime) AS inserttime
FROM your_table
GROUP BY email

SPF: Too Many DNS Lookups, but I Only Count 10?

I'm fairly confident the SPF record is syntactically correct, and that there's only ten DNS lookups. However, I'm still receiving the "too many DNS lookups" error.
Below is the SPF record that I've included.
v=spf1 include:spf.microsoftonline.com include:spf.protection.outlook.com include:spf.mandrillapp.com ~all
All three include other records, and I've included all of them below:
2 Initial TXT and SPF Lookup
1 include:spf.microsoftonline.com
1 include:spf.protection.outlook.com
1 include:spf.mandrillapp.com
1 include:spfa.microsoftonline.com
1 include:spf.frontbridge.com
1 include:_spf-ssg-a.microsoft.com
1 include:spfa.protection.outlook.com
1 include:spfb.protection.outlook.com
----------------------------------------
10 Records
Am I miscounting? Is there a way to consolidate?
You are not counting the contribution of the PTR directives:
ptr:protection.outlook.com
ptr:messaging.microsoft.com
ptr:o365filtering.com
That said, I'm not sure why you're including spf.microsoftonline.com. If you're using Office365 it should only be necessary to include spf.protection.outlook.com. See this link - https://technet.microsoft.com/en-us/library/dn789058%28v=exchg.150%29.aspx