LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2011, 05:13 AM   #1
BEaSTFX
LQ Newbie
 
Registered: Jul 2008
Posts: 17

Rep: Reputation: 0
Bind9 DNS server - configuration issues


In few words i want to set reverse dns for my existing domain from godaddy and use it as host on irc network. I followed this tutorial to set the Bind9 server.

The way my network is set is this:
Internet comes to my router with the real static ip and then it comes to my linux machine.I'm not that familiar with setting dns servers so i have few questions and problems. What DNS should i set to the domain on godaddy (they are like ns1.xXX.XX) and i can't set it to my ip address.Second when I nslookup something i got this error:

Code:
atlantius@Lemuria:~$ nslookup lemuria
Server:		199.207.13.100
Address:	199.207.13.100#53

** server can't find lemuria: NXDOMAIN

This is my Bind9 config:
named.conf.local
Code:
#FORWARD LOOKUP ZONE - Holds A records, maps hostnames to IP's
zone "pozitivensvqt.com"
{
	type master;
	file "/etc/bind/zones/pozitivensvqt.com.db";
};




#REVERSE LOOKUP ZONE - Holds TRP records, maps IP's to hostnames
zone "0.207.199.in-addr.arpa"
{
	type master;
	file "rev.0.207.199.in-addr.arpa";
};
named.conf.options

Code:
options {
	directory "/var/cache/bind";

	// If there is a firewall between you and nameservers you want
	// to talk to, you may need to fix the firewall to allow multiple
	// ports to talk.  See http://www.kb.cert.org/vuls/id/800113

	// If your ISP provided one or more IP addresses for stable 
	// nameservers, you probably want to use them as forwarders.  
	// Uncomment the following block, and insert the addresses replacing 
	// the all-0's placeholder.

	 forwarders {
	 	199.207.13.1;
		91.92.178.193;
		85.187.216.3;
		8.8.8.8;
		8.8.4.4;
	 };

	auth-nxdomain no;    # conform to RFC1035
	listen-on-v6 { any; };
};

pozitivensvqt.com.db

Code:
$TTL 3D
@	IN SOA Lemuria.pozitivensvqt.com.	admin.pozitivensvqt.com. {
2007031001;
28800;
3600;
604800;
38400
};

pozitivensvqt.com.	IN	NS	Lemuria.pozitivensvqt.com.
Lemuria			IN	A	199.207.13.100
www			IN	CNAME	Lemuria
rev.0.207.199.in-addr.arpa

Code:
$TTL 3D
@	IN	SOA	Lemuria.pozitivensvqt.com.	admin.pozitivensvqt.com. {
2007031001;
28800;
604800;
604800;
86400
};
	IN	NS	Lemuria.pozitivensvqt.com.
100	IN	PTR	Lemuria.pozitivensvqt.com.
1	IN	PTR	gw.pozitivensvqt.com.
If you can tell me what i did wrong with the bind9 and how to set it up right to use my real domain as host in irc it would be great.

Regards
 
Old 10-30-2011, 06:19 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
this was a mistake

<<deleted>>>

Last edited by deep27ak; 10-30-2011 at 06:25 AM.
 
Old 10-30-2011, 06:23 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Code:
#nslookup lemuria
you are not getting proper reply because your DNS is configured for Lemuria.pozitivensvqt.com

and I don't see any A entry for lemuria in any of the zones

As per your reverse DNS

199.207.13.100 is pointing to Lemuria.pozitivensvqt.com

So for a positive reply try

Code:
#nslookup Lemuria.pozitivensvqt.com

#dig -x 199.207.13.100
So the current DNS is configured for Lemuria.pozitivensvqt.com i.e is both forward and reverse

Now which domain are you talking about for which you want to configure a reverse DNS using godaddy

Last edited by deep27ak; 10-30-2011 at 06:24 AM.
 
Old 10-30-2011, 06:24 AM   #4
BEaSTFX
LQ Newbie
 
Registered: Jul 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Code:
atlantius@Lemuria:/etc/bind/zones$ nslookup Lemuria.pozitivensvqt.com
Server:		199.207.13.100
Address:	199.207.13.100#53

** server can't find Lemuria.pozitivensvqt.com.pozitivensvqt.com: SERVFAIL

Code:
dig -x 199.207.13.100

; <<>> DiG 9.7.3 <<>> -x 199.207.13.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 21126
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;100.13.207.199.in-addr.arpa.	IN	PTR

;; Query time: 1992 msec
;; SERVER: 199.207.13.100#53(199.207.13.100)
;; WHEN: Sun Oct 30 13:25:07 2011
;; MSG SIZE  rcvd: 45
I have pozitivensvqt.com with godaddy and i want to use it as reverse dns

Last edited by BEaSTFX; 10-30-2011 at 06:28 AM.
 
Old 10-30-2011, 06:27 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
what is your distro?

Last edited by deep27ak; 10-30-2011 at 06:29 AM.
 
Old 10-30-2011, 06:31 AM   #6
BEaSTFX
LQ Newbie
 
Registered: Jul 2008
Posts: 17

Original Poster
Rep: Reputation: 0
@deep27ak

Ubuntu 11.10
 
