Configuring DNS server.

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
spawnisalive
Lance Naik
Posts: 30
Joined: Tue Sep 16, 2003 8:21 pm
Location: Karachi
Contact:

Configuring DNS server.

Post by spawnisalive »

Hi ppl,
i m new to linux, i have been using it on and off but from past 1 month i have been trying to configure linux Mendrake as a DNS server for my lan, i need to know where i can find some good tutorials, i m also having trouble with apache server configuration so any good tutorial and e-book will be very help full.
my main aim is to run web-erp on my lan so any sort of help is wellcome.

bye
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Post by LinuxFreaK »

Dear spawnisalive,
Salam,

Please Check out at LinuxPakistan Forum.... http://www.linuxpakistan.net/forum2x/vi ... .php?t=517

named.conf:

Code: Select all

;
; Aarons version of an BIND 8.2.2 named.conf
;

options {
	directory "/etc/namedb";

//      forward only;

/*
	forwarders {
		127.0.0.1;
	};
*/
};

// Note: the following will be supported in a future release.
/*
host { any; } {
	topology {
		127.0.0.0/8;
	};
};
*/

// Setting up secondaries is way easier and the rough picture for this
// is explained below.
//
// If you enable a local name server, don't forget to enter 127.0.0.1
// into your /etc/resolv.conf so this server will be queried first.
// Also, make sure to enable it in /etc/rc.conf.

zone "." {
	type hint;
	file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
	type master;
	file "localhost.rev";
};

// NB: Do not use the IP addresses below, they are faked, and only
// serve demonstration/documentation purposes!
//
// Example secondary config entries.  It can be convenient to become
// a secondary at least for the zone where your own domain is in.  Ask
// your network administrator for the IP address of the responsible
// primary.
//
// Never forget to include the reverse lookup (IN-ADDR.ARPA) zone!
// (This is the first bytes of the respective IP address, in reverse
// order, with ".IN-ADDR.ARPA" appended.)
//
// Before starting to setup a primary zone, better make sure you fully
// understand how DNS and BIND works, however.  There are sometimes
// unobvious pitfalls.  Setting up a secondary is comparably simpler.
//
// NB: Don't blindly enable the examples below. :-)  Use actual names
// and addresses instead.
//
// NOTE!!! FreeBSD runs bind in a sandbox (see named_flags in rc.conf).
// The directory containing the secondary zones must be write accessible 
// to bind.  The following sequence is suggested:
//
//	mkdir /etc/namedb/s
//	chown bind.bind /etc/namedb/s
//	chmod 750 /etc/namedb/s

zone "173.76.207.in-addr.arpa" in { type master; file "db.207.76.173"; };

// Note difference in style from above to below will accomplish the same thing.

zone "bind.com" {
	type master;
	file "bind.com.zone";
	};
db.207.76.173:

Code: Select all

;
; Aarons version of a 8.2.2 reverse db
;
$TTL 3600
@       IN      SOA     user1.bind.com. hostmaster.bind.com.
                                (
                                1       ; Serial ; Increment by one after every change
                                3600    ; Refresh every hour
                                900     ; Retry every 15 minutes
                                3600000 ; Expire 1000 hours 5w6d16h
                                3600 )  ; Minimum 1 hour
 
 
        IN      NS      ns1.dns.bind.com.
        IN      NS      ns2.dns.bind.com.
 
 
0       IN      PTR     network.bind.com.
1       IN      PTR     core1.bind.com.
2       IN      PTR     nameserv1.bind.com.
3       IN      PTR     nameserv2.bind.com.
4       IN      PTR     user1.bind.com.


localhost.rev:

Code: Select all

;
; Aarons version of a 8.2.2 reverse db
;
$TTL 3600
@       IN      SOA     user1.bind.com. hostmaster.bind.com.
                                (
                                1       ; Serial ; Increment by one after every change
                                3600    ; Refresh every hour
                                900     ; Retry every 15 minutes
                                3600000 ; Expire 1000 hours
                                3600 )  ; Minimum 1 hour
 
 
        IN      NS      nameserv1.bind.com.
        IN      NS      nameserv2.bind.com.
 
 
1       IN      PTR     localhost.
bind.com.zone:

Code: Select all

;
; Aarons version of a 8.2.2 zone
;
$TTL 3600
@       IN      SOA     user1.bind.com. hostmaster.bind.com.
                                (
                                1       ; Serial ; Increment by one after every change
                                3600    ; Refresh every hour
                                900     ; Retry every 15 minutes
                                3600000 ; Expire 1000 hours
                                3600 )  ; Minimum 1 hour
 
                IN      NS      nameserv1.bind.com.
                IN      NS      nameserv2.bind.com.
 
                IN      MX      10 mx1.bind.com.
 
                IN      A       207.76.173.4
localhost       IN      A       127.0.0.1
core1           IN      A       207.76.173.1
nameserv1       IN      A       207.76.173.2
nameserv2       IN      A       207.76.173.3
user1           IN      A       207.76.173.4
mx1             IN      CNAME   207.76.173.4
ftp             IN      CNAME   user1.bind.com.
If you have Further Qurey then let us know.

Best Regards.
Farrukh Ahmed
spawnisalive
Lance Naik
Posts: 30
Joined: Tue Sep 16, 2003 8:21 pm
Location: Karachi
Contact:

Post by spawnisalive »

Hi ppl,
thx LinuxFreak for all ur help, i finally menaged to get my DNS server started last week but since my cable net is't working properly i was't able to post, i used webmin to configure my DNS server and this tool is great they have got great documentation which takes user from groung zero to top now i am working on apache server and ity's giving me hard time so once again ur help would be apreciated specially regarding directory menagment in apache, i have got my 2nd pc which i hope i would be able to get up and running in couple of days i think i would go for mendreak on this one ............ any way plz do let me know abt any resources abt apache i m reading lots of doc on apache but i think few more would do the trick .

bye all
spawnisalive
Lance Naik
Posts: 30
Joined: Tue Sep 16, 2003 8:21 pm
Location: Karachi
Contact:

Post by spawnisalive »

sallam ppl,
i would like to thank mahin for his valuable time i m still trying to absorb what he told me and it would take atleast a month to implement what he told me thanksagain mahin i wouldbe disturbing u again :lol: .
sallam to all
bye
Post Reply