fr:infra:old-infra:reversedns
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| fr:infra:old-infra:reversedns [2019/10/13 15:01] – modification externe 127.0.0.1 | fr:infra:old-infra:reversedns [2022/07/22 13:15] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Reverse DNS ====== | ====== Reverse DNS ====== | ||
| - | # Comment ajouter un PTR record | + | |
| + | ===== Comment ajouter un PTR record | ||
| Il y a un petit script de e-Jim pour ajouter un record PTR (reverse DNS) | Il y a un petit script de e-Jim pour ajouter un record PTR (reverse DNS) | ||
| - | Il peut être appelé, sur la VM web, via la commande suivante: | + | Il peut être appelé, sur la VM VPN, via la commande suivante: |
| ```bash | ```bash | ||
| - | /opt/dyndns/dyndns.sh <ipv4 ou ipv6> <nom de domaine à y assigner> | + | /home/jim/scripts/ |
| ``` | ``` | ||
| - | Pour l' | + | Pour l' |
| Exemple: | Exemple: | ||
| ```bash | ```bash | ||
| - | /opt/dyndns/dyndns.sh 80.67.181.163 brique.e-jim.be 172.31.1.253 | + | /home/jim/scripts/ |
| ``` | ``` | ||
| Ligne 28: | Ligne 30: | ||
| [1] C'est une limitation qui n'est pas obligatoire, | [1] C'est une limitation qui n'est pas obligatoire, | ||
| - | |||
| - | # How to add a PTR record | ||
| - | |||
| - | There is a small script that | ||
| - | updates the reverse record for a given ip address. | ||
| - | |||
| - | It can be called on the web VM as | ||
| - | |||
| - | ```bash | ||
| - | / | ||
| - | <domain name> <DNS server to be updated> | ||
| - | ``` | ||
| - | |||
| - | For the moment, the DNS server is 172.31.1.253 (I just set up this | ||
| - | argument for more modularity in the future). | ||
| - | |||
| - | It can have those different return codes: | ||
| - | |||
| - | - 0 - All went fine, thank you. | ||
| - | - 1 - First argument is not a valid IP (either v4 or v6) | ||
| - | - 2 - Second argument is not a valid domain name | ||
| - | - 3 - The third argument is not a valid DNS server name or IP | ||
| - | - 4 - The chosen domain name doesn' | ||
| - | - 5 - nsupdate (the tool used behind) returned an error. | ||
| - | - 33 - There are less or more than 3 arguments | ||
| - | |||
| - | Most of the time, more info can be found in the stdout. | ||
| - | |||
| - | I hope this can help someone implement reverse DNS into ISPng (including | ||
| - | the needed verification that the user has administrative rights on the IP). | ||
fr/infra/old-infra/reversedns.1570971669.txt.gz · Dernière modification : de 127.0.0.1
