This is a discussion on Ubuntu Linux setup and configure a domain name server - BIND within the Getting started tutorials forums, part of the Linux Getting Started category; Goal setup name server for domain called foo.com. Step # 1: Install BIND First you need to install BIND server. ...
|
|||||||
| Register | FAQ | Members List | Calendar | Forgotten your password? | Mark Forums Read |
|
|||
|
Goal setup name server for domain called foo.com.
Step # 1: Install BIND First you need to install BIND server. Code:
$ sudo apt-get install bind9 You need to add foo.com domain to bind configuration file /etc/bind/named.conf.local Open this file and append following text (zone and reverse zone for foo.com): Code:
$ sudo vi /etc/bind/named.conf.local Code:
zone "foo.com" {
type master;
file "/etc/bind/zones/foo.com.zone";
};
zone "1.55.202.in-addr.arpa" {
type master;
file "/etc/bind/zones/rev.1.55.202.in-addr.arpa";
};
Step # 3: Create a /etc/bind/zones/ directory: Code:
$ sudo mkdir /etc/bind/zones Now create a zone file /etc/bind/zones/foo.com.zone Code:
$ sudo vi /etc/bind/zones/foo.com.zone Code:
foo.com. IN SOA ns1.foo.com. admin.foo.com. (
2006071801
28800
3600
604800
38400 )
foo.com. IN NS ns1.foo.com.
foo.com. IN MX 10 mta.foo.com.
www IN A 202.55.1.2
mta IN A 202.55.1.2
ns1 IN A 202.55.1.2
Code:
$ sudo vi /etc/bind/zones/rev.1.55.202.in-addr.arpa Code:
@ IN SOA ns1.foo.com. admin.foo.com. (
2006071801; serial
28800; refresh, seconds
604800; retry, seconds
604800; expire, seconds
86400 ); minimum, seconds
IN NS ns1.foot.com.
2 IN PTR foo.com
Code:
$ sudo /etc/init.d/bind9 restart Code:
$ nslookup foo.com Address: 202.55.1.2#53 Name: foo.com Address: 202.55.1.2 Enjoy! Further reading: Linux BIND - DNS HOWTO: http://www.tldp.org/HOWTO/DNS-HOWTO.html |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Setting Samba to Bind to an ADS Domain | kevv.mai | Getting started tutorials | 0 | 04-20-2008 02:47 AM |
| Configure install pureftp server ubuntu linux | jerry | Linux software | 2 | 06-12-2007 09:55 AM |
| Ubuntu Linux firefox flash setup how to | chiku | Linux software | 1 | 09-18-2006 10:07 PM |
| install and configure vmware server on Ubuntu Linux server | raj | Linux software | 1 | 07-18-2006 12:21 AM |
| Ubuntu Linux: How do I setup print quotas? | cityblogger | Linux software | 1 | 07-06-2006 06:11 PM |