LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-22-2005, 09:06 AM   #1
matt_hannay
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
Exclamation Pri and Secondary DNS on One box


Befor I start yes I know I should be using a second machine for the secondary
DNS but....................

I have Setup 2 ip addresses on the server one at eth0:0 and eth0:1
I can ping both from an external network.

In the bind.conf I have set the following

options
{
........
listen-on{ 1.1.1.1 ; 1.1.1.2 }

}

where 1.1.1.1 and 1.1.1.2 are the two configured IP's



I have set up the following in the bind.conf
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------

zone "localhost" in
{
type master;
file "/etc/bind/pri.localhost";
allow-update{none;};
};

zone "0.0.127.in-addr.arpa" in
{
type master;
file "/etc/bind/pri.localhost.rev";
allow-update{none;};
};

zone "domain1.com.au" in
{
type master;
file "/etc/bind/pri.domain1.com.au";
};

zone "domain2.com.au"
{
type master;
file "/etc/bind/pri.domain2.com.au";
};

// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------

the company hosting my box have set up the reverse lookups
as they own the network so no .in-addr.arpa definitions other
than the local host

pri.domain1.com.au is as follows
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------

$TTL 10800 ;
$ORIGIN domain1.com.au.
@ 1D IN SOA angus.domain1.com.au. hostmaster.domain1.com.au. (
36 ; serial
3H ; refresh
15 ; retry
1w ; expire
3h ; minimum
)
IN NS angus.domain1.com.au. ;
IN NS murraygrey.domain1.com.au. ;
IN MX 10 angus.domain1.com.au. ;
IN A 1.1.1.1 ;
; server host definitions
angus.domain1.com.au. IN A 1.1.1.1 ;

domain1.com.au. IN A 1.1.1.1 ;

murraygrey.domain1.com.au. IN A 1.1.1.2 ;
; non server domain hosts

// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------

When I load the zone files all seems OK however
when I go to dnsstuff.com/tools/ptr.ch?ip=1.1.1.1
to check the reverse I get the following
1.1.1.1 PTR record: domain1.com.au. [TTL 3600s] [BAD: No A record]


Is my config wrong or Is my Network provider configured somthing wrong
 
Old 02-22-2005, 09:31 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
You must setup and the reverse zone file for your subnet (i.e. zone "1.1.1.1.in-addr.arpa").
Take a look here or here to see how you can do that.
 
Old 03-03-2005, 12:55 AM   #3
matt_hannay
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 0
RE: Pri and Secondary DNS on One box

The network is managed by my hosting company
do you mean I need a reverse zone for the IP allocated to me
as the subnet is "owned" by the hosting company.

The hosting company has listed the reverse lookups in their DNS.


I can post the config files I have if this will help?



Matt
 
Old 03-03-2005, 03:55 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,908

Rep: Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326Reputation: 1326
Read about Classless IN-ADDR.ARPA delegation in the first link above and you'll see that you most likely need to setup your reverse zone. Your ISP should have setup his DNS for the IP chunk that belongs to you. So you need to further resolve these IPs. I guess you can contact them for further assistance on how to do this.
 
  


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
secondary dns sanjibgupta Linux - Newbie 15 10-04-2005 07:45 AM
dns-secondary login????? fredskidoo Linux - Newbie 3 08-18-2005 10:02 AM
Why a secondary DNS? stwog Linux - Networking 2 01-19-2005 05:29 PM
secondary DNS for website antken Linux - Networking 0 07-09-2002 04:21 AM
Setting up secondary DNS freshfall Linux - Networking 4 12-14-2001 12:45 AM


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