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 12-30-2011, 04:00 PM   #1
jaideep.t
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Rep: Reputation: Disabled
Smile error in bind configuration


friends, i was tring DNS services of linux and configured zone file included in my named.conf as :

; Zone file for funmail.com
;
; The full zone file
;
$ORIGIN funmail.com.
$TTL 3D
@ IN SOA ns1.funmail.com. webmaster.funmail.com. (
201112301 ; serial#
3600 ; refresh, seconds
3600 ; retry, seconds
3600 ; expire, seconds
3600 ) ; minimum, seconds
IN NS ns1.funmail.com. ; Inet address of nameserver

mail MX 10 192.168.100.1 ; Primary mail exchanger
localhost IN A 192.168.100.1
ns1 IN A 192.168.100.1
funmail1.com IN A 192.168.100.1
service IN A 192.168.100.1
www IN CNAME service.funmail.com.


Now i am not able to ping my hostname also dig my host name or ip through dig funmail.com A (hostname) or dig -x 192.168.100.1 didn't work. While it is working for dig ns1.funmail.com.
 
Old 12-30-2011, 04:37 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi and welcome to LQ,
Quote:
<-snip->
funmail1.com IN A 192.168.100.1
<-snip->
Unless that "1" after funamail is a typo, the above should read:
Code:
funmail.com IN A 192.168.100.1
You can also use one of the following
Code:
@ IN A 192.168.100.1
    IN A 192.168.100.1 ; leave at least one blank space
For the reverse zone you need to create a zone file for the 100.168.192.in-addr.arpa zone and give the PTR record(s) for your host(s)

Regards

Last edited by bathory; 12-31-2011 at 01:02 PM. Reason: typo
 
Old 01-02-2012, 10:37 AM   #3
jaideep.t
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks bathory for pointing out error as '1' in funmail1.com. Now still i am not able to ping my hostname as funmail.com whereas able to do "dig funmail.com A". I do configured reverse zone file also bt want to get all errors and queries resolved for forward lookup and then will practice on reverse lookup.

Last edited by jaideep.t; 01-02-2012 at 10:39 AM.
 
Old 01-02-2012, 11:57 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Hi,

Quote:
Thanks bathory for pointing out error as '1' in funmail1.com. Now still i am not able to ping my hostname as funmail.com whereas able to do "dig funmail.com A"
Couldn't be. If you can resolve funmail.com , then you should be able to ping it too.
What happens when you ping funmail.com? If you see the correct IP (192.168.100.1), but you get a "host unreachable", then there should be a firewall in between blocking icmp packets.

Last edited by bathory; 01-02-2012 at 12:02 PM.
 
Old 01-02-2012, 02:20 PM   #5
jaideep.t
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks bathory i found out it was due to secondary lan card connecting to dsl due to which its trying to get name resolution from isp dns, after disabling same its working fine. Could you please check below conf for reverse zone if i done something wrong bcoz i am not able to dig -x 192.168.100.1

;
; Filename: 192-168-100.zone
;
; Zone file for 192.168.100.x
;
$TTL 3D
@ IN SOA www.funmail.com. hostmaster.funmail.com. (
200303301 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
NS www ; Nameserver Address
2 PTR bigboy.funmail.com.
3 PTR smallfry.funmail.com.
4 PTR ochorios.funmail.com.
5 PTR reggae.funmail.com.
 
Old 01-02-2012, 02:43 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Quote:
i am not able to dig -x 192.168.100.1
Well, first of all you don't have a PTR record for 192.168.100.1, so this is expected. The second and more serious error is your NS record. You should use the FQDN of the dns server.
Code:
$TTL 3D
@ IN SOA www.funmail.com. hostmaster.funmail.com. (
200303301 ; serial number
8H ; refresh, seconds
2H ; retry, seconds
4W ; expire, seconds
1D ) ; minimum, seconds
  NS www.funmail.com. ; Nameserver Address FQDN
1 PTR www.funmail.com.
2 PTR bigboy.funmail.com.
3 PTR smallfry.funmail.com.
4 PTR ochorios.funmail.com.
5 PTR reggae.funmail.com.
Regards

Last edited by bathory; 01-03-2012 at 04:08 PM.
 
Old 01-03-2012, 12:46 PM   #7
jaideep.t
LQ Newbie
 
Registered: Dec 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Smile

Thanks bathory now i am able to do dig -x 192.168.100.1bt just one more query for reverse dns when i am trying to do ping -a 192.168.100.1 from a window pc whose DNS is set as 192.168.100.1 its not able to name resolution whereas its able to ping funmail.com. Also i am not able to do host 192.168.100.1 it says connection timed out, no server to reach.

Last edited by jaideep.t; 01-03-2012 at 12:47 PM.
 
Old 01-03-2012, 04:21 PM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
Quote:
when i am trying to do ping -a 192.168.100.1 from a window pc whose DNS is set as 192.168.100.1 its not able to name resolution whereas its able to ping funmail.com.
Could be the windows dns cache. To flush it, run:
Code:
ipconfig /flushdns
Quote:
Also i am not able to do host 192.168.100.1 it says connection timed out, no server to reach.
Again could be a firewall or other network problem, like the one you had before.
 
  


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
Bind configuration MEETKAMBOJ Linux - Server 3 10-08-2011 08:33 AM
Weird bind configuration error brgsousa Linux - Software 2 03-18-2010 10:52 AM
Bind 9.3 configuration metallica1973 Linux - Server 2 03-20-2008 08:31 AM
Bind Configuration namit Linux - Software 1 04-25-2007 11:03 PM
FC 6 BIND Configuration titel Linux - Newbie 2 12-12-2006 11:08 PM


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