Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Okay, im a newbie when it comes to setting up and configuring bind. I have been following along with the essential book "DNS and BIND" and i have hit a brick wall. Here is my named.conf
---------------------------------------
options {
directory "/var/bind";
};
zone "m0shady.org" in {
type master;
file "pri/db.m0shady";
};
zone "0.0.10.in-addr.arpa" in {
type master;
file "pri/db.10.0.0;
};
zone "0.0.127.in-addr.arpa." in {
type master;
file "pri/db.127.0.0";
};
zone "." in {
type hint;
file"named.ca";
};
-------------------------------------------------
when i try and execute named i get this error
loading configuration from '/etc/bind/named.conf'
/etc/bind/named.conf:16: missing ';' before '0.0.127.in-addr.arpa.'
/etc/bind/named.conf:16: unknown option '0.0.127.in-addr.arpa.'
/etc/bind/named.conf:25: unexpected end of input
loading configuration: unexpected end of input
this is driving me nuts, im sure that i have typed something wrong, if anyone can help i would appreciate it. Thanx.
First thing I would do is add a forward zone for localhost
Code:
options {
directory "/var/bind";
};
zone "m0shady.org" in {
type master;
file "pri/db.m0shady";
};
zone "0.0.10.in-addr.arpa" in {
type master;
file "pri/db.10.0.0;
};
zone "localhost" IN {
type master;
file "pri/localhost.zone";
};
zone "0.0.127.in-addr.arpa." in {
type master;
file "pri/db.127.0.0";
};
zone "." in {
type hint;
file"named.ca";
};
/pri/localhost.zone
Code:
$TTL 1W
@ IN SOA ns.localhost. root.localhost. (
2002081601 ; Serial
28800 ; Refresh
14400 ; Retry
604800 ; Expire - 1 week
86400 ) ; Minimum
IN NS ns
localhost. IN A 127.0.0.1
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.