LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-07-2004, 08:48 PM   #1
fur
Member
 
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 godaddy.com and have already registered "NS1.mydomain.com" 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.

Code:
# 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 "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";
};

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

Code:
DOMAIN.com.    IN    SOA    ns1.DOMAIN.com.
webmaster.DOMAIN.com. (
            1055026205
            6H
            1H
            5D
            20M )
DOMAIN.com.        IN    A     IPaddress
www.DOMAIN.com.    IN    CNAME sugoc.com.
ns1.DOMAIN.com.    IN    CNAME sugoc.com.
ns2.DOMAIN.com.    IN    A     IPaddress
DOMAIN.com.        IN    NS    ns1.DOMAIN.com.
DOMAIN.com.        IN    NS    ns2.DOMAIN.com.
mail.DOMAIN.com.   IN    MX    1 DOMAIN.com

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?

thanks

Last edited by fur; 03-17-2006 at 11:59 AM.
 
Old 04-08-2004, 02:43 AM   #2
maxut
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 66.199.228.108
sometimes it takes 1-2 days. u can check your named if it is working correctly with "dig" command. like this :
dig any sugoc.com

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 212.58.4.2 // i change the nameserver to 212.58.4.2
Default server: 212.58.4.2
Address: 212.58.4.2#53
> sugoc.com
Server: 212.58.4.2
Address: 212.58.4.2#53

Non-authoritative answer:
sugoc.com nameserver = park11.secureserver.net.
sugoc.com nameserver = park12.secureserver.net.

Authoritative answers can be found from:
sugoc.com nameserver = park11.secureserver.net.
sugoc.com nameserver = park12.secureserver.net.
park11.secureserver.net internet address = 64.202.165.115
park12.secureserver.net internet address = 64.202.167.154
>

as u see u sugoc.com didnt redirect to your ip.


as i remeber reverse zone config in named.conf must be like this:
zone "228.199.66.in-addr.arpa" {
type master;
file "/etc/bind/db.reverse";
 
Old 04-08-2004, 07:45 PM   #3
fur
Member
 
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....
Code:
 
NS1.DOMAIN.COM
IPaddress

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 NS1.DOMAIN.com: NXDOMAIN



Server: ns.sips.state.nc.us
Address: 149.168.11.11#53

** server can't find ns1.DOMAIN.com: NXDOMAIN

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


Reply


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 domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 06:20 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. 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


All times are GMT -5. The time now is 11:27 AM.

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