Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
hi guys, im kinda new here. Just about finished school and trying to set up a centos server to go for some certs. Anyway, I'm trying to get my DNS up and running I'm having some troubles.
This is also on a virtual box. If you need anymore information just let me know.
here is the log messages that generate when i try to do a
service named restart:
Error in named configuration:
zone localhost/IN: loaded serial 2006123106
dns_rdata_fromtext: 127.0.0.rev:7: near 'IN': extra input text
zone 0.0.127.in-addr.arpa/IN: loading from master file 127.0.0.rev failed: extra input text
zone 0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/0.0.127.in-addr.arpa/in: extra input text
zone example.org/IN: loaded serial 2009123106
dns_rdata_fromtext: example.org.rev:3: near '3H': not a valid number
zone 15.2.0.10.in-addr.arpa/IN: loading from master file example.org.rev failed: not a valid number
zone 15.2.0.10.in-addr.arpa/IN: not loaded due to errors.
_default/15.2.0.10.in-addr.arpa/IN: not a valid number
It appears that you are trying to start bind service without configuring it. You need to first configure bind and then it will start. Please refer the following link: http://www.centos.org/docs/5/html/De...S/ch-bind.html
It will be good to know as to which certifications you are targeting so that we can provide you guidance accordingly.
T3RM1NVT0R thanks for the warm welcome, i am trying to work my to RHCSA cert... we will see.
I don't think i was quite clear in my last post. I am working through a book at the moment it is called linux administration: a beginner's guide. In it we are setting up a DNS server right now. I must have done something wrong and I'm not quite sure where at.
I am coming from setting up windows 2008 servers which is quite different so please be kind...
i have it set up i have the named.conf file here. I also have files called /var/named/localhost.db,
/var/named/example.org.db
/var/named/example.org.rev
/var/named/127.0.0.rev
if you would like to see them as well but any way here is the /etc/named.conf file; thanks
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
/* Path to ISC DLV key */
bindkeys-file "/etc/named.iscdlv.key";
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
#The followingzone definitions don't need any modification. the first one
#is the definition of the root name servers and sets up our server as a
#caching-capable DNS server.
#the second one defines localhost.
#the third zone definition defines the reverse lookup for localhost.
#
#
zone "." IN {
type hint;
file "root.hints";
};
zone "localhost" in {
type master;
file "localhost.db";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.rev";
};
#the zone definition below is for the domain that our name server is
#authoritative for i.e. the example.org domain name.
#
zone "example.org" {
type master;
file "example.org.db";
};
#below is the zone for the in-addr.arpa domain, for the example.org site.
zone "15.2.0.10.in-addr.arpa" {
type master;
file "example.org.rev";
};
#BELOW IS THE ENTRy FOR THE SUB-DOMAIN FOR WhICH THIS SERvER IS A SLAVE SERVER
#ip address of sales.example.orgs master server is 192.168.1.2
zone "sales.example.org" {
type slave;
file "sales.example.org.bk";
masters {10.0.2.16;};
};
Well if you are preparing for RHCSA and RHCE then you will not require much hands on DNS as of now. Both RHCSA and RHCE exam objectives does not include configuring primary name server. If you will check RHCE objectives it only require you to know how to configuring caching only DNS server.
I can understand it is quite tough to transition from Windows environment to Linux. I would suggest you to check syntax that you have used in your config files with the how to configure DNS link that I have posted in my previous post. DNS and DHCP both are fun to work with and it require a little more time and practice to get used to it.
wow, well that makes me feel a bit better about having problems with it then. In windows it is so easy to set up DHCP; a little tougher but still easy to set up DNS.
I will have to check it out when im not as frusterated, moving on to FTP and doing good. Do you know what else is covered in the exam for RHCSA? Ohh, and thanks for that link earlier by the way, i'll prob just go through that instead of the book i've been using. I have heard that the linux community is very helpful, already I'm starting to think that and quick responders too.
dns_rdata_fromtext: 127.0.0.rev:7: near 'IN': extra input text
<--snip-->
dns_rdata_fromtext: example.org.rev:3: near '3H': not a valid number
If you want to fix your bind installation, take a look at line 7 of 127.0.0.rev and line 3 of example.org.rev
Or you can post the 2 zone files here (using CODE tags for better readability), so we could help you on this
$TTL 1W
@ IN SOA ns1.example.org. root (
2009123108 ; serial
3H ; refresh
30M ; retry
20W ; expiry
1W) ; minimum
IN NS ns1.example.org.
IN NS ns2.example.org.
IN MX 10 smtp.example.org.
ns1 IN A 10.0.2.15 ;primary name server
ns2 IN A 10.0.2.16 ;secondary name server
serverA IN A 10.0.2.15
serverB IN A 10.0.2.16
smtp IN A 10.0.2.25 ;mail server
www IN CNAME serverA ;web server
ftp IN CNAME serverB ;ftp server
serverA IN TXT "Cell: 717-867-5309"
---------- Post added 12-10-11 at 03:12 PM ----------
here is the /var/named/example.org.rev file
$TTL 1W
@ IN SOA ns1.example.org.root (
2009123108 ; serial
10800 ; refresh
30M ; retry
2W ; expiry
1W ; minimum
IN NS ns1.example.org.
IN NS ns2.example.org.
1 IN PTR serverA.example.org. ; reverse info for serverA
2 IN PTR serverB.example.org. ; reverse info for serverB
25 IN PTR smtp.example.org. ; reverse for mailserver
You should enclose config files with CODE tags (use the # icon to get them), so the keep their formatting
Regarding the errors:
You miss the closing ")" in both zone files. And you need to specifically assign 1 as the PTR of localhost in 127.0.0.rev zone
Code:
$TTL 1W
@ IN SOA localhost. root.localhost. (
2011121001 ; always increase the serial
3H ; refresh
30M ; retry
2W ; expiry
1W ); minimum
IN NS localhost.
1 IN PTR localhost.
In example.org.rev, you've also messed the SOA record:
Code:
$TTL 1W
@ IN SOA ns1.example.org. root.localhost.(
2011121001 ; always increase the serial
10800 ; refresh
30M ; retry
2W ; expiry
1W ); minimum
IN NS ns1.example.org.
IN NS ns2.example.org.
1 IN PTR serverA.example.org. ; reverse info for serverA
2 IN PTR serverB.example.org. ; reverse info for serverB
25 IN PTR smtp.example.org. ; reverse for mailserver
bathory,
you are awesome!! it fixed it and the text changed colors.
i have more errors though now.....
how do i post it on here so the text keep their colors?
i guess that is code tags?
should i just screen shot it??
thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.