How to have wildcard RR and DNS acme challenge at the same time? - bind9

I'm trying to have wildcard RR in bind:
*.foo 10 IN A 1.2.3.4
At the same time I'm trying to add _acme-challenge TXT record:
_acme-challenge.b.foo IN TXT "example"
And it does not work. As soon as I have _acme-challenge.b.foo in domain file, b.foo.example.com stop resolving.
Is it possible to make them both to work? How to do it?

Related

Setting hostname of a Surge CNAME record to # on GoDaddy

I'm trying to deploy my portfolio to my domain www.dillonbartkus.com with Surge.
The instructions are as follows:
I'm using a GoDaddy domain that I bought through Google Suite.
In the picture it shows a CNAME record with a hostname of www and # and a value of na-west1.surge.sh. When I try to do this in my DNS records, I can do the CNAME with www for the name, but when I try to do the # I get an error that says 'Enter your host name as "#", "sub-domain" '.
I have tried all different syntax for this, but it won't go through.
How do I add / edit the other to include # ?
You must delete all A & CNAME records on GoDaddy first, then follow the Surge documentation. GoDaddy only allows a CNAME www record to be added, not #.
The documentation states you should replace the CNAME # (apex domain) record with an A # record using Surge's IP.
Thus, on GoDaddy you must delete all existing A & CNAME records and add the following two records following a Type : Name : Value format:
CNAME: www : na-west1.surge.sh
A : # : 45.55.110.124
This had my domain resolving within 5 minutes.
https://www.godaddy.com/community/Managing-Domains/domain-DNS-with-surge-sh/td-p/24075

Cpanel Yandex MX Error

I want to transfer my e-mail accounts to Yandex. I use Cpanel at hosting server.
I get an error when adding Yandex mx addresses, "mx.yandex.net." I can't add address with dot. Error says: "It must have a valid TLD tag." I stuck here.
I had the same problem.
I could manage to fix it by deleting all old MX records and adding a new one
Priority: 10
Destination: mx.yandex.net
enter image description here
You also need to add the TXT record
v=spf1 redirect=_spf.yandex.net
enter image description here

Adding a custom domain name with surge.sh

I'm a newbie in domain names, DNS etc.
I'm using surge.sh for deploying my app. Now I want to add a custom domain, that I registered using transIP, and I can't get it working. I set the IP address to 45.55.110.124, as they explain here. All together, I entered the following settings:
Name: *
TTL: 1 min
Type: A
Address: 45.55.110.124
And another one, exactly the same but then using name #:
Name: #
TTL: 1 min
Type: A
Address: 45.55.110.124
I created a test page that contains hello domain, inside a simple html file. Now, I deployed the page by moving to the folder that contains the html file and doing: surge ./ mydomain.io.
I waited over 5 minutes and nothing is changing.
Now, my questions are:
What am I doing wrong?
My domain provider suggests that I also use an IPv6 address, but which one should I use for Surge?
Why is there an option of setting TTL longer than 1 minute, who wants to wait longer before their deploy comes online?
For starters, you want to use the CNAME instead of A record if possible. The reason for this is that their IP address can possibly change out from under you when infrastructure changes / updates / re-deploys. If possible, remove the A records and create CNAME records pointing to na-west1.surge.sh. instead.
Next, assuming that they want you to point to the same IP as na-west1.surge.sh resolves to, that IP is different from the documentation (possible even due to my previous explanation). You can ping the domain or use the host utility to get the current IP address:
$ host na-west1.surge.sh
na-west1.surge.sh has address 138.197.235.123
Armed with this information, try changing to CNAME records first. If this isn't possible, then use the updated IP address that you get from resolving the their CNAME.

Postfix - adding domain + forwarding setting

I have a question as to postfix add a new domain to be able to it to send and receive e-mails?
How to redirect all emails sent to this domain went to an external email address?
Regards,
Darek
Adding a domain will be adding it to mydestination= example.com in main.cf
the second question is called a "catch all"
Mapping is done using /etc/postfix/virtual file.
vim /etc/postfix/virtual
Append code as follows, replacing domain and emailusername with actual values:
#yourdomain.com emailusername
Save and close the file. Run following command:
postmap /etc/postfix/virtual
Also make sure you have following line in /etc/postfix/main.cf file:
virtual_alias_maps = hash:/etc/postfix/virtual
If you just added above, line reload postfix:
service postfix reload

Setting up DKIM for Parse.com

How can I set up DKIM with the DNS record for the domain we use for mails being sent from Parse.com, like registration emails?
Parse has only this one line of instructions:
"Run the following in your terminal: dig +short k1._domainkey.parse.com txt for the most up-to-date DKIM value."
But what next? The output is something like this: "k=rsa\; p=MIGfMA0GCSqGSIb3...44Dyfnzp7zmQIDAQAB".
How does the DNS entry has to look like?
Like this?
k1._domainkey.parse.com IN TXT "k=rsa\; p=MIGfMA0GCSqGSIb3...44Dyfnzp7zmQIDAQAB"
You need to put this on your own DNS. If your domain is company.com, a record like this in your company.com zone file should do it:
k1._domainkey.company.com In TXT "k=rsa\; p=MIGfMA0GCSqGSIb3...44Dyfnzp7zmQIDAQAB"
Just make sure that parse.com will DKIM sign the message with your company.com domain and set d=k1!
According to http://dkimcore.org/c/keycheck, I needed to delete the \ after k=rsa for the key type to be valid.