Coder Social home page Coder Social logo

ovh-text-to-dns-bind-file's Introduction

Convert OVH text to DNS bind file

Put your ovh text into input.txt and add your domain name as the first line. Example:

my-domain.example
$TTL 3600
@	IN SOA dns16.ovh.net. tech.ovh.net. (2023100600 86400 3600 3600000 60)
                          IN NS     ns16.ovh.net.
                          IN NS     dns16.ovh.net.
                          IN MX     1 mail.my-domain.example.
                       60 IN A      1.2.3.4
                      600 IN TXT    "v=spf1 include:mail.my-domain.example ~all"
                          IN TXT    "1|www.my-domain.example"
_autodiscover._tcp        IN SRV    0 0 443 mail.my-domain.example.
_dmarc                    IN TXT    "v=DMARC1; p=quarantine; sp=quarantine"
_imaps._tcp               IN SRV    0 0 993 mail.my-domain.example.
api                    60 IN A      1.2.3.4
autoconfig                IN CNAME  mail.my-domain.example.

Execute node convert.js and you get a DNS bind file with your domain name (my-domain.example.bind):

;NS records
my-domain.example.	IN	5m	NS	ns16.ovh.net.
my-domain.example.	IN	5m	NS	dns16.ovh.net.

;MX records
my-domain.example.	IN	5m	MX	1 mail.my-domain.example.

;A records
my-domain.example.	IN	5m	A	1.2.3.4
api.my-domain.example.	IN	5m	A	1.2.3.4

;TXT records
my-domain.example.	IN	5m	TXT	"v=spf1 include:mail.my-domain.example ~all"
my-domain.example.	IN	5m	TXT	"1|www.my-domain.example"
_dmarc.my-domain.example.	IN	5m	TXT	"v=DMARC1; p=quarantine; sp=quarantine"

;SRV records
_autodiscover._tcp.my-domain.example.	IN	5m	SRV	0 0 443 mail.my-domain.example.
_imaps._tcp.my-domain.example.	IN	5m	SRV	0 0 993 mail.my-domain.example.

;CNAME records
autoconfig.my-domain.example.	IN	5m	CNAME	mail.my-domain.example.

ovh-text-to-dns-bind-file's People

Contributors

derpierre65 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.