Old 10-30-2011, 06:42 AM   #7
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
http://www.linuxquestions.org/questi...server-909722/

try this
 
Old 10-30-2011, 06:55 AM   #8
BEaSTFX
LQ Newbie
 
Registered: Jul 2008
Posts: 17

Original Poster
Rep: Reputation: 0
They don't use bind9 and the configuration files kinda confused me
Can you give me example of the zone files to what would work ?

Last edited by BEaSTFX; 10-30-2011 at 07:18 AM.
 
Old 10-30-2011, 08:08 AM   #9
fenice
Member
 
Registered: Apr 2006
Distribution: CentOS openSUSE
Posts: 55

Rep: Reputation: 9
Quote:
Originally Posted by BEaSTFX View Post
They don't use bind9 and the configuration files kinda confused me
Can you give me example of the zone files to what would work ?
The general 'how to' articles for configuring BIND tend to be rather generic but they do give you an overview of what's necessary. The following article and search should give you all you need to know.

http://www.ubuntugeek.com/dns-server...in-ubuntu.html
http://search.yahoo.com/search?p=%2B...UTF-8&fr=moz35
 
Old 10-30-2011, 08:33 AM   #10
BEaSTFX
LQ Newbie
 
Registered: Jul 2008
Posts: 17

Original Poster
Rep: Reputation: 0
@fenice
Thank you for the links.

I followed the first guide and changed the zone files to these:
pozitivensvqt.com.db

Code:
;
; Zone file for my-site.com
;
; The full zone file
;
$TTL 3D
@       IN      SOA     ns1.pozitivensvqt.com. admin.pozitivensvqt.com. (
                       200211152       ; serial#
                       3600            ; refresh, seconds
                       3600            ; retry, seconds
                       3600            ; expire, seconds
                       3600 )          ; minimum, seconds

                NS      www             ; Inet Address of nameserver
pozitivensvqt.com.    MX      10 mail         ; Primary Mail Exchanger
  
localhost       A       127.0.0.1
Lemuria          A      199.207.13.100
mail            A       199.207.13.100
ns1             CNAME   Lemuria
www             CNAME   Lemuria
and rev.0.207.199.in-addr.arpa

Code:
;
; Filename: 192-168-1.zone
;
; Zone file for 192.168.1.x
;
$TTL 3D
@       IN        SOA        www.pozitivensvqt.com.  admin.pozitivensvqt.com. (
                            200303301          ; serial number
                            8H                 ; refresh, seconds
                            2H                 ; retry, seconds
                            4W                 ; expire, seconds
                            1D )               ; minimum, seconds

                  NS         www                ; Nameserver Address

100                PTR        Lemuria.pozitivensvqt.com.
It doesnt seem to change anything
Code:
nslookup pozitivensvqt.com
Server:		199.207.13.100
Address:	199.207.13.100#53

** server can't find pozitivensvqt.com.pozitivensvqt.com: SERVFAIL
Code:
dig -x 199.207.13.100

; <<>> DiG 9.7.3 <<>> -x 199.207.13.100
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 26012
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;100.13.207.199.in-addr.arpa.	IN	PTR

;; Query time: 2278 msec
;; SERVER: 199.207.13.100#53(199.207.13.100)
;; WHEN: Sun Oct 30 15:32:32 2011
;; MSG SIZE  rcvd: 45

Last edited by BEaSTFX; 10-30-2011 at 09:00 AM.
 
Old 10-30-2011, 09:49 AM   #11
leslie_jones
Member
 
Registered: Sep 2011
Posts: 130

Rep: Reputation: Disabled
Before you get too hung up on the zone files (which are pretty simple text files regardless of the version of bind) I'd just like to chip this 1000 feet overview in. For small scale users who don't want the hassle of running their own DNS servers I would personally say that:

Reverse DNS is usually taken care of by the provider of the IP address itself as it relates to the IP address.
Forward DNS relates to the the domain name and is usually looked after by the person that sold you the domain name through a control panel of some kind.

If you want to take care of running your own server (bind or whatever), so that it is authoritative and allows the public to resolve your DOMAIN NAME to YOUR IP ADDRESS (be it A, AAAA, MX etc), you will need to register a name server and this would typically be done with the people that sold you the domain name (they may have a control panel for doing it).

The PTR (reverse) is a separate and different story - this will remain with the provider of the IP where you are hosting you server/service. They might allow you to become responsible for it, if the IP is yours and yours alone. If it's a dynamic or shared IP it's pretty unlikely.

You may find you don't actually have any need at all to run your own server - your current provider who resolves your name to ip, and ip to name may be able to let you do what you need to do.

What is it the actual problem you are trying to solve by running your own DNS server?
 
  


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
Help needed - Bind9 dns server Altinci Linux - Server 0 08-12-2010 03:27 AM
how to setup dns server on ubuntu by bind9 renuaseri Linux - Newbie 1 11-18-2009 02:15 AM
DNS Server (BIND9) mpgram Linux - Server 1 02-22-2008 10:36 AM
DNS Server for 2 domains - Bind9 bence8810 Linux - Server 17 12-19-2006 01:58 AM
dns configuration using Bind9 and ubuntu aljohn123 Ubuntu 0 11-13-2006 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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