Error with BIND using 2 dedicated nameservers

I am having trouble setting up BIND, I am not sure how to set up my zones with the type of network topology I must use.

I am setting up a new webserver (containing multiple websites) for company: acme123.com. They have given me a server that has the following name: web1.acme123.com.

My previous experience was with WHM/CPanel and the recipe I followed was to create 2 nameservers and have them registered with my provider. I created addon domains for each website and it all worked fine.

I have found many guides setting up nameservers with webmin but none that reflect my context. I have 2 ip addresses available for my nameservers, but I am not sure which records need to be created and which steps to follow. Also, (I’m guessing) my nameservers will have 4 parts to the domain: ns1.web1.acme123.com…is this ok?

Edit: I have 3 network cards, each has been assigned its own static ip.

Could someone pls help me out?

Howdy,

You should be able to follow a similar recipe for setting up your nameserver.

There’s documentation for setting that up here in the section “How do I setup nameservers for my server”:

https://www.virtualmin.com/documentation/dns/faq

Thanks for responding so quickly.

I did find that article, but my context is a little different; I have not created a virtual server for the host (ie: I cannot choose web1.acme123.com domain in Virtualmin to get to the Server Configuration. However, I have other virtual servers that I can choose and follow your instructions. However, I suspect you want me to create the A-records for the name servers under the host’s zone…?

Or can I simply go through webmin and create a master zone for each nameserver and add an A-record there?

…or do I have to create the A-records for both name servers under EACH virtual host?

thanks again

I created a virtual server for the host and followed the article’s instructions.

I added ns1(+ns2).web1.acme123.com as NS records.

When I attempted to add ns1.web1.acme123.com at GoDaddy it gives me an error “Invalid TLD.” Same thing if I try to add the associated IP instead.

Also, assuming GoDaddy had accepted the entry, how do my name servers get published in the first place? The only information out there about them is the domain name entry at GoDaddy. My BIND server is up but how does anyone know to come and query it? Do I have to ask my provider to register my name servers with theirs?

Any help would be appreciated, I’m really not sure what to try next.

Howdy,

You shouldn’t have to do anything that’s not in the “How do I setup nameservers for my server” document above.

Once you add it to GoDaddy, and setup the DNS records described in that document, you should be good to go.

Regarding GoDaddy – if they aren’t accepting the name you’re providing, that may mean you need to use a name like “ns1.acme123.com”. It may not like the longer name of “ns1.web.acme123.com”.

If you haven’t already, you may want to take a peek at the GoDaddy instructions (link provided in the “How do I setup nameservers for my server” document), which explain the process of registering your server as a nameserver with GoDaddy.

-Eric

“Once you add it to GoDaddy, and setup the DNS records described in that document, you should be good to go.”

How?

At this point in the process no one knows the IP address of my nameservers. The only information about them is their domain text entry at GoDaddy. At this point the world can learn the domain name of my nameservers but I have not told anyone what the IP addresses are.

There is some information missing from that article. It may work for most people but it leaves some information out, there are some mechanisms taking place that the article does not cover.

To reiterate:

  1. I create name servers locally (text names associated to IP addresses).
  2. I choose a domain I own at GoDaddy and enter my recently created nameservers.
  3. Everything should work…
  4. Who knows what the IP addresses are for my nameservers? I haven’t told anyone yet, I only released what their domain name is.

Who do I have to tell to query my BIND server in order to publish the zones I manage?

Sorry for all the questions, but I usually try to understand everything before putting it into production…it makes debugging a little less stressful when you have 30 clients calling you at the same time when a production problem occurs.

Thanks again

At this point in the process no one knows the IP address of my nameservers. The only information about them is their domain text entry at GoDaddy. At this point the world can learn the domain name of my nameservers but I have not told anyone what the IP addresses are.

Hmm, are you sure you’re reading the GoDaddy instructions linked in the article?

The instructions are titled “Registering Your Own Nameservers/Hosts”.

They describe the process of registering nameservers with GoDaddy, which is what allows you to setup your server as a nameserver. That’s how folks will get your IP address(es).

It’s not the normal process of adding nameservers to a domain – it’s a different process, of giving GoDaddy an IP address and domain combination… a process of registering those that will later allow domains to use it as a nameserver.

No domain can use your server as a nameserver, until you’ve registered your server as a nameserver using those GoDaddy instructions.

-Eric

Thanks, it is all working. You were right, I hadn’t read the article - I assumed it explained how to add nameservers for you domain resolution (like 99% of content returned from these search terms).

My DNS manager (DNSMadeEasy) said they didn’t know how to register nameservers…so I simply used GoDaddy’s DNS manager for now.

Thanks for your help.