Linux - GeneralThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
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";
};
#############
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.