LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 04-04-2009, 02:33 AM   #1
fahdi
LQ Newbie
 
Registered: Apr 2009
Location: Between Heaven and Earth
Posts: 2

Rep: Reputation: 0
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.
 
Old 04-04-2009, 03:20 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
Old 04-04-2009, 06:46 AM   #3
fahdi
LQ Newbie
 
Registered: Apr 2009
Location: Between Heaven and Earth
Posts: 2

Original Poster
Rep: Reputation: 0
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; };
};

-------------------------------------------
 
Old 04-04-2009, 07:36 AM   #4
Assyrians
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
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
 
Old 04-04-2009, 08:07 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by bathory View Post
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
 
Old 04-04-2009, 05:43 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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).
 
  


Reply

Tags
dns, token



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Setup Problem or Godaddy Problem videoman Linux - Networking 1 02-05-2009 04:38 PM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
dns problem alrawab Linux - Networking 4 10-11-2003 09:27 AM
problem with dns ! vecs Linux - Software 7 07-22-2003 01:31 PM
DNS problem with RH 8.0 datamisc Linux - Newbie 2 12-20-2002 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration