DataExperts / Dexih.Dns

Dns wildcard mapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dexih.Dns

Dns wildcard mapper

Ubuntu Install

Copy the build files to home directory and unzip.

wget sudo apt-get refresh sudo apt-get install unzip unzip

Update the config file "dexih.dns.service":

[Unit]
Description=Dexih Dns Service

[Service]
WorkingDirectory=/home/dexih
ExecStart=/home/dexih/Dexih.Dns
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
SyslogIdentifier=dexih.dns.
User=root
# the IP address for the web server to resolve at dexih.com
Environment=AppSettings__RootIpAddress=13.59.37.106
Environment=AppSettings__RootDomain=dexih.com

# the Ip address of each dns server 
Environment=AppSettings__DnsIpAddresses__0=18.188.63.154

Environment=AppSettings__DnsEmail=gholland.dataexpertsgroup.com
Environment=AppSettings__DnsTtl=300
Environment=AppSettings__DnsTxtUrl=https://dexih.dataexpertsgroup.com/api/Remote/GetTxtRecords
Environment=Logging__LogRequests=TRUE
Environment=Logging__LogErrors=TRUE

[Install]
WantedBy=multi-user.target

Configure the existing DNS

sudo systemctl stop systemd-resolved

edit /etc/systemd/resolved.conf

[Resolve]
DNS=8.8.8.8
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#Cache=yes
DNSStubListener=no
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
sudo systemctl start systemd-resolved

Add DNS Service

./create_service.sh
./start_service.sh

Check logs

./log.sh 100

Check Working

Use the dns checker:

https://dnschecker.org/#A/7-7-7-7.abc.dexih.com

About

Dns wildcard mapper

License:MIT License


Languages

Language:C# 92.4%Language:Shell 5.3%Language:Dockerfile 2.2%