Hardware: Raspberry Pi 4 at home YunoHost version: 4.3.6.3 I have access to my server : Through SSH | through the webadmin | Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no /
Description of my issue
I would like to use the full younohost project scope including the mail server.
Consequently I changed my ISP (Vodafone Germany) contract to a business one with fixed ipv4 and ipv6.
Now vodafone requires for validation purposes to place a txt-record on a subdomain.
As I am new to self hosting I have no idea where to place that record on my younohost.
The German forum gives a solution here.:
In the internal area Vodafone gives me the following guidance:
" FĂŒr Deine IPv4 Adresse kannst Du hier einen Hostnamen eintragen.
Bitte gib einen Full Qualified Domain Name (FQDN) fĂŒr Deinen Host ein. Der FQDN ist eine Kombination aus GerĂ€tenamen und Deinem Domainnamen.
Der GerĂ€tename und der Domainname werden mit â.â verbunden zum Beispiel: âmeinhost.meinedomain.deâ.
Wenn Du dieses Feld leer lÀsst, wird ein evtl. vorhandener Eintrag gelöscht!
Du musst Dich als Inhaber Deiner Domain authentifizieren, wenn Du den DNS Eintrag einrichten oder Ă€ndern möchtest. Bitte erstell dazu mit dem folgenden TXT Record String ein TXT Resource Record. Mit dem Speichern wird die PrĂŒfung angestoĂen. Diese kann mehrere Tage benötigen."
Google Translate this into English:
âYou can enter a host name for your IPv4 address here.
Please enter a Full Qualified Domain Name (FQDN) for your host. The FQDN is a combination of the device name and your domain name.
The device name and domain name are prefixed with â.â connected for example: âmeinhost.meindomain.deâ.
If you leave this field empty, any existing entry will be deleted!
You must authenticate yourself as the owner of your domain if you want to set up or change the DNS record. Please create a TXT Resource Record with the following TXT Record String. The check is triggered when you save. This can take several days.â
I donât think that you can do it with the domains provided by yunohost.
You may have to register for a new domain name and use it to be able to add txt records.
Depends on where you live and what registrar providers you have. There is a list of providers that yunohost can handle directly.
Personally, Iâm using two domains and a subdomain from a local domain provider and since I have a dynamic ip, I used freedns from namecheap to update it. Reverse dns requires a fixed ip, so I couldnât configure it.
Iâm not sure if I follow. If you want to host your own mail, that mail needs an address like rudi@rudihost.de or whatever your email is. You feed to register that domain and point its dns settings to your ip. In the same place where you can do this you will be able to add a txt record.
Also, when you add this domain to yunohost it will start telling you what you need to correct in those records. Be ready to open ports from your modem and once everything is working start requests to be removed from spam lists. Because your ip might be on them by default.
i am using the domain from younohost XXX.nohost.me so my mailadress looks like rudi@XXX.nohost.me.
I can remove myself from spam lists everything ok.
My Question ist how to add a txt record to the younohost domain.
Iâd donât know if that is possible. But I also donât understand why Vodafone wants to verify your domain if you already have your own ip and your own server. So maybe ask someone else.
I would, because it is more convenient and pleasing to eye, get a personal domain name.
To solve all this problems with mail servers blacklist etc. I have used a VPS to host my IP via a VPN. This has been really solid for almost a year now.
See - Homemade WireGuard VPN on a VPS server
If i understand vodafone wants to check you own the domain on which you want to add the reverse DNS before to configure this reverse DNS.
So they ask you to add a txt record to give a proof that you own this domain.
In general, people doesnât have to do this process in order to add a reverse DNS. I think other ISP/Server providers simply do a dig A DOMAIN to check the validity of the request. Vodafone seems to have a new/other process.
The problem is noho.st, nost.me and ynh.fr are free domain and we restrict which entry could be added (to avoid different kind of abuse).
Itâs the default DNS configuration provided by a yunohost instance.
TXT records are authorized on XXX.nohost.me , so in this case you could succeed to send this DNS configuration. You wonât be able to do it if the TXT record should be added on a subsubdomain like YYY.XXX.nohost.me
If you are in the first case, in order to send your record, you should do like this:
create a file /etc/yunohost/hooks.d/custom_dns_rules/01-vodafone
edit it and copy this script
#!/bin/bash
echo "[{'type': 'TXT', 'name': '.', 'value': 'THE VALUE ASK BY VODAFONE', 'ttl': 3600}]"
You should try to update your dns conf:
yunohost dyndns update
After 5 minutes, check if the TXT record has been correctly added:
Yes you understood me correctly, Vodafone wants to check if I âownâ the domain.
So just to doublecheck that I understood your reply correctly:
i am able to add a txt record on the XXX.nohost.me but not on a subdomain YY.XXX.nohost.me right?
â Proceed with the three steps you described (as I am pretty fresh with Linux I will need here additional support e.g. I do not know how to create and edit a file) to add the txt record to XXX.nohst.me and cross my fingers that Vodafone accepts it.
â If that does not work I have to buy a domain with full access on the DNS config right?
Adapt my small script with the good value ask by vodafone.
Yes indeed.
You can also try to find a free domain like netlib.re (you have full control on netlib.re DNS zone). However keep in ming that netlib.re is owned and managed by a unique person.
Here are my results:
I guess it did not work root@ndw:~#
root@ndw:~# mkdir -p /etc/yunohost/hooks.d/custom_dns_rules/
root@ndw:~# nano /etc/yunohost/hooks.d/custom_dns_rules/01-vodafone
root@ndw:~#
root@ndw:~# yunohost dyndns update
Info: No updated needed.