LinuxQuestions.org
Visit Jeremy's Blog.
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 11-18-2010, 11:30 PM   #1
ssansari
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
Unhappy I am facing trouble to resolve DNS any one could help me out


Hello Friend

I have a LAN, in the lan i want to configure dns server, I tried my best but I could not configure there is not error I found by n

named-checkzone
named-checkconf

its all ok

but still dns not resolver my server.group43.com

when I press
#nslookup server.group43.com
;; connection timed out; .....
coding is below qouted if any of you could solve the problem

/////////////////////////////////////////////////////////////////
//named.conf

options
{
listen-on port 53{192.168.143.1;};


directory "/var/named"; // the default
dump-file "data/cache_dump.db";
statistics-file "data/named_stats.txt";
memstatistics-file "data/named_mem_stats.txt";

};

logging
{
channel default_debug {
file "data/named.run";
severity dynamic;
};
};



view "localhost_resolver"
{
match-clients { localhost; };
match-destinations { localhost; };
recursion yes;
# all views must contain the root hints zone:
include "/etc/named.root.hints";


include "/etc/named.rfc1912.zones";


zone "group43.com" {
type master;
notify no;
allow-query {any};
file "group43.zone";
};

zone "143.168.192.in-addr.arpa" {
type master;
notify no;
allow-query { any; };
file "group43.local";
};
};



view "internal"
{
match-clients { localnets; };
match-destinations { localnets; };
recursion yes;

include "/etc/named.root.hints";

zone "my.internal.zone" {
type master;
file "my.internal.zone.db";
};
zone "my.slave.internal.zone" {
type slave;
file "slaves/my.slave.internal.zone.db";
masters { /* put master nameserver IPs here */ 127.0.0.1; } ;
// put slave zones in the slaves/ directory so named can update them
};
zone "my.ddns.internal.zone" {
type master;
allow-update { key ddns_key; };
file "slaves/my.ddns.internal.zone.db";
// put dynamically updateable zones in the slaves/ directory so named can update them

};


zone "group43.com" {
type master;
notify no;
allow-query {any};
file "group43.zone";
};

zone "143.168.192.in-addr.arpa" {
type master;
notify no;
allow-query { any; };
file "group43.local";
};

};



key ddns_key
{
algorithm hmac-md5;
secret "use /usr/sbin/dns-keygen to generate TSIG keys";
};












//////////////////////////////////////////////////////////////






//group43.zone forward zone


$TTL 86400
@ IN SOA ns1.group43.com. hostmaster.group43.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

NS www

localhost A 192.168.143.1
ns1 A 192.168.143.1
www A 192.168.143.1


/////////////////////////////////////////////////////////////////////

//group43.local reverse zone
$TTL 86400

@ IN SOA www.group43.com. hostmaster.group43.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum

NS www


1 IN PTR localhost.group43.com.

/////////////////////////////////////////////////////////////////////
 
Old 11-19-2010, 01:31 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,598

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Hi and welcome to LQ,

Quote:
#nslookup server.group43.com
;; connection timed out; .....
This means that the name server is not running, or it's not accessible from your box.
Make sure the your name server is listed 1st in /etc/resolv.conf, it's up and running and it's not blocked by some firewall. It it is not running check the logs to see if you an find the reason. Also you can use:
Code:
named-checkzone group43.com /var/named/group43.zone
Also it's better use dig to test you bind installation as it can give more details (besides nslookup is deprecated):
Code:
dig server.group43.com @192.168.143.1
As this is your 1st post, I suggest you, next time to use the CODE tags to wrap the contents of configuration files, so it's better readable. I suspect that you miss the blank spaces in front of the NS record in zone files, but I cannot verify since they are not formatted. It's also good to mention your distro, bind version and any other info that would be useful.


Regards
 
Old 11-19-2010, 01:55 AM   #3
dantyo
LQ Newbie
 
Registered: Nov 2010
Distribution: debian 64bit
Posts: 2

Rep: Reputation: 0
check at /etc/resolv.conf
Code:
nameserver 192.168.143.1
search group43.com
I did not find server.group43.com on your group43.local file

hopefully help you
 
Old 11-19-2010, 11:59 AM   #4
ssansari
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Original Poster
Rep: Reputation: 0
I Could not resolve,

still same error I found
im very new to linux probably thats the reason i could solved out yet
 
Old 11-19-2010, 03:43 PM   #5
Bertical
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 77

Rep: Reputation: 12
One problem is your group43.local file needs a full name for the nameserver. The '@' at the start of the file is expanded and tagged onto the end of all names that don't have a trailing dot using the name it was called as from named.conf.

Code:
	
NS www
will be expanded to

Code:
NS www.143.168.192.in-addr.arpa.
instead of what you want

Code:
NS www.group43.com.

Last edited by Bertical; 11-19-2010 at 05:24 PM. Reason: forgot the dots :-)
 
Old 11-19-2010, 04:28 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,598

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
@OP
At a 1st place your name server is not running, or it's not accessible by clients.

Check if named is running:
Code:
ps -ef|grep named
and is listening on 192.168.143.1:
Code:
netstat -tunalp|grep named
Also post what's in /etc/resolv.conf of the box you're getting the error.
If everything is OK, then it could be a firewall that block access to your dns.

Secondly you have some errors in the zone files as the other posters have pointed out. Try to correct them too.
Quote:
im very new to linux probably thats the reason i could solved out yet
You're new, but you should give more details so we can help you better on this.

Regards
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 client cannot resolve on dns server jtvillegas Linux - Software 3 03-12-2016 04:30 PM
DNS issues, all illegitimate DNS queries resolve to me!??! fast-reflexes Linux - Networking 3 08-17-2010 07:38 AM
New to linux facing big trouble in installing drivers ah.salem Linux - Hardware 2 09-28-2008 09:26 PM
facing trouble while changing nameserver info for particular domain kannanulinux Linux - Server 2 06-29-2007 05:51 AM
DNS can't resolve gmail.com but can resolve everything else? TongueTied Linux - Networking 2 01-24-2006 04:39 AM


All times are GMT -5. The time now is 12:55 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration