d725 Not sure how to Bind my domain name - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old August 4th, 2012, 10:27
octavian7896 octavian7896 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default Not sure how to Bind my domain name

Hello, Ive recently purchased a domain name and am trying to configure named(8), Ive read through the manual and am just not quite sure what to do. Any help is appreciated!
Reply With Quote
  #2  
Old August 7th, 2012, 20:50
matto25 matto25 is offline
Junior Member
 
Join Date: Mar 2011
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi octavian,

Have you done anything yet? or you've tried and it's not working? Surely after reading you should have attempted to create the zone files and configure BIND on your server? If so please provide the error.
Reply With Quote
  #3  
Old August 8th, 2012, 07:55
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

There are a zillion and one tutorials on the internet covering BIND. What exactly are you having problems with?
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #4  
Old August 9th, 2012, 22:28
octavian7896 octavian7896 is offline
Junior Member
 
Join Date: Jul 2012
Posts: 3
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
//
// Refer to the named.conf(5) and named(8) man pages, and the documentation
// in /usr/share/doc/bind9 for more details.
//

options {
        // All file and path names are relative to the chroot directory,
        // if any, and should be fully qualified.
        directory       "/etc/namedb/working";
        pid-file        "/var/run/named/pid";
        dump-file       "/var/dump/named_dump.db";
        statistics-file "/var/stats/named.stats";
        listen-on       { 10.0.0.50; 127.0.0.1; };
        // query-source address * port NNNNN;

        forwarders {
                8.8.8.8;
        };


};

// Internal View
view "internal" {
  match-clients { 10.0.0.0/24; 127.0.0.1; }; // LOCAL NETWORK
        zone "." { type hint; file "/etc/namedb/named.root"; };

        zone "1.168.192.in-addr.arpa" {
                type master;
                file "/etc/namedb/working/internal/1.168.192.in-addr.arpa";
        };
        zone "splintercomm.net" {
                type master;
                file "/etc/namedb/working/internal/splintercomm.net";
        };
};
This is what I have so far. Im not even sure how to know if its working.

Last edited by SirDice; August 10th, 2012 at 07:57. Reason: Read about formatting tags: http://forums.freebsd.org/misc.php?do=bbcode
Reply With Quote
The Following User Says Thank You to octavian7896 For This Useful Post:
marry1 (August 10th, 2012)
  #5  
Old August 9th, 2012, 22:37
kpa kpa is offline
Giant Locked
 
Join Date: Jul 2010
Location: People's Technocratic Republic of Finland
Posts: 2,007
Thanks: 44
Thanked 466 Times in 396 Posts
Default

Post your zone files as well, blank out any sensitive information if you must.

Does this return a NOERROR status and the SOA record of the zone?

# dig @127.0.0.1 splintercomm.net SOA


I would move the zone files to /etc/namedb/master, the working directory is not meant for zone files.
Reply With Quote
  #6  
Old August 10th, 2012, 08:00
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,702
Thanks: 47
Thanked 2,022 Times in 1,861 Posts
Default

At first glance your named.conf looks fine. As kpa mentions move your zone files to /etc/namedb/master. It should still work regardless but that's a better directory for them.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mapping domain hainguyen1402 Web & Network Services 13 May 26th, 2011 11:49
Samba Bind To Domain qwaven Web & Network Services 3 December 14th, 2010 17:55
Need help hosting my domain... romihs Web & Network Services 5 May 3rd, 2010 03:00
If you can have any domain name... ? stevejones Off-Topic 3 February 3rd, 2010 19:49
Bind 9.4.2 on Freebsd 6.3 reverts to Bind 9.3.4 ITFCTECH Web & Network Services 4 November 21st, 2008 17:17


All times are GMT +1. The time now is 02:30.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0