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

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 123.123.123.123, in a master zone.

ADDRESS RECORD:

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

NAME SERVER:

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

NAME ALIAS:

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

MAIL SERVER:

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

CONFIG FILES:

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

/etc/bind/named.conf

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

/etc/bind/named.conf.options

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

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

forwarders {
    123.123.123.123;
};

/etc/bind/named.conf.local

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";
};

/etc/bind/named.conf.default-zones

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 123.123.123.123, 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

 
discard

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

Browse other questions tagged or ask your own question.