Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-09-2001, 03:41 PM
|
#1
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Rep:
|
DNS and BIND
Hey,
Ok. I asked this question alot, and i still cannot get an answer. I am sorry to bother you but i need some help. How do i configure DNS and BIND. I have BIND 9. Nabil, you said you could send your configurations. I know you would not want people to have it, but could you at least send me something so i can try to work with it? Thanks everyone.
|
|
|
|
07-09-2001, 06:05 PM
|
#2
|
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Have you read the good old howto? If so which bits caused confusion, if not then have a read! I'm running Bind 8 and can send you / post my /etc/namd.conf and associated files if you want, but I would have thought the howto's examples would be more useful.
cheers
Jamie...
|
|
|
|
07-09-2001, 09:00 PM
|
#3
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Original Poster
Rep:
|
Hey jamie,
Thanks for replying. I actually dont want to copy someone else's configurations. I want to configure it myself actually, but i have no idea how it looks since i've never seen or done DNS or BInd b4.
1) db.cache i am getting from www.bind.com right?
2) i have to configure the /etc/named.conf and do most of the work there. In this part i have to show what the ip address that matches to the URL people type.
3) I need a db.127.0.0 for the network loopback.
4) Do i need a db.my.ip.add or not?
Ok. and i've read the how-to but it did not help me much. i have o'reillys dns and bind and thats where i got all of those. Umm, if you can send me those conf files i think they would help me  . You can send them to geranimo200@yahoo.com whenever you have time . thanks alot Jamie.
|
|
|
|
07-10-2001, 04:03 AM
|
#4
|
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
Quote:
Originally posted by dilberim82
1) db.cache i am getting from www.bind.com right?
2) i have to configure the /etc/named.conf and do most of the work there. In this part i have to show what the ip address that matches to the URL people type.
3) I need a db.127.0.0 for the network loopback.
4) Do i need a db.my.ip.add or not?
|
OK... some answers
1) I imagine you can get your 'root hints' file from www.bind.com but I always just use dig to get the an update from my ISPs DNS.
2) named.conf doesn't contains any details of the names or IPs you are using, it just configures a few parameters like your forwarders and points to the files that do contain your DNS records.
3) yeap!
4) db.my.ip.add being a file containing a mapping from your names to your IP addresses? If this is the case then yeah, you need a file that maps names => IPs and another one that maps IPs => name for reverse lookups.
HTH - I'll send you my files when you get back home this evening.
Jamie...
|
|
|
|
07-10-2001, 09:00 PM
|
#5
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Original Poster
Rep:
|
Hey Jamie,
Thanks for replying again. I only have one computer and its going to be my primary and secondary name server so i dont need to map the domain names to ips right? And thanks for sending me your files.
|
|
|
|
07-11-2001, 03:55 AM
|
#6
|
|
Senior Member
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243
Rep:
|
You can't have a primary and secondary on the same machine! You don't need anything more than a primary DNS, the secondary is only for when the primary is down or busy, if its a home LAN then there's not much point, unless you have a spare machine. You still need the file mapping machine names to IPs - thats was DNS does after all. You don't have a mapping between domains's and IPs, as a domain is just a way of seperating the DNS name space hence a domain itself doesn't have an IP.
HTH
Jamie...
|
|
|
|
07-11-2001, 04:27 AM
|
#7
|
|
Member
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210
Rep:
|
dilberim82,
I will post my stuff soon.
All you have to do is just replace your IP address and domain names also get red of extra domains and stuff not needed for your setup.
This is for Bind 9.1 on Redhat 7.1.
|
|
|
|
07-11-2001, 01:23 PM
|
#8
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Original Poster
Rep:
|
Thanks alot Nabil,
Thats what i am using and i think it would help me alot  . Thanks again.
|
|
|
|
07-11-2001, 04:14 PM
|
#9
|
|
Member
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210
Rep:
|
OK, this example is for A primary name server called viper.nameserver.org IP 10.0.0.1 running it's own web site nameserver.org and others as domain.com.
Under /etc
named.conf
##########
## named.conf - configuration for bind
#
# Generated automatically by bindconf, alchemist et al.
options {
directory "/var/named/";
};
zone "." {
type hint;
file "named.ca";
};
zone "0.0.127.in-addr.arpa" {
type master;
file "0.0.127.in-addr.arpa.zone";
};
zone "0.0.10.in-addr.arpa" {
type master;
file "0.0.10.in-addr.arpa.zone";
};
zone "localhost" {
type master;
file "localhost.zone";
};
zone "nameserver.org" {
type master;
file "nameserver.org.zone";
};
zone "viper" {
type master;
file "viper.zone";
};
zone "domain.com" {
type master;
file "domain.com.zone";
};
#############
Under var/named
[root@viper named]# ls
0.0.127.in-addr.arpa.zone viper.zone
0.0.10.in-addr.arpa.zone domain.com.zone named.ca
nameserver.org.zone named.local localhost.zone
[root@viper named]#
############
[root@viper named]# more 0.0.127.in-addr.arpa.zone
$TTL 86400
@ IN SOA localhost. root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS localhost.
1 IN PTR localhost.
#################
[root@viper named]# more 0.0.10.in-addr.arpa.zone
$TTL 86400
@ IN SOA viper.nameserver.org. root.localhost (
8 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttk
)
@ IN NS viper.nameserver.org.
150 IN PTR viper.nameserver.org.
#####################
[root@viper named]# more domain.com.zone
$TTL 86400
@ IN SOA @ nabil.domain.com (
6 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS viper.nameserver.org.
@ IN MX 0 www
www IN A 10.0.0.1
ftp IN A 10.0.0.1
mail IN A 10.0.0.1
@ IN A 10.0.0.1
#######################
[root@viper named]# more nameserver.org.zone
$TTL 86400
@ IN SOA @ root.nameserver.org (
4 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS viper.nameserver.org.
@ IN MX 0 viper
www IN A 10.0.0.1
mail IN A 10.0.0.1
ftp IN A 10.0.0.1
viper IN A 10.0.0.1
@ IN A 10.0.0.1
[root@viper named]#
####################
[root@viper named]# more localhost.zone
$TTL 86400
@ IN SOA @ root.localhost (
1 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS localhost.
@ IN A 127.0.0.1
#############################
[root@viper named]# more named.ca
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services (NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Aug 22, 1997
; related version of root zone: 1997082200
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
;
; temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; temporarily housed at ISI (IANA)
;
. 3600000 NS L.ROOT-SERVERS.NET.
L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12
;
; housed in Japan, operated by WIDE
;
. 3600000 NS M.ROOT-SERVERS.NET.
M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33
; End of File
[root@viper named]#
####################
[root@viper named]# more viper.zone
$TTL 86400
@ IN SOA @ root.viper (
3 ; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)
@ IN NS viper.
@ IN A 10.0.0.1
####################
|
|
|
|
07-13-2001, 05:16 AM
|
#10
|
|
Member
Registered: Feb 2001
Location: MI, USA
Distribution: Debian Linux 100% GNU
Posts: 210
Rep:
|
dilberim82,
Did that work for you or you still have problems....
|
|
|
|
07-13-2001, 10:31 AM
|
#11
|
|
Member
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291
Original Poster
Rep:
|
I am actually working on it right now Nabil. I'll let you know by tonight  But so far it has helped me alot Thanks again
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Similar Threads
|
| Thread |
Thread Starter |
Forum |
Replies |
Last Post |
|
Dns (bind)
|
njdownes |
Linux - Networking |
3 |
02-28-2005 09:15 AM |
|
DNS Bind
|
TKS |
Linux - Networking |
6 |
05-03-2004 12:30 AM |
|
bind and dns?
|
Digital_Err0r |
Linux - Newbie |
5 |
03-18-2004 05:23 PM |
|
DNS/Bind Help
|
yoddy |
Linux - Newbie |
2 |
06-23-2003 03:52 PM |
|
DNS and Bind
|
pharpe |
Linux - Networking |
3 |
01-15-2003 02:54 PM |
All times are GMT -5. The time now is 11:23 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|