Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I currently have a VPS and two domains (.com/.net) at an external registrar. My registrar does have DNS controls. I have a forwarded email (on my .net) through my registrar. I have installed and used webmin to help me set up BIND. Right now I'm not able to get the domains to work.

Here are my BIND settings, pretending my domain is mydomain.net and my server ip is, in a master zone.


mydomain.net. 3600
ns1.mydomain.net. 3600
ns2.mydomain.net. 3600


mydomain.net. Default ns1.mydomain.net.
mydomain.net. Default ns2.mydomain.net.


www.mydomain.net. Default mydomain.net.
www.mydomain.com. Default mydomain.com.
mail.mydomain.net 3600 mx.domain.provided.by.registrar.com.


mydomain.net. 3600 0 mx.domain.provided.by.registrar.com.


I do have an error: /etc/bind/named.conf.options:21: unknown option 'forwarders'


include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";


options {
    directory "/var/cache/bind";

    auth-nxdomain no;    # conform to RFC1035
    listen-on-v6 { any; };

forwarders {;


zone "0.168.192.in-addr.arpa" {
     type master;
     file "/etc/bind/zones/rev.0.168.192.in-addr.arpa";
zone "mydomain.net" {
     type master;
     file "/var/lib/bind/mydomain.net.hosts";


zone "." {
    type hint;
    file "/etc/bind/db.root";

zone "localhost" {
    type master;
    file "/etc/bind/db.local";

zone "127.in-addr.arpa" {
    type master;
    file "/etc/bind/db.127";

zone "0.in-addr.arpa" {
    type master;
    file "/etc/bind/db.0";

zone "255.in-addr.arpa" {
    type master;
    file "/etc/bind/db.255";

On my registrar, I've set up a glue record linking both ns1 and ns2.mydomain.net to, and applied ns1 and ns2.mydomain.net as the nameservers of mydomain.com and mydomain.net

Also, my VPS has a web panel which supplies me with IPv4, IPv6 and reverse DNS for them, which I did not modify or use.

Am I missing any information? Thanks a lot.. I spent a lot of time on this and I'm afraid I can't get this to work by myself. At the same time, is it even possible to use my registrar's DNS service if I have a forwarded email with them? Or maybe I should be using my registrar's DNS service?

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.