LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Closed Thread
  Search this Thread
Old 04-20-2011, 09:43 AM   #1
yasir4533
LQ Newbie
 
Registered: Apr 2011
Posts: 3

Rep: Reputation: 0
DNS problem


Dear All;
I am confiuring DNS on CentOS 5.4 but unable to resolve.The configuration files and output of commands is given below.

IP Address=192.168.0.66

/etc/resolv.conf
nameserver 192.168.0.66
nameserver 127.0.0.1
search localdomain

/etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
#127.0.0.1 localhost.localdomain localhost
#127.0.0.1 homeserver.homedomain.com
192.168.0.66 homeserver.homedomain.com abc
#::1 localhost6.localdomain6 localhost6

/etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=homeserver

/var/named/chroot/etc/named.rfc.zone
// named.rfc1912.zones:
//
// Provided by Red Hat caching-nameserver package
//
// ISC BIND named zone configuration for zones recommended by
// RFC 1912 section 4.1 : localhost TLDs and address zones
// and http://www.ietf.org/internet-drafts/...l-zones-02.txt
// (c)2007 R W Franks
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

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

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

#zone "1.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.loopback";
# allow-update { none; };
#};

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

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

zone "homedomain.com" IN {
type master;
file "homedomain.com.fwd";
allow-update { none; };
};
zone "sports.com" IN {
type master;
file "sports.com.fwd";
allow-update { none; };
};
zone "islam.edu" IN {
type master;
file "islam.edu.fwd";
allow-update { none; };
};
#zone "0.168.192.in-addr.arpa" IN {
# type master;
# file "homedomain.com.rev";
# allow-update { none; };
#};

/var/named/chroot/var/named/homedomain.com.fwd

$ORIGIN homedomain.com.
@ IN SOA homeserver.homedomain.com. root. (
45 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
homeserver.homedomain.com IN A 192.168.0.66
@ IN MX 10 homeserver.homedomain.com.
www IN CNAME homeserver

/var/named/chroot/var/named/sports.com.fwd
$ORIGIN sports.com.
@ IN SOA homeserver.homedomain.com. root. (
46 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
@ IN MX 10 homeserver.homedomain.com.

/var/named/chroot/var/named/islam.edu.fwd
$ORIGIN islam.edu.
@ IN SOA homeserver.homedomain.com. root. (
47 ; serial
1D ; refresh
1H ; retry
1W ; expire
3H ) ; minimum
@ IN NS homeserver.homedomain.com.
@ IN MX 10 homeserver.homedomain.com.


dig MX homedomain.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> MX homedomain.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 64378
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;homedomain.com. IN MX

;; Query time: 0 msec
;; SERVER: 192.168.0.66#53(192.168.0.66)
;; WHEN: Wed Apr 20 01:11:22 2011
;; MSG SIZE rcvd: 32

[root@homeserver etc]# dig MX sports.com

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> MX sports.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 39594
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;sports.com. IN MX

;; Query time: 1 msec
;; SERVER: 192.168.0.66#53(192.168.0.66)
;; WHEN: Wed Apr 20 01:11:43 2011
;; MSG SIZE rcvd: 28
 
Old 04-20-2011, 11:20 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
This appears to be a cross post of http://www.linuxquestions.org/questi...roblem-876100/
 
  


Closed Thread


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 Setup Problem or Godaddy Problem videoman Linux - Networking 1 02-05-2009 05:38 PM
DNS problem gwh23960 Linux - Networking 11 03-03-2008 07:45 PM
DNS problem.... bikebefast Linux - Server 1 12-29-2007 11:27 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 10:59 PM
DNS problem yvenault Linux - Networking 2 12-05-2003 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:27 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