Not recommended – but if you have to then it works and this is how you do it:
(eg: you could host some dns entries for a domain that doesn’t exist in plesk)
add this code to the /etc/named.conf file:
zone "yoursitename.com" { type master; file "yoursitename.com"; allow-transfer { 12.34.56.78; common-allow-transfer; }; };
create a new file called /var/named/run-root/var/yoursitename.com that contains this code:
; *** This file is generated by me! *** $TTL 86400
@ IN SOA yourserverhostname.com. youremailname.youremailhost.com. ( 1304486437 ; Serial 10800 ; Refresh 3600 ; Retry 604800 ; Expire 10800 ) ; Minimum
yoursitename.com. IN NS ns1.somethingvalid.com. yoursitename.com. IN NS ns2.somethingvalid.com. yoursitename.com. IN A 12.34.56.78 www.yoursitename.com. IN CNAME yoursitename.com. yoursitename.com. IN TXT "v=spf1 a mx -all"
then restart bind, like
sudo service bind9 restart