Linux - Newbie This 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.
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. |
|
 |
04-04-2009, 02:33 AM
|
#1
|
|
LQ Newbie
Registered: Apr 2009
Location: Between Heaven and Earth
Posts: 2
Rep:
|
Problem With DNS
HI
I've a problem to setting up the dns, I've a domain pak2us247.com and I hosted it from dns. But it's not getting ping. When I checked the log I saw unexpected token error. Then I tried to restart the service got this error
"Stopping named: [ OK ]
Starting named:
Error in named configuration:
dns_rdata_fromtext: pak2us247.com.hosts:2: unexpected token
zone pak2us247.com/IN: loading master file pak2us247.com.hosts: unexpected token
_default/pak2us247.com/IN: unexpected token
zone 79.54.99.in-addr.arpa/IN: loaded serial 1238283448
zone 0.0.127.IN-ADDR.ARPA/IN: loaded serial 1238284094
[FAILED]got failed msg
[2:31:46 AM] Fahdi (Fahad Ahmed): Stopping named: [ OK ]
Starting named:
Error in named configuration:
dns_rdata_fromtext: pak2us247.com.hosts:2: unexpected token
zone pak2us247.com/IN: loading master file pak2us247.com.hosts: unexpected token
_default/pak2us247.com/IN: unexpected token
zone 79.54.99.in-addr.arpa/IN: loaded serial 1238283448
zone 0.0.127.IN-ADDR.ARPA/IN: loaded serial 1238284094
[FAILED]"
Can somebody tell me how can I fix this please.
|
|
|
|
04-04-2009, 03:20 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
Quote:
Error in named configuration:
dns_rdata_fromtext: ppak2us247.com.hosts2: unexpected token
|
Take a look at the beginning of pak2us247.com.hosts (bind complains for an error in line 2), or post the file here.
Regards
|
|
|
|
04-04-2009, 06:46 AM
|
#3
|
|
LQ Newbie
Registered: Apr 2009
Location: Between Heaven and Earth
Posts: 2
Original Poster
Rep:
|
This below is the ".named.conf" file
named.conf
----------------------------------
acl common-allow-transfer {
none;
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
auth-nxdomain no;
};
zone "." {
type hint;
file "/etc/db.cache";
};
key rndc-key {
algorithm hmac-md5;
secret "8CETGhosPFGuIpVM1MWDhA==";
};
controls {
inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { rndc-key; };
};
zone "pak2us247.com" IN {
type master;
file "pak2us247.com.zone";
allow-update { none; };
};
-------------------------------------------
|
|
|
|
04-04-2009, 07:36 AM
|
#4
|
|
LQ Newbie
Registered: Apr 2009
Posts: 2
Rep:
|
Problem with zone file
Its clearly visible in the error , its a problem in the configuration of zone files, check your fwd & rev zone
Use checking command to the configuration of Zone files, this command compiles it and give you the exact line no. from where the error occurs.
Google it for the command
|
|
|
|
04-04-2009, 08:07 AM
|
#5
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,391
|
Quote:
Originally Posted by bathory
Take a look at the beginning of pak2us247.com.hosts (bind complains for an error in line 2), or post the file here.
Regards
|
Bind complains for an error in line 2 of pak2us247.com.hosts.
According to named.conf you've posted, there is no such zone filename. The filename for the pak2us247.com zone is pak2us247.com.zone.
I think you look at the wrong named.conf
|
|
|
|
04-04-2009, 05:43 PM
|
#6
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,261
|
Check with
service named configtest
looks like, as mentioned, your zone file name doesn't match what you say in named.conf.
You may also have errors in the zone file(s).
|
|
|
|
| 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
|
|
|
All times are GMT -5. The time now is 06:55 PM.
|
|
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
|
|