Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th February 2008, 22:41
zenny zenny is offline
Senior Member
 
Join Date: Nov 2006
Posts: 178
Thanks: 21
Thanked 7 Times in 7 Posts
Question How to create a DNS server for requests coming from external locations (internet)?

If I have two static public IP addresses (in different locations), how can I create create a DNS server for requests coming from external locations (internet)?

I am just wondering if that is possible so that I do not have to rely on the other DNS service providers to host my own domain in my server (hosted at home)?

It would be wonderful if there is any tutorials like other Howtoforge articles by Falko and Tim. Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 6th February 2008, 09:15
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
Default

Quote:
Originally Posted by zenny
If I have two static public IP addresses (in different locations), how can I create create a DNS server for requests coming from external locations (internet)?

I am just wondering if that is possible so that I do not have to rely on the other DNS service providers to host my own domain in my server (hosted at home)?

It would be wonderful if there is any tutorials like other Howtoforge articles by Falko and Tim. Thanks!
This is easy to do just install bind at both locations and create the zone file on the master and get the slave to transfer the zone and then setup the pointers with you registry.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
zenny (6th February 2008)
  #3  
Old 6th February 2008, 09:42
zenny zenny is offline
Senior Member
 
Join Date: Nov 2006
Posts: 178
Thanks: 21
Thanked 7 Times in 7 Posts
Exclamation

Quote:
This is easy to do just install bind at both locations and create the zone file on the master and get the slave to transfer the zone and then setup the pointers with you registry.
Thanks topdog. Since I am new to the DNS regime, could you just explain or point to any tutorial on master and slave zone configurations for such an arrangement to work?

Thanks again!
Reply With Quote
  #4  
Old 6th February 2008, 10:04
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 154 Times in 151 Posts
 
Default

I dont know of a howto that describes setting up both the slave and master. but i will give you pointers here

on the master edit /etc/named.conf and add

Code:
zone "example.com" {
  type master;
  file "example.com.zone";
  allow-transfer { ip_address_of_slave; };
};
Then create the zone file /var/named/example.com.zone and add this
Code:
$ttl 38400
@       IN      SOA     ns1.example.com. root.ns1.example.com. (
                        2008020600
                        10800
                        3600
                        604800
                        38400 )
@       IN      NS      ns1.example.com.
@       IN      NS      ns2.example.com.
ns1     IN A dnsmasterip
ns2     IN A dnsslaveip
example.com.  IN      A    serverip
www      IN      A      serverip
Then on the slave edit /etc/named.conf and add this
Code:
zone "example.com" {
  type slave;
  masters { masterip; };
  file "slaves/example.com.zone";
};
Reload servers on both sides and verify that the zone transfer is working and that you can query the names on the servers

Then go to your register and request them to change the whois information to point to your two new dns servers.

Thats it.

NOTE: if you are using bind-chrooted which is the default on Centos then the files will be located in /var/named/chroot/
NOTE: This is not a copy and paste description please look through and make the changes to reflect your environment like ip addresses and domain names.

And there are howtos on doing this with ispconfig here.
http://www.howtoforge.com/ispconfig_...domain_schlund
http://www.howtoforge.com/ispconfig_dns_godaddy
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.

Last edited by topdog; 6th February 2008 at 10:11.
Reply With Quote
Reply

Bookmarks

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
subdomain and mail relay configuration aranthorn Installation/Configuration 24 3rd September 2007 23:53
No SPF record. beryl Installation/Configuration 6 17th May 2007 20:52
ispconfig and external primary DNS FredZ Installation/Configuration 4 9th October 2006 15:50
DNS Server questions BlueStream Server Operation 2 18th October 2005 19:47
Server can't "see" the internet Luciano Installation/Configuration 8 23rd August 2005 00:22


All times are GMT +2. The time now is 08:56.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.