Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to configure name server on Ubuntu just for learning. I have followed this tutorial. After configuring bind9 I have restarted it and works well. I have no registered domain name and public IP, so I have used a random domain name(khalidiitdu.com) that is not registered. When I dig khalidiitdu.com, it shows status: NXDOMAIN. If I use nslookup command, it shows ** server can't find khalidiitdu.com: NXDOMAIN. Now question is:

  1. Is registered domain mandatory to configure bind9 within a LAN?

If not please suggest me alternative ways.

Thanks.....

share|improve this question
add comment

1 Answer

It depends on what you are trying to achieve.

If you are only trying to experiment with DNS and set it up on an internal network, then no, you don't need a registered domain name. From the sounds of what you have described, you are experimenting with this.

I would suggest as a first thing to try, that you go ahead and run the commands:

yourlogin@yourcomputer:~$nslookup
> server ipofyourdnsserver
Default server: ipofyourdnsserver
Address: ipofyourdnsserver

From this point you can check your A records and PTRs by typing youripaddress and computer.domain.com respectively.

The information in your /etc/resolv.conf - should have an entry similar to this:

nameserver ipofyourdnsserver

This is what your machine uses to find the default DNS server.

If you are receiving address by DHCP, then whatever is providing DHCP needs to be configured to point computers it assigns an IP address to needs to also give the IP address of your internal DNS server. Before doing this, I'd be sure that external DNS resolves correctly by using nslookup and checking a site such as www.google.com.

Other than this little bit of help, if you are still having problems a better idea of what you are trying to accomplish would help you find a better solution.

The company I work for has several branch offices connected over VPN tunnels. We use internal DNS for intranet websites and various services such as Active Directory. Our external DNS is actually hosted with an online provider. There are lots of options depending on what you want to achieve.

Other than that, I guess you really need to clarify your overall intent of what you are trying to do.

share|improve this answer
    
thans JTWOOD, I am just experimenting. I am a student, not a system admin. I am interested in learning computer networking and SF helps me. –  Jerry Mar 20 '12 at 12:04
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.