FreeBSD DJBDNS: Tinydns Add Additional Domain Names

How do I add additional domains names such as cyberciti.com and nixcraft.com to my existing tinydns servers ns1.nixcraft.in and ns2.nixcraft.in?

You can add additional domains to the same data config file as follows.

Open /var/ns1.nixcraft.in/root/data file, enter:
# vi /var/ns1.nixcraft.in/root/data
Append cyberciti.com and nixcraft.com as follows:

##########################
# cyberciti.com zone
##########################
.cyberciti.com::ns1.nixcraft.in
.cyberciti.com::ns2.nixcraft.in
#define mx for cyberciti.com
@cyberciti.com::mail01.nixcraft.in:10
@cyberciti.com::mail02.nixcraft.in:20
#define A and www for cybercit.com
+cyberciti.com:74.86.48.99
+www.cyberciti.com:74.86.48.99


##########################
# nixcraft zone
##########################
.nixcraft.com::ns1.nixcraft.in
.nixcraft.com::ns2.nixcraft.in
#define mx for cyberciti.com
@nixcraft.com::mail01.nixcraft.in:10
@nixcraft.com::mail02.nixcraft.in:20
#define A and www for cybercit.com
+nixcraft.com:75.126.168.152
+nixcraft.com:75.126.168.152

Save and close the file. cd to /var/ns1.nixcraft.in/root and run “make”. This compiles the data.cdb which tinydns reads:
# cd /var/ns1.nixcraft.in/root
# make

Again test newly added domain using host or other tools:
# host www.cyberciti.com
OR
# dnsip nixcraft.com


🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one


CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • giannino Jun 9, 2011 @ 4:53

    How about a “catchall” or “blackhole” TinyDNS configuration?
    I mean something that with BIND is done by definining the “.” zone as master and adding a wildcard “*” record in the zone file.
    Useful for parking domain services, the catchall DNS should respond authoritative for any request.
    There are existing examples online, try for example:

    dig PutAnythingHere.WhatEverExtYouLike @ns1.fastpark.net ANY

    As you see, it assumes it is authoritative for anything you query.
    Any ideas?
    Thank you
    gian

  • john Jun 27, 2011 @ 19:21

    This is new domain for webserver?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum