Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-07-2004, 08:48 PM   #1
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Rep: Reputation: 35
Setting up a domain host with bind.

I am trying to setup bind so that is will be a name server for a domain that I have. I got the domain though and have already registered "" to point to the IP address of my server though them.

I'm setting up bind now on a test computer to try to get a better understanding of it. I guess I'm just wondering if what I have setup now will work, so that I can install bind on the actual server.

Here is my current /etc/bind/named.conf file.

# Primary Configuration file for BIND

options {
        directory "/var/cache/bind";
        version "Nothing to see here";

        auth-nxdomain no;    # conform to RFC1035


// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

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

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

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

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

zone "" {
        type master;
        file "/etc/bind/db.DOMAIN";
Here is the /etc/bind/db.DOMAIN file..

Code:    IN    SOA (
            20M )        IN    A     IPaddress    IN    CNAME    IN    CNAME    IN    A     IPaddress        IN    NS        IN    NS   IN    MX    1

The named daemon is running, and starts with no errors.

Is the way I set this up even correct, and is there a way to test it?


Last edited by fur; 03-17-2006 at 11:59 AM.
Old 04-08-2004, 02:43 AM   #2
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
u must wait for other naservers learn that your nameserver is located at
sometimes it takes 1-2 days. u can check your named if it is working correctly with "dig" command. like this :
dig any

also u can try "nslookup". like this:
[mesut@linux mesut]$ nslookup
Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
> set q=any
> server // i change the nameserver to
Default server:

Non-authoritative answer: nameserver = nameserver =

Authoritative answers can be found from: nameserver = nameserver = internet address = internet address =

as u see u didnt redirect to your ip.

as i remeber reverse zone config in named.conf must be like this:
zone "" {
type master;
file "/etc/bind/db.reverse";
Old 04-08-2004, 07:45 PM   #3
Registered: Dec 2003
Distribution: Debian, FreeBSD
Posts: 310

Original Poster
Rep: Reputation: 35
I sent the registration for NS1.DOMAIN.COM to point to my IP address at godaddy on Tue, 6 Apr 2004 13:38:28 -0700. And the next day their website reflected this....

Does that mean that this part of the registration process is done?

If so shouldn't this resolve even If I dont have bind setup on my server yet?

Server: IPaddress
Address: IPaddress#53

** server can't find NXDOMAIN


** server can't find NXDOMAIN

Last edited by fur; 03-17-2006 at 11:57 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bind - Why won't my LAN domain work? jimieee Linux - Networking 1 05-09-2005 12:07 PM
Cant get entry in bind to work with instead of pxes351 Linux - Networking 12 05-09-2005 06:20 AM
Sendmail sending as, i want it to be from just PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
Registered domain, need help setting up BIND 9 on Redhat 9 ASP Linux - Networking 7 04-15-2004 04:02 PM
BIND 9 won't reslove host names jglazner Linux - Networking 4 02-23-2004 06:42 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:33 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration