LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 09-10-2008, 04:34 AM   #1
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Rep: Reputation: 15
DNS For Redhat EL5


Hello Sir,

I have installed Redhat Linux EL5 Server in Server Machine. I should configure DNS Server as Primary Server (Intranet Purpose).

My DNS Name is abc-it.com and IP Address is 180.100.103.1. My network ranges IPs are 180.100.0.0/16.

This DNS is not used for mail server.

I was created many time. But its failue.

How to configure DNS Server as Primary Server.

Please explain step by step.

Advanced Thanks
A.Kannan
 
Old 09-10-2008, 04:43 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Try this http://www.linuxhomenetworking.com/w...onfiguring_DNS

Note that by default, RH uses a chrooted version of bind, so everything is under /var/named/chroot
 
Old 09-10-2008, 04:59 AM   #3
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
My /var/named/chroot/etc/named.conf file

zone "abc-it.com" {
type master;
file "abc-it.com.zone";
};
zone "100.180.in-addr.arpa" {
type master;
file "180.100.zone";
};

-------------------------------------------------------------------------


My /var/named/chroot/var/named/abc-it.com.zone file

$TTL 86400
@ IN SOA abc-it.com. root.abc-it.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN NS abc-it.com.
IN A 180.100.103.62

---------------------------------------------------------------------------

My /var/named/chroot/var/named/180.100.zone file

$TTL 86400
@ IN SOA abc-it.com. root.abc-it.com. (
2004049100 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS abc-it.com.
abc-it.com. IN A 180.100.103.62
------------------------------------------------------------------------
My /etc/resolv.conf file

search abc-it.com
nameserver 180.100.103.62
------------------------------------------------------------------------
[root@A62 ~]# dig abc-it.com
<<>> DiG 9.3.3rc2 <<>> abc-it.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@A62 ~]#

whats wrong!. I can't find please help me.
 
Old 09-10-2008, 05:02 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you telnet to the server

telnet 180.100.103.62 53

Try dig from the server itself
 
Old 09-10-2008, 05:06 AM   #5
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
I was tried through telnet the same problem is appeared.
-----------------------------------------------------------------
[root@A62 ~]# telnet 180.100.103.62
Trying 180.100.103.62...
Connected to localhost.localdomain (180.100.103.62).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel 2.6.18-8.el5xen on an i686
login: root
Password:
Last login: Tue Sep 9 12:28:22 from A62
[root@A62 ~]# dig nec-it.com

; <<>> DiG 9.3.3rc2 <<>> nec-it.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@A62 ~]#
-----------------------------------------------------------------
Please Reply me.
 
Old 09-10-2008, 05:07 AM   #6
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
[root@A62 ~]# telnet 180.100.103.62
Trying 180.100.103.62...
Connected to localhost.localdomain (180.100.103.62).
Escape character is '^]'.
Red Hat Enterprise Linux Server release 5 (Tikanga)
Kernel 2.6.18-8.el5xen on an i686
login: root
Password:
Last login: Tue Sep 9 12:28:22 from A62
[root@A62 ~]# dig abc-it.com

; <<>> DiG 9.3.3rc2 <<>> abc-it.com
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@A62 ~]#
 
Old 09-10-2008, 05:26 AM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
1. - you need to specify the port for telnet, otherwise you are connecting to the telnet server.

2. - why are you running a telnet server, they are security holes.

Is that dig from the dns server itself?

On the server, what does

netstat -alpn | grep :53

show?
 
Old 09-10-2008, 06:03 AM   #8
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
Hello Sir

The outputs are
------------------------------------------------------------------------
[root@A62 ~]# telnet 180.100.103.62 53
Trying 180.100.103.62...
Connected to localhost.localdomain (180.100.103.62).
Escape character is '^]'.
Connection closed by foreign host.
[root@A62 ~]#
-----------------------------------------------------------------------------
[root@A62 ~]# netstat -alpn | grep :53
tcp 0 0 180.100.103.62:53 0.0.0.0:* LISTEN 8390/named
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 8390/named
tcp 0 0 180.100.103.62:53 180.100.103.62:59813 ESTABLISHED 8390/named
tcp 0 0 180.100.103.62:59813 180.100.103.62:53 ESTABLISHED 9626/telnet
udp 0 300 0.0.0.0:53 0.0.0.0:* 8390/named
udp 0 0 180.100.103.62:53 0.0.0.0:* 8390/named
udp 0 0 127.0.0.1:53 0.0.0.0:* 8390/named
udp 0 0 180.100.103.62:32960 180.100.103.62:53 ESTABLISHED 9549/python
udp 0 0 180.100.103.62:32961 180.100.103.62:53 ESTABLISHED 9549/python
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2469/avahi-daemon:
udp 0 0 :::53 :::* 8390/named
udp 0 0 :::5353 :::* 2469/avahi-daemon:
[root@A62 ~]#
 
Old 09-10-2008, 06:23 AM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
So does

dig @180.100.103.62 abc-it.com

work? If so, what is is /etc/resolv.conf?
 
Old 09-10-2008, 06:41 AM   #10
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
[root@A62 ~]# dig @180.100.103.62 nec-it.com

; <<>> DiG 9.3.3rc2 <<>> @180.100.103.62 nec-it.com
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached
[root@A62 ~]#
 
Old 09-10-2008, 07:19 AM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Are you running the dig command on the server that is running the dns?
 
Old 09-10-2008, 08:56 AM   #12
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Try
Code:
$ dig @127.0.0.1 nec-it.com
does that work?

What is the output from
Code:
# iptables -nL
?
 
Old 09-11-2008, 02:00 AM   #13
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
The Outputs are
------------------------------------------------------------------------
[root@A62 ~]# dig @127.0.0.1 nec-it.com

; <<>> DiG 9.3.3rc2 <<>> @127.0.0.1 abc-it.com
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached


[root@A62 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@A62 ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@A62 ~]#
-----------------------------------------------------------------------
 
Old 09-11-2008, 02:30 AM   #14
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Where did nec-it.com come into it (chort, that's not directed at you, it was in post #5)?

Edit - can you post named.conf (that bit at the top isn't the whole thing I assume)?

Last edited by billymayday; 09-11-2008 at 02:38 AM.
 
Old 09-11-2008, 02:55 AM   #15
ajkannan83
Member
 
Registered: Aug 2005
Location: Tamil Nadu, India
Distribution: Redhat, Fedora
Posts: 120

Original Poster
Rep: Reputation: 15
Sorry Sir. Actually my domain name is abc-it.com

root@A62 ~]# dig @127.0.0.1 abc-it.com

; <<>> DiG 9.3.3rc2 <<>> @127.0.0.1 abc-it.com
; (1 server found)
;; global options: printcmd
;; connection timed out; no servers could be reached


[root@A62 ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@A62 ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@A62 ~]#
 
  


Reply



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
VNC (remote desktop) on RedHat EL5 TonyOCL Linux - Newbie 11 02-07-2009 10:04 AM
Redhat EL5 causing dependencies problems elthox Linux - Newbie 3 04-21-2008 04:25 AM
[SOLVED] Need a pam_mount rpm for Redhat EL5 procfs Linux - Newbie 2 10-19-2007 05:36 AM
my mouse is not detected in redhat EL5 married Linux - Hardware 0 08-26-2007 03:00 PM
Mysqld in Redhat EL5 doesn't exist. landev Red Hat 10 05-18-2007 12:43 PM

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

All times are GMT -5. The time now is 08:10 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
Open Source Consulting | Domain Registration