I'm trying to use Linux Bind9 to set up a DNS server for my Azure VMs in virtual network. I got one web server and one mail server. My goal is making GoDaddy connect to my own DNS server, and redirect to my web and mail servers. But I failed to doing this. Here is my configurations.

My domain: mydomain.com
web server: web.cloudapp.net  IP:
mail server: mail.cloudapp.net  IP:
dns server: dns.cloudapp.net  IP:
**PS**: three servers all in the Azure virtual network.


auto eth0
iface eth0 inet static


/etc/hosts:   dns.mydomain.com  dns

zone "mydomain.com" {
 type master;
 file "/etc/bind/zones/db.mydomain.com";

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

$TTL    604800
@       IN      SOA     dns.mydomain.com. mail.mydoamin.com. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
mydomain.com.   IN      NS      dns.mydomain.com.
mydomain.com.    IN      MX      10      mail.mydoamin.com.
mydomain.com.    IN      A
dns     IN      A
mail      IN      A
www     IN      CNAME   web.cloudapp.net.

$TTL    604800
@     IN      SOA     byc-dev-dns.bringyourchoice.net. byc-dev-em.bringyourchoice.net. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL

        IN      NS      byc-dev-dns.
4       IN      PTR     dns.mydoamin.com.
5       IN      PTR     mail.mydoamin.com.
6       IN      PTR     web.cloudapp.net.

domain      mydomain.com
search      mydomain.com
**PS**: this file will change each time I restart VM.

I've add the public IP address of my dns.cloudapp.net to the NS record in Godaddy.

Can anyone help me with this, and give me some explanations? Thank You.

  • Just curious - are those actually the IP addresses you used? If so then you'll be stuck trying to use them on the public internet because that IP range 10.x.x.x is a private address space that is non-routable from public IP ranges. Additionally, any domain you put here will require it's authoritative name servers to be updated to point to your server (see: serverfault.com/questions/322443/…) – Simon W Feb 1 '15 at 12:37
  • Yes, I'm using these 10s IP address, because these servers are in the same virtual network, I thought I were wrong in this part. @SimonW – technoob Feb 1 '15 at 20:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.