LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-28-2005, 02:00 AM   #1
jkmartha
Member
 
Registered: Apr 2005
Location: india
Distribution: Redhat 9
Posts: 66

Rep: Reputation: 15
dns n ot able to resolv


distro - Red Hat Enterprise Linux AS release 4 (Nahant)
trying to configure named. named is running but # dig is showing 0 answers. all the configuration details r as follows.edited the following files.....
/etc/named.conf
/var/named/server.sarayu3.com.zone
/var/named/1.168.192.in-addr.arpa.zpne
----------------------------------------------



# hostname
server.sarayu3.com
-----------------------
# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 server.sarayu3.com server localhost.localdomain localhost
192.168.1.3 server.sarayu3.com server.sarayu3.com
-----------------------------
# cat /etc/resolv.conf
#search sarayu3.com
nameserver 192.168.1.3

nameserver 61.1.96.69
nameserver 61.1.96.71
------------------------------------------
# cat /etc/named.conf | more
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};

// a caching only nameserver config

controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};

zone "." IN {
type hint;
file "named.ca";
};

zone "localdomain" IN {
type master;
file "localdomain.zone";
allow-update { none; };
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

##########################
zone "server.sarayu3.com" IN {
type master;
file "server.sarayu3.com.zone";
allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.in-addr.arpa.zone";
allow-update { none; };
};

##########################



zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" IN {
type master;
file "named.ip6.local";
allow-update { none; };
};


zone "255.in-addr.arpa" IN {
type master;
file "named.broadcast";
allow-update { none; };
};

zone "0.in-addr.arpa" IN {
type master;
file "named.zero";
allow-update { none; };
};

include "/etc/rndc.key";
--------------------------------------------------------------
# cat /var/named/server.sarayu3.com.zone
$ORIGIN server.sarayu3.com.
$TTL 86400
@ IN SOA server.sarayu3.com. root.server.sarayu3.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum



IN NS 192.168.1.3
server.sarayu3.com IN A 192.168.1.3
www IN CNAME server.sarayu3.com.

-----------------------------------------------------
# cat /var/named/1.168.192.in-addr.arpa.zone
$ORIGIN 1.168.192.in-addr.arpa.
$TTL 86400
@ IN SOA server.sarayu3.com. root.server.sarayu3.com. (
1997022700 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum



IN NS server.sarayu3.com.
3 IN PTR server.sarayu3.com.
----------------------------------------------------------------------
# dig server.sarayu3.com

; <<>> DiG 9.2.4 <<>> server.sarayu3.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 34853
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;server.sarayu3.com. IN A

;; Query time: 0 msec
;; SERVER: 192.168.1.3#53(192.168.1.3)
;; WHEN: Thu Jul 28 12:23:11 2005
;; MSG SIZE rcvd: 36
---------------------------------------------------------
 
Old 07-28-2005, 08:03 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,739

Rep: Reputation: 298Reputation: 298Reputation: 298
I don't know if this will help, since I use primarily SuSE.

In my /etc/resolv.conf, I have one additional line: domain localdomain.
 
  


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
Fedora DNS resolv.conf issue waelaltaqi Linux - Networking 16 07-05-2006 03:23 AM
resolv.conf dns issues billbob Linux - Software 3 09-30-2005 12:20 PM
dns server and /etc/resolv.conf freeosfreesoul Linux - Laptop and Netbook 2 09-02-2005 06:45 PM
DNS & resolv.conf robeb Linux - Networking 1 06-25-2002 09:15 PM
DNS resolv oalvarado31 Linux - Networking 6 08-20-2001 10:08 AM


All times are GMT -5. The time now is 09:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration